SNAP Library , User Reference
2013-01-07 14:03:36
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <wch.h>
Public Member Functions | |
TWChA (const int &MxWChs=0) | |
TWChA (const TWChA &WChA) | |
TWChA (const TWChV &_WChV) | |
TWChA (const char *CStr) | |
TWChA (const TChA &ChA) | |
TWChA (const TStr &Str) | |
~TWChA () | |
TWChA (TSIn &SIn) | |
void | Save (TSOut &SOut) |
TWChA & | operator= (const TWChA &WChA) |
TWChA & | operator= (const char *CStr) |
TWChA & | operator= (const TChA &ChA) |
TWChA & | operator= (const TStr &Str) |
bool | operator== (const TWChA &WChA) const |
bool | operator== (const char *CStr) const |
TWChA & | operator+= (const char &Ch) |
TWChA & | operator+= (const TWCh &WCh) |
TWChA & | operator+= (const char *CStr) |
TWChA & | operator+= (const TChA &ChA) |
TWChA & | operator+= (const TStr &Str) |
TWChA & | operator+= (const TWChA &WChA) |
TWCh | operator[] (const int &ChN) const |
int | GetMemUsed () |
void | Clr () |
int | Len () const |
bool | Empty () const |
TStr | GetStr () const |
void | GetSubWChA (const int &BChN, const int &EChN, TWChA &WChA) const |
void | InsStr (const int &BChN, const TStr &Str) |
void | DelSubStr (const int &BChN, const int &EChN) |
bool | DelStr (const TStr &Str) |
void | SplitOnCh (TStr &LStr, const char &SplitCh, TStr &RStr) const |
int | SearchCh (const TWCh &WCh, const int &BChN=0) const |
int | SearchStr (const TWChA &WChA, const int &BChN=0) const |
bool | IsChIn (const char &Ch) const |
bool | IsStrIn (const TWChA &WChA) const |
bool | IsPrefix (const TWChA &WChA) const |
bool | IsSufix (const TWChA &WChA) const |
int | ChangeStr (const TStr &SrcStr, const TStr &DstStr, const int &BChN=0) |
int | ChangeStrAll (const TStr &SrcStr, const TStr &DstStr) |
void | SaveTxt (const PSOut &SOut) const |
Static Public Member Functions | |
static void | LoadTxt (const PSIn &SIn, TWChA &WChA) |
Static Public Attributes | |
static TWChA | EmptyWChA |
Private Member Functions | |
void | AddCStr (const char *CStr) |
void | PutCStr (const char *CStr) |
Private Attributes | |
TWChV | WChV |
TWChA::TWChA | ( | const int & | MxWChs = 0 | ) | [inline] |
TWChA::TWChA | ( | const TWChA & | WChA | ) | [inline] |
TWChA::TWChA | ( | const TWChV & | _WChV | ) | [inline] |
TWChA::TWChA | ( | const char * | CStr | ) | [inline] |
TWChA::TWChA | ( | const TChA & | ChA | ) | [inline] |
TWChA::TWChA | ( | const TStr & | Str | ) | [inline] |
TWChA::~TWChA | ( | ) | [inline] |
TWChA::TWChA | ( | TSIn & | SIn | ) | [inline] |
void TWChA::AddCStr | ( | const char * | CStr | ) | [private] |
int TWChA::ChangeStr | ( | const TStr & | SrcStr, |
const TStr & | DstStr, | ||
const int & | BChN = 0 |
||
) |
int TWChA::ChangeStrAll | ( | const TStr & | SrcStr, |
const TStr & | DstStr | ||
) |
void TWChA::Clr | ( | ) | [inline] |
bool TWChA::DelStr | ( | const TStr & | Str | ) |
void TWChA::DelSubStr | ( | const int & | BChN, |
const int & | EChN | ||
) |
bool TWChA::Empty | ( | ) | const [inline] |
int TWChA::GetMemUsed | ( | ) | [inline] |
Definition at line 82 of file wch.h.
{return WChV.GetMemUsed();}
TStr TWChA::GetStr | ( | ) | const |
void TWChA::GetSubWChA | ( | const int & | BChN, |
const int & | EChN, | ||
TWChA & | WChA | ||
) | const [inline] |
Definition at line 89 of file wch.h.
{ WChV.GetSubValV(BChN, EChN, WChA.WChV);}
void TWChA::InsStr | ( | const int & | BChN, |
const TStr & | Str | ||
) |
bool TWChA::IsChIn | ( | const char & | Ch | ) | const [inline] |
bool TWChA::IsPrefix | ( | const TWChA & | WChA | ) | const [inline] |
bool TWChA::IsStrIn | ( | const TWChA & | WChA | ) | const [inline] |
bool TWChA::IsSufix | ( | const TWChA & | WChA | ) | const [inline] |
int TWChA::Len | ( | ) | const [inline] |
void TWChA::LoadTxt | ( | const PSIn & | SIn, |
TWChA & | WChA | ||
) | [static] |
Definition at line 35 of file wch.cpp.
{ WChA.Clr(); TWCh WCh=TWCh::LoadTxt(SIn); IAssert(WCh==TWCh::StartWCh); while (!SIn->Eof()){ WChA+=TWCh::LoadTxt(SIn);} }
TWChA& TWChA::operator+= | ( | const char & | Ch | ) | [inline] |
TWChA& TWChA::operator+= | ( | const char * | CStr | ) | [inline] |
TWChA& TWChA::operator= | ( | const char * | CStr | ) | [inline] |
bool TWChA::operator== | ( | const TWChA & | WChA | ) | const [inline] |
bool TWChA::operator== | ( | const char * | CStr | ) | const [inline] |
TWCh TWChA::operator[] | ( | const int & | ChN | ) | const [inline] |
void TWChA::PutCStr | ( | const char * | CStr | ) | [private] |
void TWChA::SaveTxt | ( | const PSOut & | SOut | ) | const |
int TWChA::SearchCh | ( | const TWCh & | WCh, |
const int & | BChN = 0 |
||
) | const [inline] |
Definition at line 96 of file wch.h.
{ return WChV.SearchForw(WCh, BChN);}
int TWChA::SearchStr | ( | const TWChA & | WChA, |
const int & | BChN = 0 |
||
) | const [inline] |
Definition at line 98 of file wch.h.
{ return WChV.SearchVForw(WChA.WChV, BChN);}
void TWChA::SplitOnCh | ( | TStr & | LStr, |
const char & | SplitCh, | ||
TStr & | RStr | ||
) | const |
TWChA TWChA::EmptyWChA [static] |
TWChV TWChA::WChV [private] |