TUtilities class Reference

メインページ モジュール クラス階層 アルファベット順一覧 構成 ファイル一覧 構成メンバ ファイルメンバ 関連ページ 例

# クラス TUtilities の解説
[System Category]

This is the TUtilities class. [詳細]

`#include <TUtilities.hh>`

すべてのメンバ一覧

## Static Public メソッド
Tstring | ConvertIntegerToString (Tint i, Tint digits)
Tstring | ConvertLongToString (Tlong l, Tint digits)
Tstring | ConvertUnsignedLongToString (TUlong ul, Tint digits)
Tstring | ConvertDoubleToString (Tdouble d, Tint precision)
Tstring | ConvertFloatToString (Tfloat f, Tint precision)
Tint | ConvertStringToInteger (const Tstring &nptr, Tchar **endptr, Tint base)
Tdouble | ConvertStringToDouble (const Tstring &nptr, Tchar **endptr)
Tvoid | ShowBitPattern (Tint bit)
Tbool | FileExist (const Tstring &filename)
TstringList | Split (const Tstring &source, const Tstring &pattern, Tint pos)
TintList | Indexes (const Tstring &source, const Tstring &pattern, Tint pos)
TintList | Sizes (const Tstring &source, const Tstring &pattern, Tint pos)
Tstring | Substitute (const Tstring &source, const Tstring &pattern, const Tstring &substr, Tint pos)
Tstring | SubstituteAll (const Tstring &source, const Tstring &pattern, const Tstring &substr, Tint pos)
Tbool | IsMatch (const Tstring &source, const Tstring &pattern, Tbool igcase, Tint pos)
Tstring | GetBaseName (const Tstring &path)
Tstring | GetDirectoryName (const Tstring &path)
## フレンド
Tstring | itostr (Tint i, Tint digits=6)
Tstring | ltostr (Tlong l, Tint digits=6)
Tstring | ultostr (TUlong ul, Tint digits=6)
Tstring | dtostr (Tdouble d, Tint precision=6)
Tstring | ftostr (Tfloat f, Tint precision=6)
Tint | strtoi (const Tstring &nptr, Tchar **endptr=0, Tint base=0)
Tdouble | strtod (const Tstring &nptr, Tchar **endptr=0)
Tvoid | showbit (Tint bit)
Tbool | isexist (const Tstring &filename)
TstringList | split (const Tstring &source, const Tstring &pattern="[\t+|+]", Tint pos=0)
TintList | index (const Tstring &source, const Tstring &pattern, Tint pos=0)
TintList | size (const Tstring &source, const Tstring &pattern, Tint pos=0)
Tstring | subst (const Tstring &source, const Tstring &pattern, Tstring &substr, Tbool all=Ttrue, Tint pos=0)
Tbool | grep (const Tstring &source, const Tstring &pattern, Tbool igcase=Tfalse, Tint pos=0)
Tstring | basename (const Tstring &path)
Tstring | dirname (const Tstring &path)

## 解説

This is the TUtilities class.

作者:
  Go IWAI <goiwai@users.sourceforge.jp>

The TUtilities class detail description. Write it down ASAP!

TODO:
  None?

バグ:
  None?

## メソッドの解説

Tstring TUtilities::ConvertDoubleToString | ( | Tdouble | d,
|  | Tint | precision
| ) | `[static]`

Tstring TUtilities::ConvertFloatToString | ( | Tfloat | f,
|  | Tint | precision
| ) | `[static]`

Tstring TUtilities::ConvertIntegerToString | ( | Tint | i,
|  | Tint | digits
| ) | `[static]`

Tstring TUtilities::ConvertLongToString | ( | Tlong | l,
|  | Tint | digits
| ) | `[static]`

Tdouble TUtilities::ConvertStringToDouble | ( | const Tstring & | nptr,
|  | Tchar ** | endptr
| ) | `[static]`

