#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< CL_TempString > | split_text (const CL_StringRef &text, const CL_StringRef &split_string, bool skip_empty=true) |
| static CL_TempString | trim (const CL_StringRef &text) |
| Trim. | |
| static int | compare (const CL_StringRef8 &a, const CL_StringRef8 &b, bool case_insensitive=false) |
| Compare. | |
| static int | compare (const CL_StringRef16 &a, const CL_StringRef16 &b, bool case_insensitive=false) |
| Compare. | |
| static CL_TempString | text_to_upper (const CL_StringRef &s) |
| Text to upper. | |
| static CL_TempString8 | local8_to_upper (const CL_StringRef8 &s) |
| Local8 to upper. | |
| static CL_TempString16 | ucs2_to_upper (const CL_StringRef16 &s) |
| Ucs2 to upper. | |
| static CL_TempString | text_to_lower (const CL_StringRef &s) |
| Text to lower. | |
| static CL_TempString8 | local8_to_lower (const CL_StringRef8 &s) |
| Local8 to lower. | |
| static CL_TempString16 | ucs2_to_lower (const CL_StringRef16 &s) |
| Ucs2 to lower. | |
| static CL_TempString | float_to_text (float value, int num_decimal_places=6) |
| Float to text. | |
| static CL_TempString8 | float_to_local8 (float value, int num_decimal_places=6) |
| Float to local8. | |
| static CL_TempString16 | float_to_ucs2 (float value, int num_decimal_places=6) |
| Float to ucs2. | |
| static float | text_to_float (const CL_StringRef &value) |
| Text to float. | |
| static float | local8_to_float (const CL_StringRef8 &value) |
| Local8 to float. | |
| static float | ucs2_to_float (const CL_StringRef16 &value) |
| Ucs2 to float. | |
| static CL_TempString | double_to_text (double value, int num_decimal_places=6) |
| Double to text. | |
| static CL_TempString8 | double_to_local8 (double value, int num_decimal_places=6) |
| Double to local8. | |
| static CL_TempString16 | double_to_ucs2 (double value, int num_decimal_places=6) |
| Double to ucs2. | |
| static double | text_to_double (const CL_StringRef &value) |
| Text to double. | |
| static double | local8_to_double (const CL_StringRef8 &value) |
| Local8 to double. | |
| static double | ucs2_to_double (const CL_StringRef16 &value) |
| Ucs2 to double. | |
| static CL_TempString | int_to_text (int value) |
| Int to text. | |
| static CL_TempString8 | int_to_local8 (int value) |
| Int to local8. | |
| static CL_TempString16 | int_to_ucs2 (int value) |
| Int to ucs2. | |
| static int | text_to_int (const CL_StringRef &value, int base=10) |
| Text to int. | |
| static int | local8_to_int (const CL_StringRef8 &value, int base=10) |
| Local8 to int. | |
| static int | ucs2_to_int (const CL_StringRef16 &value, int base=10) |
| Ucs2 to int. | |
| static CL_TempString | uint_to_text (unsigned int value) |
| Uint to text. | |
| static CL_TempString8 | uint_to_local8 (unsigned int value) |
| Uint to local8. | |
| static CL_TempString16 | uint_to_ucs2 (unsigned int value) |
| Uint to ucs2. | |
| static unsigned int | text_to_uint (const CL_StringRef &value, int base=10) |
| static unsigned int | local8_to_uint (const CL_StringRef8 &value, int base=10) |
| static unsigned int | ucs2_to_uint (const CL_StringRef16 &value, int base=10) |
| static CL_TempString | bool_to_text (bool value) |
| Bool to text. | |
| static CL_TempString8 | bool_to_local8 (bool value) |
| Bool to local8. | |
| static CL_TempString16 | bool_to_ucs2 (bool value) |
| Bool to ucs2. | |
| static bool | text_to_bool (const CL_StringRef &value) |
| Text to bool. | |
| static bool | local8_to_bool (const CL_StringRef8 &value) |
| Local8 to bool. | |
| static bool | ucs2_to_bool (const CL_StringRef16 &value) |
| Ucs2 to bool. | |
| static CL_TempString8 | text_to_cp437 (const CL_StringRef &text) |
| Text to cp437. | |
| static CL_TempString8 | ucs2_to_cp437 (const CL_StringRef16 &text) |
| Ucs2 to cp437. | |
| static CL_TempString | cp437_to_text (const CL_StringRef8 &cp437) |
| Cp437 to text. | |
| static CL_TempString16 | cp437_to_ucs2 (const CL_StringRef8 &cp437) |
| Cp437 to ucs2. | |
| static CL_TempString8 | text_to_local8 (const CL_StringRef &text) |
| Text to local8. | |
| static CL_TempString8 | text_to_utf8 (const CL_StringRef &text) |
| Text to utf8. | |
| static CL_TempString8 | ucs2_to_latin1 (const CL_StringRef16 &ucs2) |
| Ucs2 to latin1. | |
| static CL_TempString8 | ucs2_to_latin9 (const CL_StringRef16 &ucs2) |
| Ucs2 to latin9. | |
| static CL_TempString8 | ucs2_to_local8 (const CL_StringRef16 &ucs2) |
| Ucs2 to local8. | |
| static CL_TempString8 | ucs2_to_utf8 (const CL_StringRef16 &ucs2) |
| Ucs2 to utf8. | |
| static CL_TempString | local8_to_text (const CL_StringRef8 &local8) |
| Local8 to text. | |
| static CL_TempString | ucs2_to_text (const CL_StringRef16 &ucs2) |
| Ucs2 to text. | |
| static CL_TempString16 | latin1_to_ucs2 (const CL_StringRef8 &latin1) |
| Latin1 to ucs2. | |
| static CL_TempString16 | latin9_to_ucs2 (const CL_StringRef8 &latin9) |
| Latin9 to ucs2. | |
| static CL_TempString16 | local8_to_ucs2 (const CL_StringRef8 &local8) |
| Local8 to ucs2. | |
| static CL_TempString16 | utf8_to_ucs2 (const CL_StringRef8 &utf8) |
| Utf8 to ucs2. | |
| static CL_TempString | utf8_to_text (const CL_StringRef8 &utf8) |
| Utf8 to text. | |
| static BOMType | detect_bom (const void *data, CL_String::size_type length) |
| Detect bom. | |
|
|
|
|
|
Bool to local8.
|
|
|
Bool to text.
|
|
|
Bool to ucs2.
|
|
||||||||||||||||
|
Compare.
|
|
||||||||||||||||
|
Compare.
|
|
|
Cp437 to text.
|
|
|
Cp437 to ucs2.
|
|
||||||||||||
|
Detect bom.
|
|
||||||||||||
|
Double to local8.
|
|
||||||||||||
|
Double to text.
|
|
||||||||||||
|
Double to ucs2.
|
|
||||||||||||
|
Float to local8.
|
|
||||||||||||
|
Float to text.
|
|
||||||||||||
|
Float to ucs2.
|
|
|
Int to local8.
|
|
|
Int to text.
|
|
|
Int to ucs2.
|
|
|
Latin1 to ucs2.
|
|
|
Latin9 to ucs2.
|
|
|
Local8 to bool.
|
|
|
Local8 to double.
|
|
|
Local8 to float.
|
|
||||||||||||
|
Local8 to int.
|
|
|
Local8 to lower.
|
|
|
Local8 to text.
|
|
|
Local8 to ucs2.
|
|
||||||||||||
|
|
|
|
Local8 to upper.
|
|
||||||||||||||||
|
|
|
|
Text to bool.
|
|
|
Text to cp437.
|
|
|
Text to double.
|
|
|
Text to float.
|
|
||||||||||||
|
Text to int.
|
|
|
Text to local8.
|
|
|
Text to lower.
|
|
||||||||||||
|
|
|
|
Text to upper.
|
|
|
Text to utf8.
|
|
|
Trim.
|
|
|
Ucs2 to bool.
|
|
|
Ucs2 to cp437.
|
|
|
Ucs2 to double.
|
|
|
Ucs2 to float.
|
|
||||||||||||
|
Ucs2 to int.
|
|
|
Ucs2 to latin1.
|
|
|
Ucs2 to latin9.
|
|
|
Ucs2 to local8.
|
|
|
Ucs2 to lower.
|
|
|
Ucs2 to text.
|
|
||||||||||||
|
|
|
|
Ucs2 to upper.
|
|
|
Ucs2 to utf8.
|
|
|
Uint to local8.
|
|
|
Uint to text.
|
|
|
Uint to ucs2.
|
|
|
Utf8 to text.
|
|
|
Utf8 to ucs2.
|
1.4.6