XII Release 0.1.0
Loading...
Searching...
No Matches
xiiStringUtf16 Class Reference

A very simple class to convert text to Utf16 encoding. More...

#include <StringConversion.h>

Public Member Functions

 xiiStringUtf16 (xiiAllocatorBase *pAllocator=xiiFoundation::GetDefaultAllocator())
 
 xiiStringUtf16 (const char *szUtf8, xiiAllocatorBase *pAllocator=xiiFoundation::GetDefaultAllocator())
 
 xiiStringUtf16 (const xiiUInt16 *pUtf16, xiiAllocatorBase *pAllocator=xiiFoundation::GetDefaultAllocator())
 
 xiiStringUtf16 (const xiiUInt32 *pUtf32, xiiAllocatorBase *pAllocator=xiiFoundation::GetDefaultAllocator())
 
 xiiStringUtf16 (const wchar_t *pUtf32, xiiAllocatorBase *pAllocator=xiiFoundation::GetDefaultAllocator())
 
void operator= (const char *szUtf8)
 
void operator= (const xiiUInt16 *pUtf16)
 
void operator= (const xiiUInt32 *pUtf32)
 
void operator= (const wchar_t *pUtf32)
 
XII_ALWAYS_INLINE const xiiUInt16 * GetData () const
 
XII_ALWAYS_INLINE xiiUInt32 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 xiiStringWChar instead.


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