ezEngine  Milestone 7
ezStringWChar Class Reference

A very simple string class that should only be used to temporarily convert text to the OSes native wchar_t convention (16 or 32 Bit). More...

#include <StringConversion.h>

Public Member Functions

 ezStringWChar (ezAllocatorBase *pAllocator=ezFoundation::GetDefaultAllocator())
 
 ezStringWChar (const char *szUtf8, ezAllocatorBase *pAllocator=ezFoundation::GetDefaultAllocator())
 
 ezStringWChar (const ezUInt16 *szUtf16, ezAllocatorBase *pAllocator=ezFoundation::GetDefaultAllocator())
 
 ezStringWChar (const ezUInt32 *szUtf32, ezAllocatorBase *pAllocator=ezFoundation::GetDefaultAllocator())
 
 ezStringWChar (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 wchar_t * GetData () const
 
ezUInt32 GetElementCount () const
 

Private Member Functions

 EZ_DISALLOW_COPY_AND_ASSIGN (ezStringWChar)
 

Private Attributes

ezHybridArray< wchar_t,
BufferSize > 
m_Data
 

Static Private Attributes

static const ezUInt32 BufferSize = 1024
 

Detailed Description

A very simple string class that should only be used to temporarily convert text to the OSes native wchar_t convention (16 or 32 Bit).

This should be used when one needs to output text via some function that only accepts wchar_t strings. DO NOT use this for storage or anything else that is not temporary. wchar_t is 16 Bit on Windows and 32 Bit on most other platforms. This class will always automatically convert to the correct format.


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