|
static const int | count (const std::string &str, const std::string &flag, const bool consecutives=true) |
| Count the occurrences of the given sequence in the given string. More...
|
|
static const bool | isNumeric (const std::string &str) |
| Checks whether a string only contains numeric characters. More...
|
|
static const bool | isNumeric (const unsigned char &chr) |
| Checks whether character is numeric. More...
|
|
static const bool | isAlphabetic (const std::string &str) |
| Checks whether a string only contains alphabetic characters. More...
|
|
static const bool | isAlphabetic (const unsigned char &chr) |
| Checks whether a character is alphabetic. More...
|
|
static const bool | isAlnum (const std::string &str) |
| Checks whether a string only contains alpha-numeric characters. More...
|
|
static const bool | isAlnum (const unsigned char &chr) |
| Checks whether a character is alpha-numeric. More...
|
|
static const bool | isHex (const unsigned char &chr) |
| Checks whether a string only contains hexadecimal characters. More...
|
|
static const bool | isIP (const std::string &str) |
| Checks whether a string could be a valid IPv4/IPv6. More...
|
|
static const size_t | findLast (const std::string &str, const std::string &flag) |
| Finds the last occurrence of the given sequence in the given string. More...
|
|
static const bool | startsWith (const std::string &str, const std::string &flag) |
| Checks if a string starts with the given sequence. More...
|
|
static const bool | endsWith (const std::string &str, const std::string &flag) |
| Checks if a string ends with the given sequence. More...
|
|
static const bool | contains (const std::string &str, const std::string &flag) |
| Checks if a string contains the given sequence. More...
|
|
static std::string | strip (const std::string &str, const std::string &chars=" \n\t\b\r\v") |
| Strips the given characters from both the left and the right side of a string. More...
|
|
static std::string | lstrip (const std::string &str, const std::string &chars=" \n\t\b\r\v") |
| Strips the given characters from the left side of a string. More...
|
|
static std::string | rstrip (const std::string &str, const std::string &chars=" \n\t\b\r\v") |
| Strips the given characters from the right side of a string. More...
|
|
static std::string | lstripUntil (const std::string &str, const std::string &chr, const bool &inclusive=true, const bool &consecutives=true) |
| Strips everything from a string starting from the left side untill the delimiter is found (a.k.a. cut) More...
|
|
static void | split (std::vector< std::string > &list, const std::string &target_str, const std::string &separator="\n") |
| Splits a string using a separator. More...
|
|
static void | splitrip (std::vector< std::string > &list, const std::string &target_str, const std::string &separator="\n", const std::string &strip=" \n\t\b\r\v") |
| Splits a string and strips all the splitted items. More...
|
|
static const std::string | replace (const std::string &str, const std::string &target, const std::string &replace) |
| Replaces all the occurrences of a sequence with another. More...
|
|
static const std::string | toUpper (const std::string &str) |
| Converts a string to upper case. More...
|
|
static const std::string | toLower (const std::string &str) |
| Converts a string to lower case. More...
|
|
StringOps.
Utilities for the strings