15 enum { VA_TEMP_NUM = 2048 };
27 void Copy(
const wchar_t* pStr );
28 void Copy(
const wchar_t* pStr,
UIntT num );
29 void Convert(
const char* pStr );
30 void Add(
const wchar_t* pStr );
54 wchar_t& operator [] (
UIntT index );
62 Boolean operator == (
const wchar_t* pStr )
const;
66 Boolean operator == (
wchar_t code )
const;
78 Boolean operator != (
const wchar_t* pStr )
const;
90 StringW& operator = (
const wchar_t* pStr );
94 StringW& operator = (
const char* pStr );
98 StringW& operator = (
const wchar_t code );
106 StringW& operator += (
const wchar_t* pStr );
114 StringW& operator += (
const wchar_t code );
126 tmp.Add( rs.m_pStr );
137 return ( ::wcscmp( l.m_pStr, r.m_pStr ) < 0 );
145 return ( ::wcscmp( l.m_pStr, r.m_pStr ) > 0 );
153 return ( ::wcscmp( l.m_pStr, r.m_pStr ) <= 0 );
161 return ( ::wcscmp( l.m_pStr, r.m_pStr ) >= 0 );
205 wchar_t* Sprintf(
const wchar_t* format, ... );
224 UIntT IndexOf(
wchar_t value );
228 UIntT LastIndexOf(
wchar_t value );
233 template<Mix::Memory::SECTION_TYPE ST>
240 wchar_t* pCtx = NULL;
241 wchar_t* pPart = wcstok_s( tmpStr.m_pStr, pSeparator, &pCtx );
246 pPart = wcstok_s( NULL, pSeparator, &pCtx );
252 wchar_t* GetPtr(
void )
const;
255 const wchar_t* GetConstPtr(
void )
const;
258 UIntT GetNum(
void )
const;
261 UIntT GetSize(
void )
const;
264 UIntT GetAllocateSize(
void )
const;
267 UIntT GetCapacity(
void )
const;
276 enum { VA_TEMP_NUM = 2048 };
283 UIntT m_AllocateSize;
288 void Copy(
const char* pStr );
289 void Copy(
const char* pStr,
UIntT num );
290 void Convert(
const wchar_t* pStr );
291 void Add(
const char* pStr );
292 UIntT CalcStrNum(
const char* pStr );
299 StringA(
const wchar_t* pStr );
316 char& operator [] (
UIntT index );
324 Boolean operator == (
const char* pStr )
const;
328 Boolean operator == (
char code )
const;
340 Boolean operator != (
const char* pStr )
const;
352 StringA& operator = (
const char* pStr );
356 StringA& operator = (
const wchar_t* pStr );
360 StringA& operator = (
char code );
364 StringA& operator += (
const char* pStr );
372 StringA& operator += (
char code );
384 tmp.Add( rs.m_pStr );
395 return ( ::strcmp( l.m_pStr, r.m_pStr ) < 0 );
403 return ( ::strcmp( l.m_pStr, r.m_pStr ) > 0 );
411 return ( ::strcmp( l.m_pStr, r.m_pStr ) <= 0 );
419 return ( ::strcmp( l.m_pStr, r.m_pStr ) >= 0 );
463 char* Sprintf(
const char* format, ... );
481 UIntT IndexOf(
char value );
485 UIntT LastIndexOf(
char value );
490 template<Mix::Memory::SECTION_TYPE ST>
498 char* pPart = strtok_s( tmpStr.m_pStr, pSeparator, &pCtx );
500 while( pPart != NULL )
503 pPart = strtok_s( NULL, pSeparator, &pCtx );
509 char* GetPtr(
void )
const;
512 const char* GetConstPtr(
void )
const;
515 UIntT GetNum(
void )
const;
518 UIntT GetSize(
void )
const;
521 UIntT GetAllocateSize(
void )
const;
524 UIntT GetCapacity(
void )
const;
533 typedef std::vector<Mix::StringA, Mix::Memory::STLAllocator<Mix::Memory::SECTION_GENERAL, Mix::StringA>>
StringListA;
536 typedef std::vector<Mix::StringW, Mix::Memory::STLAllocator<Mix::Memory::SECTION_GENERAL, Mix::StringW>>
StringListW;
_MIX_DLL_API void * Allocate(UInt16 section, UIntT size, const wchar_t *pSrcFile, Int32 srcLine)
メモリを確保します
size_t UIntT
符号無し整数
Definition: Common.h:98
文字列クラス( マルチバイト )
Definition: String.h:273
int Int32
符号有り32ビット整数
Definition: Common.h:65
unsigned int UInt32
符号無し32ビット整数
Definition: Common.h:68
STL アロケータテンプレートクラス
Definition: Common.h:592
StringListW StringList
文字列リスト
Definition: String.h:540
文字列クラス( ユニコード )
Definition: String.h:12
std::vector< Mix::StringA, Mix::Memory::STLAllocator< Mix::Memory::SECTION_GENERAL, Mix::StringA > > StringListA
マルチバイト文字列リスト
Definition: String.h:533
ミックス
Definition: AtomicValue.h:6
double Float64
64ビット浮動小数点
Definition: Common.h:86
float Float32
32ビット浮動小数点
Definition: Common.h:83
void Split(const char *pSeparator, std::vector< Mix::StringA, std::vector< Mix::StringA, Mix::Memory::STLAllocator< ST, Mix::StringA >>> &list)
指定したセパレータで文字列を分割します
Definition: String.h:491
void Split(const wchar_t *pSeparator, std::vector< Mix::StringW, std::vector< Mix::StringW, Mix::Memory::STLAllocator< ST, Mix::StringW >>> &list)
指定したセパレータで文字列を分割します
Definition: String.h:234
BOOL Boolean
32ビットブーリアン
Definition: Common.h:102
std::vector< Mix::StringW, Mix::Memory::STLAllocator< Mix::Memory::SECTION_GENERAL, Mix::StringW > > StringListW
ワイド文字列リスト
Definition: String.h:536
#define MIX_ASSERT(cnd)
標準のアサート
Definition: Common.h:120
_MIX_DLL_API void Copy(void *dst, const void *src, UIntT size)
メモリをコピーします
#define _MIX_DLL_API
DLLインポート定義
Definition: Common.h:38
StringW String
文字列
Definition: String.h:529