|
TNB Library
|
属性付き文字列管理 [詳解]
#include <TnbAttributedStr.h>
CAttributedStrT< TYP > の継承関係図公開メンバ関数 | |
| CAttributedStrT & | AddAt (TCHAR c, TYP t) |
| [操作] 一文字追加 [詳解] | |
| CAttributedStrT (const CAttributedStrT &as) | |
| コピーコンストラクタ [詳解] | |
| CAttributedStrT (LPCTSTR lpsz=NULL) | |
| コンストラクタ [詳解] | |
| int | Delete (INDEX index, int iLen=1) |
| [操作] 文字削除. [詳解] | |
| void | Empty (void) |
| [削除] 空化 [詳解] | |
| int | Find (LPCTSTR lpsz, INDEX iFromIndex=0) const |
| [確認] 検索 [詳解] | |
| int | Find (TCHAR c, INDEX iFromIndex=0) const |
| [確認] 検索 [詳解] | |
| int | FindAttribute (TYP t, INDEX iFromIndex=0) const |
| [確認] 属性検索 [詳解] | |
| TCHAR | GetAt (INDEX index) const |
| [取得] 一文字取得 [詳解] | |
| TYP | GetAttribute (INDEX index) const |
| [取得] 属性取得 [詳解] | |
| size_t | GetLength (void) const |
| [取得] 文字列長 [詳解] | |
| void | Insert (INDEX index, const CAttributedStrT &as) |
| [挿入] 文字列挿入 [詳解] | |
| void | Insert (INDEX index, LPCTSTR lpsz, TYP t=TYP()) |
| [挿入] 文字列挿入 [詳解] | |
| void | InsertAt (INDEX index, TCHAR c, TYP t) |
| [挿入] 文字挿入 [詳解] | |
| bool | IsEmpty (void) const |
| [確認] 空チェック [詳解] | |
| CAttributedStrT & | operator+= (const CAttributedStrT &as) |
| [追加] 加算代入オペレータ [詳解] | |
| CAttributedStrT & | operator+= (LPCTSTR lpsz) |
| [追加] 加算代入オペレータ [詳解] | |
| CAttributedStrT & | operator= (const CAttributedStrT &other) |
| [代入] コピーオペレータ [詳解] | |
| CAttributedStrT & | operator= (LPCTSTR lpsz) |
| [代入] 代入 [詳解] | |
| LPCTSTR | Refer (void) const |
| [取得] 参照 [詳解] | |
| void | SetAt (INDEX index, TCHAR c, TYP t) |
| [操作] 一文字置き換え [詳解] | |
| void | SetAttribute (INDEX index, TYP t) |
| [設定] 属性設定 [詳解] | |
属性付き文字列管理
ASCII/SJIS か UNICODE(プロジェクトの設定による)の一文字ごとに対になる、 属性(TYP)を管理します。
| TYP | 属性の型 |
TnbAttributedStr.h の 44 行目に定義があります。
|
explicit |
| CAttributedStrT | ( | const CAttributedStrT< TYP > & | as | ) |
| CAttributedStrT & AddAt | ( | TCHAR | c, |
| TYP | t | ||
| ) |
| int Delete | ( | INDEX | index, |
| int | iLen = 1 |
||
| ) |
[操作] 文字削除.
| index | 削除するインデックス |
| iLen | 削除する文字数(長さを超えている場合、指定インデックス以下がすべて削除されます) |
| 0 | 削除していない |
| 1以上 | 削除した文字数。ASCII/SJISの場合、iLen と同じ値になるとは限りません。 |
TnbAttributedStr.h の 214 行目に定義があります。
| void Empty | ( | void | ) |
[削除] 空化
TnbAttributedStr.h の 97 行目に定義があります。
| int Find | ( | LPCTSTR | lpsz, |
| INDEX | iFromIndex = 0 |
||
| ) | const |
[確認] 検索
| lpsz | 検索する文字列 |
| iFromIndex | 検索を開始するインデックス。省略すると頭からになります。 |
| -1 | 未発見 |
| 0以上 | 発見インデックス |
TnbAttributedStr.h の 280 行目に定義があります。
| int Find | ( | TCHAR | c, |
| INDEX | iFromIndex = 0 |
||
| ) | const |
[確認] 検索
| c | 検索する文字 |
| iFromIndex | 検索を開始するインデックス。省略すると頭からになります。 |
| -1 | 未発見 |
| 0以上 | 発見インデックス |
TnbAttributedStr.h の 292 行目に定義があります。
| int FindAttribute | ( | TYP | t, |
| INDEX | iFromIndex = 0 |
||
| ) | const |
[確認] 属性検索
| t | 検索する属性 |
| iFromIndex | 検索を開始するインデックス。省略すると頭からになります。 |
| -1 | 未発見 |
| 0以上 | 発見インデックス |
TnbAttributedStr.h の 304 行目に定義があります。
| TCHAR GetAt | ( | INDEX | index | ) | const |
| TYP GetAttribute | ( | INDEX | index | ) | const |
| size_t GetLength | ( | void | ) | const |
| void Insert | ( | INDEX | index, |
| const CAttributedStrT< TYP > & | as | ||
| ) |
| void Insert | ( | INDEX | index, |
| LPCTSTR | lpsz, | ||
| TYP | t = TYP() |
||
| ) |
| void InsertAt | ( | INDEX | index, |
| TCHAR | c, | ||
| TYP | t | ||
| ) |
| bool IsEmpty | ( | void | ) | const |
| CAttributedStrT & operator+= | ( | const CAttributedStrT< TYP > & | as | ) |
| CAttributedStrT & operator+= | ( | LPCTSTR | lpsz | ) |
[追加] 加算代入オペレータ
| lpsz | 文字列 |
TnbAttributedStr.h の 131 行目に定義があります。
| CAttributedStrT & operator= | ( | const CAttributedStrT< TYP > & | other | ) |
| CAttributedStrT & operator= | ( | LPCTSTR | lpsz | ) |
| LPCTSTR Refer | ( | void | ) | const |
| void SetAt | ( | INDEX | index, |
| TCHAR | c, | ||
| TYP | t | ||
| ) |
| void SetAttribute | ( | INDEX | index, |
| TYP | t | ||
| ) |