|
static std::string::size_type | char_length (const std::string &str) |
| Finds the number of characters in a UTF-8 string. More...
|
|
static ByteOrderMark | detect_bom (const void *data, std::string::size_type length) |
| Searches for a byte order mark. More...
|
|
static bool | equal_caseless (const std::string &a, const std::string &b) |
| Returns true if equal when doing a character case-insensitive comparison. More...
|
|
static std::string | from_utf16 (const std::wstring &s) |
| Convert from UTF-16 to UTF-8. More...
|
|
static std::string | from_utf32 (unsigned int value) |
| Convert Unicode code point to UTF-8. More...
|
|
static std::string | from_wchar (wchar_t value) |
| Convert UCS-2 code point to UTF-8. More...
|
|
static bool | less_caseless (const std::string &a, const std::string &b) |
| Returns true if less when doing a character case-insensitive comparison. More...
|
|
static bool | parse_bool (const std::string &value) |
|
static double | parse_double (const std::string &value) |
|
static float | parse_float (const std::string &value) |
|
static int | parse_int32 (const std::string &value, int base=10) |
|
static long long | parse_int64 (const std::string &value, int base=10) |
|
static unsigned int | parse_uint32 (const std::string &value, int base=10) |
| Parse a number. More...
|
|
static unsigned long long | parse_uint64 (const std::string &value, int base=10) |
|
static std::string | remove_trailing_zeros (std::string text) |
| Removes trailing zeros from floating point numbers. More...
|
|
static std::vector< std::string > | split (const std::string &text, const std::string &split_string, bool skip_empty=true) |
| Split text into a list. More...
|
|
static std::string | to_lower (const std::string &s) |
| Convert text to lowercase. More...
|
|
static std::string | to_string (unsigned char value, int base=10, bool uppercase=false) |
| Formats a number. More...
|
|
static std::string | to_string (unsigned short value, int base=10, bool uppercase=false) |
|
static std::string | to_string (unsigned int value, int base=10, bool uppercase=false) |
|
static std::string | to_string (unsigned long long value) |
|
static std::string | to_string (char value, int base=10, bool uppercase=false) |
|
static std::string | to_string (short value, int base=10, bool uppercase=false) |
|
static std::string | to_string (int value, int base=10, bool uppercase=false) |
|
static std::string | to_string (long long value) |
|
static std::string | to_string (float value, int digits=6, bool remove_trailing_zeros=true) |
|
static std::string | to_string (double value, int digits=6, bool remove_trailing_zeros=true) |
|
static std::string | to_string (bool value) |
|
static std::string | to_upper (const std::string &s) |
| Convert text to uppercase. More...
|
|
static std::wstring | to_utf16 (const std::string &s) |
| Convert from UTF-8 to UTF-16. More...
|
|
static std::string | trim (const std::string &text) |
| Trim whitespace from front and back. More...
|
|