Plasma Engine  2.0
Loading...
Searching...
No Matches
plStringWChar 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

 plStringWChar (plAllocator *pAllocator=plFoundation::GetDefaultAllocator())
 
 plStringWChar (const plUInt16 *pUtf16, plAllocator *pAllocator=plFoundation::GetDefaultAllocator())
 
 plStringWChar (const plUInt32 *pUtf32, plAllocator *pAllocator=plFoundation::GetDefaultAllocator())
 
 plStringWChar (const wchar_t *pUtf32, plAllocator *pAllocator=plFoundation::GetDefaultAllocator())
 
 plStringWChar (plStringView sUtf8, plAllocator *pAllocator=plFoundation::GetDefaultAllocator())
 
void operator= (const plUInt16 *pUtf16)
 
void operator= (const plUInt32 *pUtf32)
 
void operator= (const wchar_t *pUtf32)
 
void operator= (plStringView sUtf8)
 
PL_ALWAYS_INLINE operator const wchar_t * () const
 
PL_ALWAYS_INLINE const wchar_t * GetData () const
 
PL_ALWAYS_INLINE plUInt32 GetElementCount () const
 

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: