|
std::string | Trim (const std::string &str) |
| Return trimmed copy of string.
|
|
std::string | Trim (std::string &&str) |
| Trim string in-place.
|
|
std::vector< std::string > | Split (std::string_view str, std::string_view separators) |
|
std::vector< std::string_view > | SplitIntoStringViewVector (std::string_view str, std::string_view separators) |
|
std::string | Join (const std::vector< std::string > &strs, std::string_view sep) |
| Join string.
|
|
std::string | Format (double value, const std::string &locale, int ndigits=0, bool is_fixed=true) |
| Return number formatted with specified locale.
|
|
std::string | Format (double value, int ndigits) |
| Return number formatted.
|
|
std::string | Format (boost::multiprecision::cpp_dec_float_50 value, int ndigits) |
| Return cpp_dec_float_50 formatted.
|
|
bool | StartsWith (std::string_view hay, std::string_view needle) noexcept |
| Return true if hay starts with needle , false otherwise.
|
|
bool | EndsWith (std::string_view hay, std::string_view needle) noexcept |
| Return true if hay ends with needle , false otherwise.
|
|
std::string | ToLower (std::string_view str, const std::string &locale=kEnLocale) |
| Transform letters to lower case.
|
|
std::string | Capitalize (std::string_view str, const std::string &locale) |
| Capitalizes the first letter of the str.
|
|
std::string | RemoveQuotes (std::string_view str) |
|
bool | IsAscii (char ch) noexcept |
| Checks whether the character is an ASCII character.
|
|
bool | IsAsciiSpace (char ch) noexcept |
| Checks whether the character is a whitespace character in C locale.
|
|
bool | IsAscii (std::string_view text) noexcept |
| Checks if text contains only ASCII characters.
|
|
const std::locale & | GetLocale (const std::string &name) |
| Returns a locale with the specified name.
|
|
bool | IsUtf8 (std::string_view text) noexcept |
| Checks if text is in utf-8 encoding.
|
|
bool | IsPrintable (std::string_view text, bool ascii_only=true) noexcept |
|
bool | IsCString (std::string_view text) noexcept |
| Checks if there are no embedded null ('\0') characters in text.
|
|
std::string | CamelCaseToSnake (std::string_view camel) |
| convert CamelCase to snake_case(underscore)
|
|