111 return std::move( str.
Concat( cstr ) );
129 operator const TCHAR*()
const {
return m_pBuffer; }
163 m_pBuffer = str.m_pBuffer;
164 m_iExcessLen = str.m_iExcessLen;
165 m_iStrLen = str.m_iStrLen;
166 m_pAllocator = str.m_pAllocator;
179 typedef T2Allocator* ( *func_DefaultAllocatorCB )();
183 m_pBuffer = NullString;
188 T2Allocator* GetAllocator()
190 return sm_pDefaultAllocatorCB();
193 static T2Allocator* GetDefaultAllocatorCB()
199 static inline func_DefaultAllocatorCB sm_pDefaultAllocatorCB = &GetDefaultAllocatorCB;
205 T2Allocator* m_pAllocator;
#define TOSHI_NAMESPACE_START
#define TOSHI_NAMESPACE_END
TFORCEINLINE T2Allocator * GetGlobalAllocator()
TString8 Mid(TINT a_iFirst, TINT a_iCount) const
TCHAR & operator[](TINT a_iIndex)
TBOOL EndsWithNoCase(const TCHAR *a_szString, TINT a_iLength=-1) const
TBOOL operator<(const TCHAR *cstr) const
TString8 & Format(const TCHAR *a_pcFormat,...)
TString8 * operator+=(TString8 &str)
TBOOL EndsWith(const TCHAR *a_szString, TINT a_iLength=-1) const
TString8 & Concat(const TString8 &str, TINT size=-1)
TString8 & operator=(const TWCHAR *wcstr)
TINT Compare(const TCHAR *a_szString, TINT a_iLength=-1) const
TBOOL operator==(const TString8 &str) const
TCHAR * GetStringUnsafe(TINT a_iIndex=0)
const TCHAR & operator[](TINT a_iIndex) const
TINT Find(TCHAR character, TINT pos=0) const
TBOOL operator!=(const TString8 &str) const
TString8 & operator=(const TCHAR *cstr)
TBOOL operator!=(const TCHAR *cstr) const
TBOOL IsAllLowerCase() const
TBOOL AllocBuffer(TINT a_iLength, TBOOL a_bFreeMemory=true)
TBOOL operator==(const TCHAR *cstr) const
TBOOL IsAllUpperCase() const
TString8 * operator+=(const TCHAR *cstr)
TINT CompareNoCase(const TCHAR *a_szString, TINT a_iLength=-1) const
TString8 & operator=(const TString8 &str)
TINT FindReverse(TCHAR a_findChar, TINT pos=-1) const
static TString8 VarArgs(const TCHAR *a_pcFormat,...)
TBOOL IsIndexValid(TINT a_iIndex) const
TBOOL StartsWith(const TCHAR *a_szString, TINT a_iLength=-1) const
TBOOL StartsWithNoCase(const TCHAR *a_szString, TINT a_iLength=-1) const
TBOOL operator<=(const TCHAR *cstr) const
TString8 & VFormat(const TCHAR *a_pcFormat, va_list a_vargs)
void ForceSetData(TCHAR *a_pchString, TINT a_iLength)
void Truncate(TINT length)
void Copy(const TString8 &src, TINT size=-1)
TUINT16 ExcessLength() const
TString8 & Reserve(TINT size)
const TCHAR * GetString(TINT a_iIndex=0) const
TString8 Right(TINT a_iFrom) const
TString8 & operator=(const TString16 &str)
TBOOL operator<(const TString8 &str) const
TString8 & operator=(TString8 &&str)
TString8 operator+(const TCHAR *cstr) const
TBOOL operator<=(const TString8 &str) const