ランタイム
Mix::StringW Class Reference

文字列クラス( ユニコード ) More...

#include <String.h>

Public Member Functions

 StringW (void)
 コンストラクタ More...
 
 StringW (const char *pStr)
 コピーコンストラクタ More...
 
 StringW (const wchar_t *pStr)
 コピーコンストラクタ More...
 
 StringW (const wchar_t *pStr, UIntT sizeInWords)
 コピーコンストラクタ More...
 
 StringW (const StringW &str)
 コピーコンストラクタ More...
 
 ~StringW (void)
 デストラクタ More...
 
wchar_t & operator[] (UIntT index)
 要素を取得します More...
 
Boolean operator== (const StringW &str) const
 比較( == )をします More...
 
Boolean operator== (const wchar_t *pStr) const
 比較( == )をします More...
 
Boolean operator== (wchar_t code) const
 比較( == )をします More...
 
Boolean operator== (UIntT nullValue) const
 比較( == )をします More...
 
Boolean operator!= (const StringW &str) const
 比較( != )をします More...
 
Boolean operator!= (const wchar_t *pStr) const
 比較( != )をします More...
 
Boolean operator!= (UIntT nullValue) const
 比較( != )をします More...
 
StringWoperator= (const StringW &str)
 代入( = )をします More...
 
StringWoperator= (const wchar_t *pStr)
 代入( = )をします More...
 
StringWoperator= (const char *pStr)
 代入( = )をします More...
 
StringWoperator= (const wchar_t code)
 代入( = )をします More...
 
StringWoperator= (UIntT nullValue)
 クリアします More...
 
StringWoperator+= (const wchar_t *pStr)
 追加( += )をします More...
 
StringWoperator+= (const StringW &str)
 追加( += )をします More...
 
StringWoperator+= (const wchar_t code)
 追加( += )をします More...
 
StringW operator+ (const StringW &str)
 結合( + )します More...
 
Float64 ToDouble (Boolean *pbRet=NULL) const
 Float64型へ変換します More...
 
Float32 ToFloat (Boolean *pbRet=NULL) const
 Float32型へ変換します More...
 
Int32 ToInt (Boolean *pbRet=NULL) const
 Int32型へ変換します More...
 
UInt32 ToUInt (Boolean *pbRet=NULL) const
 unsigned Int32型へ変換します More...
 
StringW ToUpper (void)
 自身のコピーを大文字に変換して返します More...
 
StringW ToLower (void)
 自身のコピーを小文字に変換して返します More...
 
void Upper (void)
 自身を大文字に変換します More...
 
void Lower (void)
 自身を小文字に変換します More...
 
wchar_t * Sprintf (const wchar_t *format,...)
 指定フォーマットで文字列を作成します More...
 
StringW Left (UIntT sizeInWords)
 左端から指定した文字数だけ取得します More...
 
StringW Right (UIntT sizeInWords)
 右端から指定した文字数だけ取得します More...
 
StringW Mid (UIntT startPos, UIntT sizeInWords)
 指定した位置と文字数だけ取得します More...
 
UIntT IndexOf (wchar_t value)
 指定した文字が文字列内で最初に見つかった位置のインデックスを取得します More...
 
UIntT LastIndexOf (wchar_t value)
 指定した文字が文字列内で最後に見つかった位置のインデックスを取得します More...
 
template<Mix::Memory::SECTION_TYPE ST>
void Split (const wchar_t *pSeparator, std::vector< Mix::StringW, std::vector< Mix::StringW, Mix::Memory::STLAllocator< ST, Mix::StringW >>> &list)
 指定したセパレータで文字列を分割します More...
 
wchar_t * GetPtr (void) const
 文字列のポインタを取得します More...
 
const wchar_t * GetConstPtr (void) const
 文字列のポインタを取得します( CONST ) More...
 
UIntT GetNum (void) const
 文字数を取得します More...
 
UIntT GetSize (void) const
 文字列サイズ(バイト単位)を取得します More...
 
UIntT GetAllocateSize (void) const
 確保したメモリのサイズ(バイト単位)を取得します More...
 
UIntT GetCapacity (void) const
 キャパシティ(バイト単位)を取得します More...
 

Friends

const StringW operator+ (const wchar_t *ls, const StringW &rs)
 結合( + )します More...
 
bool operator< (const StringW &l, const StringW &r)
 比較( l < r )をします More...
 
bool operator> (const StringW &l, const StringW &r)
 比較( l > r )をします More...
 
bool operator<= (const StringW &l, const StringW &r)
 比較( l <= r )をします More...
 
bool operator>= (const StringW &l, const StringW &r)
 比較( l >= r )をします More...
 

Detailed Description

文字列クラス( ユニコード )

Constructor & Destructor Documentation

Mix::StringW::StringW ( void  )

コンストラクタ

Mix::StringW::StringW ( const char *  pStr)

コピーコンストラクタ

Parameters
[in]pStrマルチバイト文字列へのポインタ
Mix::StringW::StringW ( const wchar_t *  pStr)

コピーコンストラクタ

Parameters
[in]pStrユニコード文字列へのポインタ
Mix::StringW::StringW ( const wchar_t *  pStr,
UIntT  sizeInWords 
)

コピーコンストラクタ

Parameters
[in]pStrユニコード文字列へのポインタ
[in]sizeInWords文字数
Mix::StringW::StringW ( const StringW str)

コピーコンストラクタ

Parameters
[in]str文字列
Mix::StringW::~StringW ( void  )

デストラクタ

Member Function Documentation

wchar_t& Mix::StringW::operator[] ( UIntT  index)

要素を取得します

Parameters
[in]index取得する要素のインデックス
Returns
要素
Boolean Mix::StringW::operator== ( const StringW str) const

比較( == )をします

Parameters
[in]str文字列
Returns
等しかった場合は True を返します
Boolean Mix::StringW::operator== ( const wchar_t *  pStr) const

比較( == )をします

Parameters
[in]pStr文字列へのポインタ
Returns
等しかった場合は True を返します
Boolean Mix::StringW::operator== ( wchar_t  code) const

比較( == )をします

Parameters
[in]code文字コード
Returns
等しかった場合は True を返します
Boolean Mix::StringW::operator== ( UIntT  nullValue) const

比較( == )をします

Parameters
[in]nullValueNULLのみ可能
Returns
等しかった場合は True を返します
Boolean Mix::StringW::operator!= ( const StringW str) const

比較( != )をします

Parameters
[in]str文字列
Returns
等しくなかった場合は True を返します
Boolean Mix::StringW::operator!= ( const wchar_t *  pStr) const

比較( != )をします

Parameters
[in]pStr文字列へのポインタ
Returns
等しくなかった場合は True を返します
Boolean Mix::StringW::operator!= ( UIntT  nullValue) const

比較( != )をします

Parameters
[in]nullValueNULLのみ指定可能
Returns
等しくなかった場合は True を返します
StringW& Mix::StringW::operator= ( const StringW str)

代入( = )をします

Parameters
[in]str文字列
Returns
代入後の文字列
StringW& Mix::StringW::operator= ( const wchar_t *  pStr)

代入( = )をします

Parameters
[in]pStr文字列へのポインタ
Returns
代入後の文字列
StringW& Mix::StringW::operator= ( const char *  pStr)

代入( = )をします

Parameters
[in]pStrマルチバイト文字列へのポインタ
Returns
代入後の文字列
StringW& Mix::StringW::operator= ( const wchar_t  code)

代入( = )をします

Parameters
[in]codeコード
Returns
代入後の文字列
StringW& Mix::StringW::operator= ( UIntT  nullValue)

クリアします

Parameters
[in]nullValueNULL のみ指定可能
Returns
文字列
StringW& Mix::StringW::operator+= ( const wchar_t *  pStr)

追加( += )をします

Parameters
[in]pStr文字列へのポインタ
Returns
追加後の文字列
StringW& Mix::StringW::operator+= ( const StringW str)

追加( += )をします

Parameters
[in]str文字列
Returns
追加後の文字列
StringW& Mix::StringW::operator+= ( const wchar_t  code)

追加( += )をします

Parameters
[in]code文字コード
Returns
追加後の文字列
StringW Mix::StringW::operator+ ( const StringW str)

結合( + )します

Parameters
[in]str文字列
Returns
結合後の文字列
Float64 Mix::StringW::ToDouble ( Boolean pbRet = NULL) const

Float64型へ変換します

Parameters
[in]pbRet返り値
True 成功
False 失敗
Returns
Float32 Mix::StringW::ToFloat ( Boolean pbRet = NULL) const

Float32型へ変換します

Parameters
[in]pbRet返り値
True 成功
False 失敗
Returns
Int32 Mix::StringW::ToInt ( Boolean pbRet = NULL) const

Int32型へ変換します

Parameters
[in]pbRet返り値
True 成功
False 失敗
Returns
UInt32 Mix::StringW::ToUInt ( Boolean pbRet = NULL) const

unsigned Int32型へ変換します

Parameters
[in]pbRet返り値
True 成功
False 失敗
Returns
StringW Mix::StringW::ToUpper ( void  )

自身のコピーを大文字に変換して返します

Returns
大文字に変換した文字列
StringW Mix::StringW::ToLower ( void  )

自身のコピーを小文字に変換して返します

Returns
小文字に変換した文字列
void Mix::StringW::Upper ( void  )

自身を大文字に変換します

void Mix::StringW::Lower ( void  )

自身を小文字に変換します

wchar_t* Mix::StringW::Sprintf ( const wchar_t *  format,
  ... 
)

指定フォーマットで文字列を作成します

Parameters
[in]formatフォーマット
[in]...
Returns
文字列
StringW Mix::StringW::Left ( UIntT  sizeInWords)

左端から指定した文字数だけ取得します

Parameters
[in]sizeInWords文字数
Returns
文字列
StringW Mix::StringW::Right ( UIntT  sizeInWords)

右端から指定した文字数だけ取得します

Parameters
[in]sizeInWords文字数
Returns
文字列
StringW Mix::StringW::Mid ( UIntT  startPos,
UIntT  sizeInWords 
)

指定した位置と文字数だけ取得します

Parameters
[in]startPos取り出しを開始する位置
[in]sizeInWords取り出す文字数
Returns
文字列
UIntT Mix::StringW::IndexOf ( wchar_t  value)

指定した文字が文字列内で最初に見つかった位置のインデックスを取得します

Parameters
[in]value見つけたい文字
Returns
見つかった場合は文字のインデックス、見つからなかった場合は SIZE_MAX を返します
UIntT Mix::StringW::LastIndexOf ( wchar_t  value)

指定した文字が文字列内で最後に見つかった位置のインデックスを取得します

Parameters
[in]value見つけたい文字
Returns
見つかった場合は文字のインデックス、見つからなかった場合は SIZE_MAX を返します
template<Mix::Memory::SECTION_TYPE ST>
void Mix::StringW::Split ( const wchar_t *  pSeparator,
std::vector< Mix::StringW, std::vector< Mix::StringW, Mix::Memory::STLAllocator< ST, Mix::StringW >>> &  list 
)
inline

指定したセパレータで文字列を分割します

Parameters
[in]pSeparator文字列を分割するための区切り文字として使用する文字配列
[out]list分割した文字列を格納するベクタークラス
wchar_t* Mix::StringW::GetPtr ( void  ) const

文字列のポインタを取得します

Returns
文字列のポインタ
const wchar_t* Mix::StringW::GetConstPtr ( void  ) const

文字列のポインタを取得します( CONST )

Returns
文字列のポインタ
UIntT Mix::StringW::GetNum ( void  ) const

文字数を取得します

Returns
文字数を返します
UIntT Mix::StringW::GetSize ( void  ) const

文字列サイズ(バイト単位)を取得します

Returns
サイズを返します
UIntT Mix::StringW::GetAllocateSize ( void  ) const

確保したメモリのサイズ(バイト単位)を取得します

Returns
サイズを返します
UIntT Mix::StringW::GetCapacity ( void  ) const

キャパシティ(バイト単位)を取得します

Returns
キャパシティを返します

Friends And Related Function Documentation

const StringW operator+ ( const wchar_t *  ls,
const StringW rs 
)
friend

結合( + )します

Parameters
[in]ls結合先文字列
[in]rs結合元文字列
Returns
結合後の文字列
bool operator< ( const StringW l,
const StringW r 
)
friend

比較( l < r )をします

Parameters
[in]l比較する文字列1
[in]r比較する文字列2
Returns
l < r だった場合は true
bool operator> ( const StringW l,
const StringW r 
)
friend

比較( l > r )をします

Parameters
[in]l比較する文字列1
[in]r比較する文字列2
Returns
l > r だった場合は true
bool operator<= ( const StringW l,
const StringW r 
)
friend

比較( l <= r )をします

Parameters
[in]l比較する文字列1
[in]r比較する文字列2
Returns
l <= r だった場合は true
bool operator>= ( const StringW l,
const StringW r 
)
friend

比較( l >= r )をします

Parameters
[in]l比較する文字列1
[in]r比較する文字列2
Returns
l >= r だった場合は true

The documentation for this class was generated from the following file: