MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLUTF8Decoder Class Reference

Detailed Description

Provides a simple string wrapper which helps convert strings in UTF-8 to various character encodings.

The string value can be retrieved as a const char*, in a given encoding, or as a const wchar_t*, for which the encoding is platform-dependent.

Public Member Functions

 TSLUTF8Decoder (const char *utf8String, unsigned int length=0)
 
 TSLUTF8Decoder (const std::string &utf8String)
 
 ~TSLUTF8Decoder ()
 
 operator const wchar_t * ()
 
 operator wchar_t * ()
 
 operator const char * ()
 
 operator char * ()
 

Constructor & Destructor Documentation

◆ TSLUTF8Decoder() [1/2]

TSLUTF8Decoder::TSLUTF8Decoder ( const char * utf8String,
unsigned int length = 0 )
inline

Creates a decoder given a string, encoded as UTF-8.

Parameters
utf8StringThe input string value, in UTF-8.
lengthThe length of the input string, in characters.

◆ TSLUTF8Decoder() [2/2]

TSLUTF8Decoder::TSLUTF8Decoder ( const std::string & utf8String)
inline

Creates a decoder given a string, encoded as UTF-8.

Parameters
utf8StringThe input string value, in UTF-8.

◆ ~TSLUTF8Decoder()

TSLUTF8Decoder::~TSLUTF8Decoder ( )
inline

Member Function Documentation

◆ operator char *()

TSLUTF8Decoder::operator char * ( )
inline

Gets the string value, in the current system codepage

◆ operator const char *()

TSLUTF8Decoder::operator const char * ( )
inline

Gets the string value, in the current system codepage

◆ operator const wchar_t *()

TSLUTF8Decoder::operator const wchar_t * ( )
inline

Gets the string value, as a widechar-based string.

Note: The character encoding of a widechar-based string is platform-dependent.

◆ operator wchar_t *()

TSLUTF8Decoder::operator wchar_t * ( )
inline