|
| CStringUTF8_DEPRECATED (void) |
|
| ~CStringUTF8_DEPRECATED (void) |
|
| CStringUTF8_DEPRECATED (const CStringUTF8_DEPRECATED &src, EValidate validate=eNoValidate) |
| Copy constructor. More...
|
|
| CStringUTF8_DEPRECATED (const CTempString src) |
| Constructor from a C/C++ string. More...
|
|
| CStringUTF8_DEPRECATED (const char *src) |
|
| CStringUTF8_DEPRECATED (const string &src) |
|
| CStringUTF8_DEPRECATED (const CTempString src, EEncoding encoding, EValidate validate=eNoValidate) |
|
| CStringUTF8_DEPRECATED (const char *src, EEncoding encoding, EValidate validate=eNoValidate) |
|
| CStringUTF8_DEPRECATED (const string &src, EEncoding encoding, EValidate validate=eNoValidate) |
|
| CStringUTF8_DEPRECATED (const TStringUnicode &src) |
| Constructor from Unicode string. More...
|
|
| CStringUTF8_DEPRECATED (const TStringUCS2 &src) |
|
| CStringUTF8_DEPRECATED (const wstring &src) |
|
| CStringUTF8_DEPRECATED (const TUnicodeSymbol *src) |
| Constructor from Unicode character sequence. More...
|
|
| CStringUTF8_DEPRECATED (const TCharUCS2 *src) |
|
| CStringUTF8_DEPRECATED (const wchar_t *src) |
|
| CStringUTF8_DEPRECATED (ECharBufferType type, const TUnicodeSymbol *src, SIZE_TYPE char_count) |
| Constructor from Unicode character sequence. More...
|
|
| CStringUTF8_DEPRECATED (ECharBufferType type, const TCharUCS2 *src, SIZE_TYPE char_count) |
|
| CStringUTF8_DEPRECATED (ECharBufferType type, const wchar_t *src, SIZE_TYPE char_count) |
|
CStringUTF8_DEPRECATED & | operator= (const CStringUTF8_DEPRECATED &src) |
| Assign UTF8 string. More...
|
|
CStringUTF8_DEPRECATED & | operator= (const TStringUnicode &src) |
| Assign Unicode C++ string. More...
|
|
CStringUTF8_DEPRECATED & | operator= (const TStringUCS2 &src) |
|
CStringUTF8_DEPRECATED & | operator= (const wstring &src) |
|
CStringUTF8_DEPRECATED & | operator= (const TUnicodeSymbol *src) |
| Assign Unicode C string. More...
|
|
CStringUTF8_DEPRECATED & | operator= (const TCharUCS2 *src) |
|
CStringUTF8_DEPRECATED & | operator= (const wchar_t *src) |
|
CStringUTF8_DEPRECATED & | operator+= (const CStringUTF8_DEPRECATED &src) |
| Append UTF8 string. More...
|
|
CStringUTF8_DEPRECATED & | operator+= (const TStringUnicode &src) |
| Append Unicode C++ string. More...
|
|
CStringUTF8_DEPRECATED & | operator+= (const TStringUCS2 &src) |
|
CStringUTF8_DEPRECATED & | operator+= (const wstring &src) |
|
CStringUTF8_DEPRECATED & | operator+= (const TUnicodeSymbol *src) |
| Append Unicode C string. More...
|
|
CStringUTF8_DEPRECATED & | operator+= (const TCharUCS2 *src) |
|
CStringUTF8_DEPRECATED & | operator+= (const wchar_t *src) |
|
CStringUTF8_DEPRECATED & | Assign (const CTempString src, EEncoding encoding, EValidate validate=eNoValidate) |
| Assign C/C++ string. More...
|
|
CStringUTF8_DEPRECATED & | Assign (const TStringUnicode &src) |
| Assign Unicode C++ string. More...
|
|
CStringUTF8_DEPRECATED & | Assign (const TStringUCS2 &src) |
|
CStringUTF8_DEPRECATED & | Assign (const wstring &src) |
|
CStringUTF8_DEPRECATED & | Assign (const TUnicodeSymbol *src) |
| Assign Unicode C string. More...
|
|
CStringUTF8_DEPRECATED & | Assign (const TCharUCS2 *src) |
|
CStringUTF8_DEPRECATED & | Assign (const wchar_t *src) |
|
CStringUTF8_DEPRECATED & | Assign (ECharBufferType type, const TUnicodeSymbol *src, SIZE_TYPE char_count) |
| Assign Unicode C string or character buffer. More...
|
|
CStringUTF8_DEPRECATED & | Assign (ECharBufferType type, const TCharUCS2 *src, SIZE_TYPE char_count) |
|
CStringUTF8_DEPRECATED & | Assign (ECharBufferType type, const wchar_t *src, SIZE_TYPE char_count) |
|
CStringUTF8_DEPRECATED & | Assign (char ch, EEncoding encoding) |
| Assign a single character. More...
|
|
CStringUTF8_DEPRECATED & | Append (const CTempString src, EEncoding encoding, EValidate validate=eNoValidate) |
| Append a C/C++ string. More...
|
|
CStringUTF8_DEPRECATED & | Append (const TStringUnicode &src) |
| Append Unicode C++ string. More...
|
|
CStringUTF8_DEPRECATED & | Append (const TStringUCS2 &src) |
|
CStringUTF8_DEPRECATED & | Append (const wstring &src) |
|
CStringUTF8_DEPRECATED & | Append (const TUnicodeSymbol *src) |
| Append Unicode C string. More...
|
|
CStringUTF8_DEPRECATED & | Append (const TCharUCS2 *src) |
|
CStringUTF8_DEPRECATED & | Append (const wchar_t *src) |
|
CStringUTF8_DEPRECATED & | Append (ECharBufferType type, const TUnicodeSymbol *src, SIZE_TYPE char_count) |
| Append Unicode C string or character buffer. More...
|
|
CStringUTF8_DEPRECATED & | Append (ECharBufferType type, const TCharUCS2 *src, SIZE_TYPE char_count) |
|
CStringUTF8_DEPRECATED & | Append (ECharBufferType type, const wchar_t *src, SIZE_TYPE char_count) |
|
CStringUTF8_DEPRECATED & | Append (char ch, EEncoding encoding) |
| Append single character. More...
|
|
CStringUTF8_DEPRECATED & | Append (TUnicodeSymbol ch) |
| Append single Unicode code point. More...
|
|
SIZE_TYPE | GetSymbolCount (void) const |
| Get the number of symbols (code points) in the string. More...
|
|
bool | IsValid (void) const |
| Get the number of symbols (code points) in the string. More...
|
|
string | AsLatin1 (const char *substitute_on_error=0) const |
| Convert to ISO 8859-1 (Latin1) character representation. More...
|
|
string | AsSingleByteString (EEncoding encoding, const char *substitute_on_error=0) const |
| Convert the string to a single-byte character representation. More...
|
|
wstring | AsUnicode (const wchar_t *substitute_on_error=0) const |
| Convert to Unicode (UCS-2 with no surrogates where sizeof(wchar_t) == 2 and UCS-4 where sizeof(wchar_t) == 4). More...
|
|
TStringUCS2 | AsUCS2 (const TCharUCS2 *substitute_on_error=0) const |
| Convert to UCS-2 for all platforms. More...
|
|
template<typename TChar > |
basic_string< TChar > | AsBasicString (const TChar *substitute_on_error=0) const |
| Conversion to Unicode string with any base type we need. More...
|
|
CStringUTF8_DEPRECATED & | TruncateSpacesInPlace (NStr::ETrunc side=NStr::eTrunc_Both) |
| Guess the encoding of the C/C++ string. More...
|
|
bool CStringUTF8_DEPRECATED::IsValid |
( |
void |
| ) |
const |
Get the number of symbols (code points) in the string.
- Returns
- Number of symbols (code points)
- Deprecated:
- Use utility class CUtf8 instead
Get the number of valid UTF-8 symbols (code points) in the buffer
- Parameters
-
src | Character buffer |
buf_size | The number of bytes in the buffer |
- Returns
- Number of valid symbols (no exception thrown)
- Deprecated:
- Use utility class CUtf8 instead
Get the number of valid UTF-8 symbols (code points) in the char buffer
- Parameters
-
src | Zero-terminated character buffer, or string |
- Returns
- Number of valid symbols (no exception thrown)
- Deprecated:
- Use utility class CUtf8 instead
Get the number of valid UTF-8 bytes (code units) in the buffer
- Parameters
-
src | Character buffer |
buf_size | The number of bytes in the buffer |
- Returns
- Number of valid bytes (no exception thrown)
- Deprecated:
- Use utility class CUtf8 instead
Get the number of valid UTF-8 bytes (code units) in the char buffer
- Parameters
-
src | Zero-terminated character buffer, or string |
- Returns
- Number of valid bytes (no exception thrown)
- Deprecated:
- Use utility class CUtf8 instead
Check that the character encoding of the string is valid UTF-8
- Returns
- Result of the check
- Deprecated:
- Use utility class CUtf8 instead
Guess the encoding of the C/C++ string.
It can distinguish between UTF-8, Latin1, and Win1252 only
- Parameters
-
src | Source zero-terminated character buffer |
- Returns
- Encoding
- Deprecated:
- Use utility class CUtf8 instead
Check the encoding of the C/C++ string
Check that the encoding of the source is the same, or is compatible with the specified one
- Parameters
-
src | Source string |
encoding | Character encoding form to check against |
- Returns
- Boolean result: encoding is same or compatible
- Deprecated:
- Use utility class CUtf8 instead
Give Encoding name as string
NOTE: Function throws CStringException on attempt to get name of eEncoding_Unknown
- Parameters
-
- Returns
- Encoding name
- Deprecated:
- Use utility class CUtf8 instead
Convert encoding name into EEncoding enum, taking into account synonyms as per http://www.iana.org/assignments/character-sets
NOTE: Function returns eEncoding_Unknown for unsupported encodings
- Parameters
-
- Returns
- EEncoding enum
- Deprecated:
- Use utility class CUtf8 instead
Convert encoded character into UTF16
- Parameters
-
ch | Encoded character |
encoding | Character encoding |
- Returns
- Code point
- Deprecated:
- Use utility class CUtf8 instead
Convert Unicode code point into encoded character
- Parameters
-
sym | Code point |
encoding | Character encoding |
- Returns
- Encoded character
- Deprecated:
- Use utility class CUtf8 instead
Convert sequence of UTF8 code units into Unicode code point
- Parameters
-
src | UTF8 zero-terminated buffer |
- Returns
- Unicode code point
- Deprecated:
- Use utility class CUtf8 instead
Determines if a symbol is whitespace per http://unicode.org/charts/uca/chart_Whitespace.html
- Parameters
-
- See also
- TruncateSpacesInPlace, TruncateSpaces_Unsafe, TruncateSpaces
- Deprecated:
- Use utility class CUtf8 instead
Truncate spaces in the string (in-place)
- Parameters
-
side | Which end of the string to truncate spaces from. Default is to truncate spaces from both ends (eTrunc_Both). |
- Returns
- Reference to itself
- See also
- IsWhiteSpace, TruncateSpaces_Unsafe, TruncateSpaces
- Deprecated:
- Use utility class CUtf8 instead