ezEngine  Milestone 7
ezStringUtf8 Class Reference

A small string class that converts any other encoding to Utf8. More...

#include <StringConversion.h>

Public Member Functions

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

Private Member Functions

 EZ_DISALLOW_COPY_AND_ASSIGN (ezStringUtf8)
 

Private Attributes

ezHybridArray< char, BufferSize > m_Data
 

Static Private Attributes

static const ezUInt32 BufferSize = 1024
 

Detailed Description

A small string class that converts any other encoding to Utf8.

Use this class only temporarily. Do not use it for storage.


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