UtfString
Static Public Member Functions | List of all members
UtfString::UtfStringConverter Class Reference

#include <UtfStringConverter.h>

Static Public Member Functions

static void Utf8ToUtf16String (const Utf8String &utf8String, Utf16String &utf16String)
 Converts a UTF-8 string to a UTF-16 string. More...
 
static void Utf8ToUtf16String (const std::string &utf8String, Utf16String &utf16String)
 Converts a UTF-8 string to a UTF-16 string. More...
 
static void Utf16ToUtf8String (const Utf16String &utf16String, Utf8String &utf8String)
 Converts a UTF-16 string to a UTF-8 string. More...
 
static void Utf16ToUtf8String (const std::wstring &utf16String, Utf8String &utf8String)
 Converts a UTF-16 string to a UTF-8 string. More...
 

Detailed Description

This class contains the functionality for converting strings to another encoding.

Member Function Documentation

static void UtfString::UtfStringConverter::Utf16ToUtf8String ( const Utf16String utf16String,
Utf8String utf8String 
)
static

Converts a UTF-16 string to a UTF-8 string.

This function assumes that utf16String is a valid UTF-16 string.

Parameters
[in]utf16StringThe UTF-16 string to be converted
[out]utf8StringThe string in which the converted UTF-8 string will be stored
static void UtfString::UtfStringConverter::Utf16ToUtf8String ( const std::wstring &  utf16String,
Utf8String utf8String 
)
static

Converts a UTF-16 string to a UTF-8 string.

This function assumes that utf16String is a valid UTF-16 string.

Parameters
[in]utf16StringThe UTF-16 string to be converted
[out]utf8StringThe string in which the converted UTF-8 string will be stored
static void UtfString::UtfStringConverter::Utf8ToUtf16String ( const Utf8String utf8String,
Utf16String utf16String 
)
static

Converts a UTF-8 string to a UTF-16 string.

This function assumes that utf8String is a valid UTF-8 string.

Parameters
[in]utf8StringThe UTF-8 string to be converted
[out]utf16StringThe string in which the converted UTF-16 stored will be stored
static void UtfString::UtfStringConverter::Utf8ToUtf16String ( const std::string &  utf8String,
Utf16String utf16String 
)
static

Converts a UTF-8 string to a UTF-16 string.

This function assumes that utf8String is a valid UTF-8 string.

Parameters
[in]utf8StringThe UTF-8 string to be converted
[out]utf16StringThe string in which the converted UTF-16 string will be stored

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