Crazy Eddie's GUI System  0.8.4
CEGUI::Win32StringTranscoder Class Reference

Implementation of StringTranscoder that uses Win32. More...

+ Inheritance diagram for CEGUI::Win32StringTranscoder:
+ Collaboration diagram for CEGUI::Win32StringTranscoder:

List of all members.

Public Member Functions

uint16 * stringToUTF16 (const String &input) const
 Transcode the given string to a UTF-16 encoded buffer.
std::wstring stringToStdWString (const String &input) const
 Transcode the given string to a std::wstring object.
String stringFromUTF16 (const uint16 *input) const
String stringFromStdWString (const std::wstring &input) const
void deleteUTF16Buffer (uint16 *input) const
 deletes a buffer returned from the stringToUTF16 function.

Detailed Description

Implementation of StringTranscoder that uses Win32.


Member Function Documentation

std::wstring CEGUI::Win32StringTranscoder::stringToStdWString ( const String input) const [virtual]

Transcode the given string to a std::wstring object.

Parameters:
inputString object with the text to be transcoded.
Returns:
std::wstring holding the transcoded data in some appropriate encoding.
Note:
What is represented by std::wstring and how it should be interpreted is implementation specific. This means that the content of the returned std::wstring may vary according to the operating system and compiler used - although what is returned should be consistent with other std::wstring data running on the same implementation. This largely means that on Microsoft Windows you will have UTF-16 and on *nix type environments you will have UTF-32.

Implements CEGUI::StringTranscoder.

uint16* CEGUI::Win32StringTranscoder::stringToUTF16 ( const String input) const [virtual]

Transcode the given string to a UTF-16 encoded buffer.

Parameters:
inputString object with the text to be transcoded.
Returns:
Pointer to an array of utf16 values. This buffer should be deleted by calling the deleteUTF16Buffer function.

Implements CEGUI::StringTranscoder.

 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends