OROCHI
 
Loading...
Searching...
No Matches
GxStringW Struct Reference

ワイド文字列型クラス(UTF-16用) More...

#include <GxString.h>

Inheritance diagram for GxStringW:
Collaboration diagram for GxStringW:

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 GxStringWoperator= (GX_CWSTR string)
 代入
 
GX_FORCE_INLINE const GxStringWoperator= (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)
 

Detailed Description

ワイド文字列型クラス(UTF-16用)

Member Function Documentation

◆ atoi()

s64 GxStringW::atoi ( GX_CWSTR string)
static

文字列→整数

Parameters
string[in] 文字列
Returns
数値
Here is the call graph for this function:

◆ atoui()

u64 GxStringW::atoui ( GX_CWSTR string)
static

文字列→非負整数

Parameters
string[in] 文字列
Returns
数値
Here is the call graph for this function:

◆ compare()

s32 GxStringW::compare ( GX_CWSTR string0,
GX_CWSTR string1 )
static

比較

Parameters
string0[in] 文字列0
string1[in] 文字列1
Returns
比較結果

◆ find() [1/2]

s32 GxStringW::find ( GX_CWSTR string,
u32 start = 0 ) const

文字列検索

Parameters
string[in] 文字列
start[in] 開始位置
Returns
発見位置

◆ find() [2/2]

s32 GxStringW::find ( GX_WCHAR character,
u32 start = 0 ) const

文字検索

Parameters
character[in] 文字
start[in] 開始位置
Returns
発見位置

◆ findReverse()

s32 GxStringW::findReverse ( GX_WCHAR character,
s32 start = -1 ) const

文字検索(終端から検索)

Parameters
character[in] 文字
start[in] 開始位置
Returns
発見位置

◆ getLength()

u32 GxStringW::getLength ( GX_CWSTR string)
static

文字列の長さを取得

Parameters
string[in] 文字列
Returns
長さ

◆ getStringProperty()

void GxStringW::getStringProperty ( void * pValue)
protected

文字列取得(プロパティ用)

Parameters
pValue[out] 取得文字列

◆ getSubString()

void GxStringW::getSubString ( GxStringW & subString,
u32 start,
u32 length = MAX_LENGTH ) const

指定位置からの抜き出し

Parameters
subString[out] 部分文字列
start[in] 開始位置
length[in] 長さ
Here is the caller graph for this function:

◆ icompare()

s32 GxStringW::icompare ( GX_CWSTR string0,
GX_CWSTR string1 )
static

比較(大文字、小文字の区別なし)

Parameters
string0[in] 文字列0
string1[in] 文字列1
Returns
比較結果
Here is the call graph for this function:

◆ isHalfKanaUtf16()

b32 GxStringW::isHalfKanaUtf16 ( GX_CWCHAR character)
static

半角カナか判定(UTF16)

Parameters
character[in] 文字
Returns
半角カナならtrue

◆ itoa()

void GxStringW::itoa ( s64 value,
GX_WSTR string )
static

整数→文字列

Parameters
value[in] 数値
string[in] 文字列
Here is the call graph for this function:

◆ setStringProperty()

void GxStringW::setStringProperty ( const void * pValue)
protected

文字列設定(プロパティ用)

Parameters
pValue[in] 文字列

◆ sjisToUtf16()

void GxStringW::sjisToUtf16 ( GX_CSTR sjis,
GX_WSTR utf16 )
static

UTF-SJISをUTF-16へ変換

Parameters
sjis[in] SJIS
utf16[in] UTF-16
Here is the call graph for this function:
Here is the caller graph for this function:

◆ uitoa()

void GxStringW::uitoa ( u64 value,
GX_WSTR string )
static

非負整数→文字列

Parameters
value[in] 数値
string[in] 文字列
Here is the call graph for this function:

◆ utf16ToSjis()

void GxStringW::utf16ToSjis ( GX_CWSTR utf16,
GX_STR sjis )
static

UTF-16をSJISへ変換

Parameters
utf16[in] UTF-16
sjis[in] SJIS
Here is the caller graph for this function:

◆ utf16ToUtf8()

void GxStringW::utf16ToUtf8 ( GX_CWSTR utf16,
GX_STR utf8 )
static

UTF-16をUTF-8へ変換

Parameters
utf16[in] UTF-16
utf8[in] UTF-8
Here is the caller graph for this function:

◆ utf8ToUtf16()

void GxStringW::utf8ToUtf16 ( GX_CSTR utf8,
GX_WSTR utf16 )
static

UTF-8をUTF-16へ変換

Parameters
utf8[in] UTF-8
utf16[in] UTF-16
Here is the call graph for this function:

The documentation for this struct was generated from the following files: