Static Public Member Functions
Poco::UnicodeConverter Class Reference

#include <UnicodeConverter.h>

List of all members.

Static Public Member Functions

static void toUTF16 (const std::string &utf8String, std::wstring &utf16String)
static void toUTF16 (const char *utf8String, int length, std::wstring &utf16String)
 Converts the given UTF-8 encoded string into an UTF-16 encoded wstring.
static void toUTF16 (const char *utf8String, std::wstring &utf16String)
 Converts the given UTF-8 encoded character sequence into an UTF-16 encoded string.
static void toUTF8 (const std::wstring &utf16String, std::string &utf8String)
 Converts the given zero-terminated UTF-8 encoded character sequence into an UTF-16 encoded wstring.
static void toUTF8 (const wchar_t *utf16String, int length, std::string &utf8String)
 Converts the given UTF-16 encoded wstring into an UTF-8 encoded string.
static void toUTF8 (const wchar_t *utf16String, std::string &utf8String)
 Converts the given zero-terminated UTF-16 encoded wide character sequence into an UTF-8 encoded wstring.

Detailed Description

A convenience class that converts strings from UTF-8 encoded std::strings to UTF-16 encoded std::wstrings and vice-versa.

This class is mainly used for working with the Unicode Windows APIs and probably won't be of much use anywhere else.

Definition at line 49 of file UnicodeConverter.h.


Member Function Documentation

void Poco::UnicodeConverter::toUTF16 ( const std::string &  utf8String,
std::wstring &  utf16String 
) [static]

Definition at line 52 of file UnicodeConverter.cpp.

void Poco::UnicodeConverter::toUTF16 ( const char *  utf8String,
int  length,
std::wstring &  utf16String 
) [static]

Converts the given UTF-8 encoded string into an UTF-16 encoded wstring.

Definition at line 62 of file UnicodeConverter.cpp.

void Poco::UnicodeConverter::toUTF16 ( const char *  utf8String,
std::wstring &  utf16String 
) [static]

Converts the given UTF-8 encoded character sequence into an UTF-16 encoded string.

Definition at line 101 of file UnicodeConverter.cpp.

void Poco::UnicodeConverter::toUTF8 ( const std::wstring &  utf16String,
std::string &  utf8String 
) [static]

Converts the given zero-terminated UTF-8 encoded character sequence into an UTF-16 encoded wstring.

Definition at line 107 of file UnicodeConverter.cpp.

void Poco::UnicodeConverter::toUTF8 ( const wchar_t *  utf16String,
int  length,
std::string &  utf8String 
) [static]

Converts the given UTF-16 encoded wstring into an UTF-8 encoded string.

Definition at line 117 of file UnicodeConverter.cpp.

void Poco::UnicodeConverter::toUTF8 ( const wchar_t *  utf16String,
std::string &  utf8String 
) [static]

Converts the given zero-terminated UTF-16 encoded wide character sequence into an UTF-8 encoded wstring.

Definition at line 127 of file UnicodeConverter.cpp.


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


pluginlib
Author(s): Tully Foote and Eitan Marder-Eppstein
autogenerated on Sat Dec 28 2013 17:20:20