![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
Provides a simple string wrapper which helps convert strings in various character sets to UTF-8.
Can be created using either a const char* and a given character encoding, or using a wchar_t*, for which encoding is platform-dependent.
Public Member Functions | |
TSLUTF8Encoder (const char *value, unsigned int length=0, TSLTextEncoding encoding=TSLTextEncodingSystemCodePage) | |
TSLUTF8Encoder (const wchar_t *wvalue, unsigned int length=0) | |
TSLUTF8Encoder (const std::string &value, TSLTextEncoding encoding=TSLTextEncodingSystemCodePage) | |
TSLUTF8Encoder (const std::wstring &value) | |
~TSLUTF8Encoder () | |
operator const char * () | |
operator char * () | |
|
inline |
Creates an encoder given a string and an encoding.
value | The input string value, in the specified character encoding. |
length | The length of the input string, in characters. |
encoding | The character encoding of the input string, defaults to the current system encoding. |
|
inline |
Creates an encoder given a widechar string.
wvalue | The input string. |
length | The length of the input string, in characters. |
|
inline |
Creates an encoder given a std::string and an encoding.
value | The input string value, in the specified character encoding. |
encoding | The character encoding of the input string, defaults to the current system encoding. |
|
inline |
Creates an encoder given a std::wstring
value | The input string. |
|
inline |
|
inline |
|
inline |
Gets the strings value as a UTF-8 encoded string.