![]() |
Plasma Engine
2.0
|
A very simple class to convert text to Utf16 encoding. More...
#include <StringConversion.h>
Public Member Functions | |
plStringUtf16 (plAllocator *pAllocator=plFoundation::GetDefaultAllocator()) | |
plStringUtf16 (const char *szUtf8, plAllocator *pAllocator=plFoundation::GetDefaultAllocator()) | |
plStringUtf16 (const plUInt16 *pUtf16, plAllocator *pAllocator=plFoundation::GetDefaultAllocator()) | |
plStringUtf16 (const plUInt32 *pUtf32, plAllocator *pAllocator=plFoundation::GetDefaultAllocator()) | |
plStringUtf16 (const wchar_t *pUtf32, plAllocator *pAllocator=plFoundation::GetDefaultAllocator()) | |
void | operator= (const char *szUtf8) |
void | operator= (const plUInt16 *pUtf16) |
void | operator= (const plUInt32 *pUtf32) |
void | operator= (const wchar_t *pUtf32) |
PL_ALWAYS_INLINE const plUInt16 * | GetData () const |
PL_ALWAYS_INLINE plUInt32 | GetElementCount () const |
A very simple class to convert text to Utf16 encoding.
Use this class only temporarily, if you need to output something in Utf16 format, e.g. for writing it to a file. Never use this for storage. When working with OS functions that expect '16 Bit strings', use plStringWChar instead.