ワイド文字列型クラス(UTF-16用) More...
#include <GxString.h>


Public Member Functions | |
初期化 | |
| GxStringW (void) | |
| デフォルトコンストラクタ | |
| GxStringW (const GxStringW &string) | |
| コンストラクタ | |
| GxStringW (GX_CWSTR string) | |
| コンストラクタ | |
| ~GxStringW (void) | |
| デストラクタ | |
| GX_FORCE_INLINE void | clear (void) |
| クリア | |
演算子 | |
| GX_FORCE_INLINE const GxStringW & | operator= (GX_CWSTR string) |
| 代入 | |
| GX_FORCE_INLINE const GxStringW & | operator= (const GxStringW &string) |
| 代入 | |
| GX_FORCE_INLINE void | operator+= (GX_CWCHAR character) |
| 結合代入 | |
| GX_FORCE_INLINE void | operator+= (GX_CWSTR string) |
| 結合代入 | |
| GX_FORCE_INLINE GxStringW | operator+ (GX_CWSTR string) |
| 結合 | |
| GX_FORCE_INLINE b32 | operator== (GX_CWSTR string) const |
| 一致 | |
| GX_FORCE_INLINE b32 | operator== (const GxStringW &string) const |
| 一致 | |
| GX_FORCE_INLINE b32 | operator!= (GX_CWSTR string) const |
| 不一致 | |
| GX_FORCE_INLINE b32 | operator!= (const GxStringW &string) const |
| 不一致 | |
Static Public Attributes | |
定義 | |
| static constexpr u32 | MARGIN_LENGTH = GxMath::VALUE_16 |
| 元々持っている文字列の長さ | |
| static constexpr u32 | ALLOC_BLOCK_SIZE = GxMath::VALUE_16 |
| 確保する文字列のブロックサイズ | |
| static constexpr u32 | TEMPORARY_LENGTH = GxMath::VALUE_512 |
| 一時領域のサイズ | |
| static constexpr u32 | MAX_LENGTH = 0x0FFFFFFF |
| 最大長定義 | |
| static constexpr u32 | TEMPORARY_STACK_SIZE = GxMath::VALUE_2K |
| 一時メモリにスタックを使うか閾値 | |
アクセサ | |
| constexpr u32 | getLength (void) const |
| 文字列の長さを取得 | |
| GX_FORCE_INLINE GX_WSTR | getString (void) |
| 文字列取得 | |
| constexpr GX_CWSTR | getString (void) const |
| 文字列取得 | |
| GX_FORCE_INLINE void | getLeft (GxStringW &left, u32 length) const |
| 左文字列取得 | |
| GX_FORCE_INLINE void | getRight (GxStringW &right, u32 length) const |
| 右文字列取得 | |
| void | getSubString (GxStringW &subString, u32 start, u32 length=MAX_LENGTH) const |
| 指定位置からの抜き出し | |
| static u32 | getLength (GX_CWSTR string) |
| 文字列の長さを取得 | |
| static u32 constexpr | getBytesUtf16 (GX_CWSTR) |
| 文字のバイト数取得(UTF16) | |
| static b32 | isHalfKanaUtf16 (GX_CWCHAR character) |
| 半角カナか判定(UTF16) | |
| void | getStringProperty (void *pValue) |
| 文字列取得(プロパティ用) | |
| void | setStringProperty (const void *pValue) |
| 文字列設定(プロパティ用) | |
操作 | |
| s32 | find (GX_CWSTR string, u32 start=0) const |
| 文字列検索 | |
| s32 | find (GX_WCHAR character, u32 start=0) const |
| 文字検索 | |
| s32 | findReverse (GX_WCHAR character, s32 start=-1) const |
| 文字検索(終端から検索) | |
| GX_FORCE_INLINE s32 | compare (GX_CWSTR string) const |
| 比較 | |
| GX_FORCE_INLINE s32 | compare (const GxStringW &string) const |
| 比較 | |
| GX_FORCE_INLINE s32 | icompare (GX_CWSTR string) const |
| 比較(大文字、小文字の区別なし) | |
| GX_FORCE_INLINE s32 | icompare (const GxStringW &string) const |
| 比較(大文字、小文字の区別なし) | |
| static s32 | compare (GX_CWSTR string0, GX_CWSTR string1) |
| 比較 | |
| static s32 | icompare (GX_CWSTR string0, GX_CWSTR string1) |
| 比較(大文字、小文字の区別なし) | |
| static void | itoa (s64 value, GX_WSTR string) |
| 整数→文字列 | |
| static void | uitoa (u64 value, GX_WSTR string) |
| 非負整数→文字列 | |
| static s64 | atoi (GX_CWSTR string) |
| 文字列→整数 | |
| static u64 | atoui (GX_CWSTR string) |
| 文字列→非負整数 | |
| static GX_FORCE_INLINE GX_WCHAR | utol (GX_WCHAR character) |
| 大文字→小文字 | |
| static GX_FORCE_INLINE GX_WCHAR | ltou (GX_WCHAR character) |
| 小文字→大文字 | |
| static void | sjisToUtf16 (GX_CSTR sjis, GX_WSTR utf16) |
| UTF-SJISをUTF-16へ変換 | |
| static void | utf16ToSjis (GX_CWSTR utf16, GX_STR sjis) |
| UTF-16をSJISへ変換 | |
| static void | utf8ToUtf16 (GX_CSTR utf8, GX_WSTR utf16) |
| UTF-8をUTF-16へ変換 | |
| static void | utf16ToUtf8 (GX_CWSTR utf16, GX_STR utf8) |
| UTF-16をUTF-8へ変換 | |
| static GX_FORCE_INLINE void | setCallbackSjisToUtf16 (GxCallback::GxHandlerBase handler) |
| SJIS→UTF-16変換拡張コールバックを設定 | |
| static GX_FORCE_INLINE void | setCallbackUtf16ToSjis (GxCallback::GxHandlerBase handler) |
| UTF-16→SJIS変換拡張コールバックを設定 | |
| static GX_FORCE_INLINE void | setCallbackUtf8ToUtf16 (GxCallback::GxHandlerBase handler) |
| UTF-8→UTF-16変換拡張コールバックを設定 | |
| static GX_FORCE_INLINE void | setCallbackUtf16ToUtf8 (GxCallback::GxHandlerBase handler) |
| UTF-16→UTF-8変換拡張コールバックを設定 | |
Additional Inherited Members | |
Static Public Member Functions inherited from GxStructBase | |
| static GxRtti & | __getStaticRtti (void) |
ワイド文字列型クラス(UTF-16用)
|
static |
文字列→整数
| string | [in] 文字列 |

|
static |
文字列→非負整数
| string | [in] 文字列 |

|
static |
比較
| string0 | [in] 文字列0 |
| string1 | [in] 文字列1 |
| s32 GxStringW::find | ( | GX_CWSTR | string, |
| u32 | start = 0 ) const |
文字列検索
| string | [in] 文字列 |
| start | [in] 開始位置 |
| s32 GxStringW::find | ( | GX_WCHAR | character, |
| u32 | start = 0 ) const |
文字検索
| character | [in] 文字 |
| start | [in] 開始位置 |
| s32 GxStringW::findReverse | ( | GX_WCHAR | character, |
| s32 | start = -1 ) const |
文字検索(終端から検索)
| character | [in] 文字 |
| start | [in] 開始位置 |
|
static |
文字列の長さを取得
| string | [in] 文字列 |
|
protected |
文字列取得(プロパティ用)
| pValue | [out] 取得文字列 |
| void GxStringW::getSubString | ( | GxStringW & | subString, |
| u32 | start, | ||
| u32 | length = MAX_LENGTH ) const |
指定位置からの抜き出し
| subString | [out] 部分文字列 |
| start | [in] 開始位置 |
| length | [in] 長さ |

|
static |
比較(大文字、小文字の区別なし)
| string0 | [in] 文字列0 |
| string1 | [in] 文字列1 |

|
static |
半角カナか判定(UTF16)
| character | [in] 文字 |
|
static |
整数→文字列
| value | [in] 数値 |
| string | [in] 文字列 |

|
protected |
文字列設定(プロパティ用)
| pValue | [in] 文字列 |
|
static |
UTF-SJISをUTF-16へ変換
| sjis | [in] SJIS |
| utf16 | [in] UTF-16 |


|
static |
非負整数→文字列
| value | [in] 数値 |
| string | [in] 文字列 |

|
static |
UTF-16をSJISへ変換
| utf16 | [in] UTF-16 |
| sjis | [in] SJIS |

|
static |
UTF-16をUTF-8へ変換
| utf16 | [in] UTF-16 |
| utf8 | [in] UTF-8 |

|
static |
UTF-8をUTF-16へ変換
| utf8 | [in] UTF-8 |
| utf16 | [in] UTF-16 |
