Porytiles
Loading...
Searching...
No Matches
string_utils.hpp File Reference
#include <ranges>
#include <regex>
#include <string>
#include "fmt/format.h"
#include "porytiles2/xcut/panic/panic.hpp"
Include dependency graph for string_utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  porytiles2
 

Functions

bool porytiles2::check_full_string_match (const std::string &str, const std::string &pattern)
 Checks if a string fully matches a regular expression pattern.
 
void porytiles2::trim (std::string &string)
 Removes leading and trailing whitespace from a string in-place.
 
std::vector< std::string > porytiles2::split (std::string input, const std::string &delimiter)
 Splits a string into tokens based on a delimiter.
 
std::string & porytiles2::trim_line_ending (std::string &line)
 Removes line ending characters from a string in-place.
 
std::string porytiles2::trim_line_ending (const std::string &line)
 Removes line ending characters from a string.