Interface for a string transcoding utility. Instances of classes that implement this interface can be used to transcode CEGUI::Strings to and from some other character encodings not directly supported by the CEGUI::String class.
More...
Inherits CEGUI::AllocatedObject< StringTranscoder >, and CEGUI::AllocatedObject< StringTranscoder >.
Inherited by CEGUI::IconvStringTranscoder, CEGUI::IconvStringTranscoder, CEGUI::Win32StringTranscoder, and CEGUI::Win32StringTranscoder.
|
virtual uint16 * | stringToUTF16 (const String &input) const =0 |
| Transcode the given string to a UTF-16 encoded buffer. More...
|
|
virtual std::wstring | stringToStdWString (const String &input) const =0 |
| Transcode the given string to a std::wstring object. More...
|
|
virtual String | stringFromUTF16 (const uint16 *input) const =0 |
|
virtual String | stringFromStdWString (const std::wstring &input) const =0 |
|
virtual void | deleteUTF16Buffer (uint16 *input) const =0 |
| deletes a buffer returned from the stringToUTF16 function.
|
|
virtual uint16 * | stringToUTF16 (const String &input) const =0 |
| Transcode the given string to a UTF-16 encoded buffer. More...
|
|
virtual std::wstring | stringToStdWString (const String &input) const =0 |
| Transcode the given string to a std::wstring object. More...
|
|
virtual String | stringFromUTF16 (const uint16 *input) const =0 |
|
virtual String | stringFromStdWString (const std::wstring &input) const =0 |
|
virtual void | deleteUTF16Buffer (uint16 *input) const =0 |
| deletes a buffer returned from the stringToUTF16 function.
|
|
Interface for a string transcoding utility. Instances of classes that implement this interface can be used to transcode CEGUI::Strings to and from some other character encodings not directly supported by the CEGUI::String class.
§ stringToStdWString() [1/2]
virtual std::wstring CEGUI::StringTranscoder::stringToStdWString |
( |
const String & |
input | ) |
const |
|
pure 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.
Implemented in CEGUI::IconvStringTranscoder, CEGUI::Win32StringTranscoder, CEGUI::IconvStringTranscoder, and CEGUI::Win32StringTranscoder.
§ stringToStdWString() [2/2]
virtual std::wstring CEGUI::StringTranscoder::stringToStdWString |
( |
const String & |
input | ) |
const |
|
pure 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.
Implemented in CEGUI::IconvStringTranscoder, CEGUI::Win32StringTranscoder, CEGUI::IconvStringTranscoder, and CEGUI::Win32StringTranscoder.
§ stringToUTF16() [1/2]
virtual uint16* CEGUI::StringTranscoder::stringToUTF16 |
( |
const String & |
input | ) |
const |
|
pure virtual |
§ stringToUTF16() [2/2]
virtual uint16* CEGUI::StringTranscoder::stringToUTF16 |
( |
const String & |
input | ) |
const |
|
pure virtual |