![]() |
ezEngine
Release 25.03
|
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 (ezAllocator *pAllocator=ezFoundation::GetDefaultAllocator()) | |
ezStringWChar (const ezUInt16 *pUtf16, ezAllocator *pAllocator=ezFoundation::GetDefaultAllocator()) | |
ezStringWChar (const ezUInt32 *pUtf32, ezAllocator *pAllocator=ezFoundation::GetDefaultAllocator()) | |
ezStringWChar (const wchar_t *pUtf32, ezAllocator *pAllocator=ezFoundation::GetDefaultAllocator()) | |
ezStringWChar (ezStringView sUtf8, ezAllocator *pAllocator=ezFoundation::GetDefaultAllocator()) | |
void | operator= (const ezUInt16 *pUtf16) |
void | operator= (const ezUInt32 *pUtf32) |
void | operator= (const wchar_t *pUtf32) |
void | operator= (ezStringView sUtf8) |
EZ_ALWAYS_INLINE | operator const wchar_t * () const |
const EZ_ALWAYS_INLINE wchar_t * | GetData () const |
EZ_ALWAYS_INLINE ezUInt32 | GetElementCount () const |
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.