List of all members
clan::StringHelp Class Reference
clanCore Text

String helper functions. More...

`#include <string_help.h>`

## Operations
enum | BOMType { bom_none, bom_utf32_be, bom_utf32_le, bom_utf16_be, bom_utf16_le, bom_utf8 }
static std::vector< std::string > | split_text (const std::string &text, const std::string &split_string, bool skip_empty=true)
static std::string | wchar_to_utf8 (wchar_t value)
| Wide char to utf-8. More...
static std::string | unicode_to_utf8 (unsigned int value)
| unicode char to utf-8 More...
static std::string | trim (const std::string &text)
| Trim. More...
static std::string | remove_trailing_zeros (std::string text)
| Removes trailing zeros from floating point numbers. More...
static std::wstring | remove_trailing_zeros (std::wstring text)
static int | compare (const std::string &a, const std::string &b, bool case_insensitive=false)
| Compare. More...
static int | compare (const std::wstring &a, const std::wstring &b, bool case_insensitive=false)
| Compare. More...
static std::string | text_to_upper (const std::string &s)
| Text to upper. More...
static std::string | local8_to_upper (const std::string &s)
| Local8 to upper. More...
static std::wstring | ucs2_to_upper (const std::wstring &s)
| Ucs2 to upper. More...
static std::string | text_to_lower (const std::string &s)
| Text to lower. More...
static std::string | local8_to_lower (const std::string &s)
| Local8 to lower. More...
static std::wstring | ucs2_to_lower (const std::wstring &s)
| Ucs2 to lower. More...
static std::string | float_to_text (float value, int num_decimal_places=6, bool remove_trailing_zeros=true)
| Float to text. More...
static std::string | float_to_local8 (float value, int num_decimal_places=6, bool remove_trailing_zeros=true)
| Float to local8. More...
static std::wstring | float_to_ucs2 (float value, int num_decimal_places=6, bool remove_trailing_zeros=true)
| Float to ucs2. More...
static float | text_to_float (const std::string &value)
| Text to float. More...
static float | local8_to_float (const std::string &value)
| Local8 to float. More...
static float | ucs2_to_float (const std::wstring &value)
| Ucs2 to float. More...
static std::string | double_to_text (double value, int num_decimal_places=6)
| Double to text. More...
static std::string | double_to_local8 (double value, int num_decimal_places=6)
| Double to local8. More...
static std::wstring | double_to_ucs2 (double value, int num_decimal_places=6)
| Double to ucs2. More...
static double | text_to_double (const std::string &value)
| Text to double. More...
static double | local8_to_double (const std::string &value)
| Local8 to double. More...
static double | ucs2_to_double (const std::wstring &value)
| Ucs2 to double. More...
static std::string | int_to_text (int value)
| Int to text. More...
static std::string | int_to_local8 (int value)
| Int to local8. More...
static std::wstring | int_to_ucs2 (int value)
| Int to ucs2. More...
static int | text_to_int (const std::string &value, int base=10)
| Text to int. More...
static int | local8_to_int (const std::string &value, int base=10)
| Local8 to int. More...
static int | ucs2_to_int (const std::wstring &value, int base=10)
| Ucs2 to int. More...
static std::string | uint_to_text (unsigned int value)
| Uint to text. More...
static std::string | uint_to_local8 (unsigned int value)
| Uint to local8. More...
static std::wstring | uint_to_ucs2 (unsigned int value)
| Uint to ucs2. More...
static unsigned int | text_to_uint (const std::string &value, int base=10)
static unsigned int | local8_to_uint (const std::string &value, int base=10)
static unsigned int | ucs2_to_uint (const std::wstring &value, int base=10)
static std::string | ll_to_text (long long value)
| Long long to text. More...
static std::string | ll_to_local8 (long long value)
| Long long to local8. More...
static std::wstring | ll_to_ucs2 (long long value)
| Long long to ucs2. More...
static long long | text_to_ll (const std::string &value, int base=10)
| Text to long long. More...
static long long | local8_to_ll (const std::string &value, int base=10)
| Local8 to long long. More...
static long long | ucs2_to_ll (const std::wstring &value, int base=10)
| Ucs2 to long long. More...
static std::string | ull_to_text (unsigned long long value)
| Unsigned long long to text. More...
static std::string | ull_to_local8 (unsigned long long value)
| Unsigned long long to local8. More...
static std::wstring | ull_to_ucs2 (unsigned long long value)
| Unsigned long long to ucs2. More...
static unsigned long long | text_to_ull (const std::string &value, int base=10)
| Text to unsigned long long. More...
static unsigned long long | local8_to_ull (const std::string &value, int base=10)
| Local8 to unsigned long long. More...
static unsigned long long | ucs2_to_ull (const std::wstring &value, int base=10)
| Ucs2 to unsigned long long. More...
static std::string | bool_to_text (bool value)
| Bool to text. More...
static std::string | bool_to_local8 (bool value)
| Bool to local8. More...
static std::wstring | bool_to_ucs2 (bool value)
| Bool to ucs2. More...
static bool | text_to_bool (const std::string &value)
| Text to bool. More...
static bool | local8_to_bool (const std::string &value)
| Local8 to bool. More...
static bool | ucs2_to_bool (const std::wstring &value)
| Ucs2 to bool. More...
static std::string | text_to_cp437 (const std::string &text)
| Text to cp437. More...
static std::string | ucs2_to_cp437 (const std::wstring &text)
| Ucs2 to cp437. More...
static std::string | cp437_to_text (const std::string &cp437)
| Cp437 to text. More...
static std::wstring | cp437_to_ucs2 (const std::string &cp437)
| Cp437 to ucs2. More...
static std::string | text_to_local8 (const std::string &text)
| Text to local8. More...
static std::string | text_to_utf8 (const std::string &text)
| Text to utf8. More...
static std::string | ucs2_to_latin1 (const std::wstring &ucs2)
| Ucs2 to latin1. More...
static std::string | ucs2_to_latin9 (const std::wstring &ucs2)
| Ucs2 to latin9. More...
static std::string | ucs2_to_local8 (const std::wstring &ucs2)
| Ucs2 to local8. More...
static std::string | ucs2_to_utf8 (const std::wstring &ucs2)
| Ucs2 to utf8. More...
static std::string | local8_to_text (const std::string &local8)
| Local8 to text. More...
static std::string | ucs2_to_text (const std::wstring &ucs2)
| Ucs2 to text. More...
static std::wstring | latin1_to_ucs2 (const std::string &latin1)
| Latin1 to ucs2. More...
static std::wstring | latin9_to_ucs2 (const std::string &latin9)
| Latin9 to ucs2. More...
static std::wstring | local8_to_ucs2 (const std::string &local8)
| Local8 to ucs2. More...
static std::wstring | utf8_to_ucs2 (const std::string &utf8)
| Utf8 to ucs2. More...
static std::string | utf8_to_text (const std::string &utf8)
| Utf8 to text. More...
static std::string::size_type | utf8_length (const std::string &str)
static BOMType | detect_bom (const void *data, std::string::size_type length)
| Detect bom. More...

## Detailed Description

String helper functions.

The documentation for this class was generated from the following file:

- string_help.h