86 return std::move( str.
Concat( a_wszStr ) );
103 operator const TWCHAR*()
const {
return m_pBuffer; }
117 Copy( a_wszStr, -1 );
130 m_pBuffer = str.m_pBuffer;
131 m_iExcessLen = str.m_iExcessLen;
132 m_iStrLen = str.m_iStrLen;
133 m_pAllocator = str.m_pAllocator;
140 typedef T2Allocator* ( *func_DefaultAllocatorCB )();
144 m_pBuffer = NullWString;
149 T2Allocator* GetAllocator()
151 return sm_pDefaultAllocatorCB();
154 static T2Allocator* GetDefaultAllocatorCB()
160 static inline func_DefaultAllocatorCB sm_pDefaultAllocatorCB = &GetDefaultAllocatorCB;
166 T2Allocator* m_pAllocator;
#define TOSHI_NAMESPACE_START
#define TOSHI_NAMESPACE_END
TFORCEINLINE T2Allocator * GetGlobalAllocator()
TWCHAR & operator[](TINT index)
TString16 & Concat(const TString16 &str, TINT size=-1)
TBOOL operator<(const TString16 &str) const
void Copy(const TString16 &src, TINT size=-1)
TString16 Mid(TINT a_iFirst, TINT a_iCount) const
TBOOL AllocBuffer(TINT size, TBOOL freeMemory=true)
TBOOL operator==(const TWCHAR *a_wszStr) const
TString16 Right(TINT a_iFrom) const
TINT Find(TWCHAR character, TINT pos=0) const
TString16 & Reserve(TINT size)
TBOOL IsAllLowerCase() const
TBOOL operator==(const TString16 &str) const
TString16 operator+(TWCHAR const *a_wszStr) const
TUINT16 ExcessLength() const
TString16 & operator=(TString16 &&str)
const TWCHAR & operator[](TINT index) const
TWCHAR * GetStringUnsafe(TINT a_iIndex=0)
TINT CompareNoCase(const TWCHAR *a_wszString, TINT a_iLength=-1) const
void ForceSetData(TWCHAR *a_cString, TINT a_ilength)
TString16 & VFormat(const TWCHAR *a_pcFormat, va_list a_vargs)
TBOOL operator<=(const TWCHAR *a_wszStr) const
TString16 & operator=(const TString16 &str)
const TWCHAR * GetString(TINT index=0) const
TINT Compare(const TWCHAR *a_wszString, TINT a_iLength=-1) const
static TString16 Format(const TWCHAR *a_pcFormat,...)
TBOOL operator<=(const TString16 &str) const
TString16 * operator+=(TString16 &str)
void Truncate(TINT length)
TBOOL IsIndexValid(TINT index) const
TString16 & operator=(const TWCHAR *a_wszStr)
TString16 * operator+=(TWCHAR const *a_wszStr)
TBOOL operator<(const TWCHAR *a_wszStr) const
TBOOL operator!=(const TString16 &str) const
TBOOL IsAllUpperCase() const
TBOOL operator!=(const TWCHAR *a_wszStr) const
TINT FindReverse(TWCHAR a_findChar, TINT pos=-1) const