Implementation of StringTranscoder that uses Win32.
More...
#include <Win32StringTranscoder.h>
Implementation of StringTranscoder that uses Win32.
◆ deleteUTF16Buffer()
void CEGUI::Win32StringTranscoder::deleteUTF16Buffer |
( |
uint16 * | input | ) |
const |
|
virtual |
◆ stringFromStdWString()
String CEGUI::Win32StringTranscoder::stringFromStdWString |
( |
const std::wstring & | input | ) |
const |
|
virtual |
◆ stringFromUTF16()
String CEGUI::Win32StringTranscoder::stringFromUTF16 |
( |
const uint16 * | input | ) |
const |
|
virtual |
◆ stringToStdWString()
std::wstring CEGUI::Win32StringTranscoder::stringToStdWString |
( |
const String & | input | ) |
const |
|
virtual |
Transcode the given string to a std::wstring object.
- Parameters
-
input | String 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.
◆ stringToUTF16()
uint16 * CEGUI::Win32StringTranscoder::stringToUTF16 |
( |
const String & | input | ) |
const |
|
virtual |
Transcode the given string to a UTF-16 encoded buffer.
- Parameters
-
input | String 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.