Tint TUtilities::ConvertStringToInteger | ( | const Tstring & | nptr,
|  | Tchar ** | endptr,
|  | Tint | base
| ) | `[static]`

Tstring TUtilities::ConvertUnsignedLongToString | ( | TUlong | ul,
|  | Tint | digits
| ) | `[static]`

Tbool TUtilities::FileExist | ( | const Tstring & | filename | ) | `[static]`

Tstring TUtilities::GetBaseName | ( | const Tstring & | path | ) | `[static]`

Tstring TUtilities::GetDirectoryName | ( | const Tstring & | path | ) | `[static]`

TintList TUtilities::Indexes | ( | const Tstring & | source,
|  | const Tstring & | pattern,
|  | Tint | pos
| ) | `[static]`

Tbool TUtilities::IsMatch | ( | const Tstring & | source,
|  | const Tstring & | pattern,
|  | Tbool | igcase,
|  | Tint | pos
| ) | `[static]`

Tvoid TUtilities::ShowBitPattern | ( | Tint | bit | ) | `[static]`

TintList TUtilities::Sizes | ( | const Tstring & | source,
|  | const Tstring & | pattern,
|  | Tint | pos
| ) | `[static]`

TstringList TUtilities::Split | ( | const Tstring & | source,
|  | const Tstring & | pattern,
|  | Tint | pos
| ) | `[static]`

Tstring TUtilities::Substitute | ( | const Tstring & | source,
|  | const Tstring & | pattern,
|  | const Tstring & | substr,
|  | Tint | pos
| ) | `[static]`

Tstring TUtilities::SubstituteAll | ( | const Tstring & | source,
|  | const Tstring & | pattern,
|  | const Tstring & | substr,
|  | Tint | pos
| ) | `[static]`

## フレンドと関連する関数の解説

Tstring basename | ( | const Tstring & | path | ) | `[friend]`

Tstring dirname | ( | const Tstring & | path | ) | `[friend]`

Tstring dtostr | ( | Tdouble | d,
|  | Tint | precision = 6
| ) | `[friend]`

Tstring ftostr | ( | Tfloat | f,
|  | Tint | precision = 6
| ) | `[friend]`

Tbool grep | ( | const Tstring & | source,
|  | const Tstring & | pattern,
|  | Tbool | igcase = Tfalse,
|  | Tint | pos = 0
| ) | `[friend]`

TintList index | ( | const Tstring & | source,
|  | const Tstring & | pattern,
|  | Tint | pos = 0
| ) | `[friend]`

Tbool isexist | ( | const Tstring & | filename | ) | `[friend]`

Tstring itostr | ( | Tint | i,
|  | Tint | digits = 6
| ) | `[friend]`

Tstring ltostr | ( | Tlong | l,
|  | Tint | digits = 6
| ) | `[friend]`

Tvoid showbit | ( | Tint | bit | ) | `[friend]`

TintList size | ( | const Tstring & | source,
|  | const Tstring & | pattern,
|  | Tint | pos = 0
| ) | `[friend]`

TstringList split | ( | const Tstring & | source,
|  | const Tstring & | pattern = "[\t+| +]",
|  | Tint | pos = 0
| ) | `[friend]`

Tdouble strtod | ( | const Tstring & | nptr,
|  | Tchar ** | endptr = 0
| ) | `[friend]`

Tint strtoi | ( | const Tstring & | nptr,
|  | Tchar ** | endptr = 0,
|  | Tint | base = 0
| ) | `[friend]`

Tstring subst | ( | const Tstring & | source,
|  | const Tstring & | pattern,
|  | Tstring & | substr,
|  | Tbool | all = Ttrue,
|  | Tint | pos = 0
| ) | `[friend]`

Tstring ultostr | ( | TUlong | ul,
|  | Tint | digits = 6
| ) | `[friend]`

このクラスの解説は次のファイルから生成されました:

- TUtilities.hh