ezEngine  Milestone 7
ezStringUtf16 Class Reference

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

#include <StringConversion.h>

Public Member Functions

 ezStringUtf16 (ezAllocatorBase *pAllocator=ezFoundation::GetDefaultAllocator())
 
 ezStringUtf16 (const char *szUtf8, ezAllocatorBase *pAllocator=ezFoundation::GetDefaultAllocator())
 
 ezStringUtf16 (const ezUInt16 *szUtf16, ezAllocatorBase *pAllocator=ezFoundation::GetDefaultAllocator())
 
 ezStringUtf16 (const ezUInt32 *szUtf32, ezAllocatorBase *pAllocator=ezFoundation::GetDefaultAllocator())
 
 ezStringUtf16 (const wchar_t *szUtf32, ezAllocatorBase *pAllocator=ezFoundation::GetDefaultAllocator())
 
void operator= (const char *szUtf8)
 
void operator= (const ezUInt16 *szUtf16)
 
void operator= (const ezUInt32 *szUtf32)
 
void operator= (const wchar_t *szUtf32)
 
const ezUInt16 * GetData () const
 
ezUInt32 GetElementCount () const
 

Private Member Functions

 EZ_DISALLOW_COPY_AND_ASSIGN (ezStringUtf16)
 

Private Attributes

ezHybridArray< ezUInt16,
BufferSize > 
m_Data
 

Static Private Attributes

static const ezUInt32 BufferSize = 1024
 

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 ezStringWChar instead.


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