Plasma Engine  2.0
Loading...
Searching...
No Matches
plStringUtf16 Class Reference

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
 

Detailed Description

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.


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