|
SNAP Library 2.0, User Reference
2013-05-13 16:33:57
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Public Member Functions | |
| TUrlLx (const TStr &_Str) | |
| bool | Eof () const |
| char | GetCh () |
| char | PeekCh () const |
| char | GetCh (const char &Ch) |
| TStr | GetStr (const TStr &Str) |
| const char * | GetStr (const char *Str) |
| bool | IsSchemeCh () const |
| char | GetSchemeCh () |
| bool | IsDigitCh () const |
| char | GetDigitCh () |
| bool | IsHSegmentCh () const |
| char | GetHSegmentCh () |
| TStr | GetToCh (const char &Ch=TUrlLxChDef::EofCh) |
| TStr | GetScheme () |
| TStr | GetHost () |
| TStr | GetDigits () |
| TStr | GetHostPort (TStr &HostNm, TStr &PortStr, int &PortN) |
| TStr | GetHPath (TStrV &PathSegV) |
| TStr | GetSearch () |
Static Public Attributes | |
| static const TUrlLxChDef | ChDef |
Private Attributes | |
| TChA | Bf |
| int | BfC |
Static Private Attributes | |
| static const char | EofCh = TUrlLxChDef::EofCh |
| TUrlLx::TUrlLx | ( | const TStr & | _Str | ) | [inline] |
| char TUrlLx::GetCh | ( | ) | [inline] |
| char TUrlLx::GetCh | ( | const char & | Ch | ) | [inline] |
| char TUrlLx::GetDigitCh | ( | ) | [inline] |
| TStr TUrlLx::GetDigits | ( | ) | [inline] |
Definition at line 109 of file url.cpp.
{TChA Str;
do {Str+=GetDigitCh();} while (IsDigitCh()); return Str;}
| TStr TUrlLx::GetHost | ( | ) |
| TStr TUrlLx::GetHostPort | ( | TStr & | HostNm, |
| TStr & | PortStr, | ||
| int & | PortN | ||
| ) |
| TStr TUrlLx::GetHPath | ( | TStrV & | PathSegV | ) |
Definition at line 139 of file url.cpp.
{TChA Str; TChA HSegStr; bool Cont;
do {
while (PeekCh()=='/'){GetCh('/');} // prevent multiple '/'
HSegStr.Clr(); while (IsHSegmentCh()){HSegStr+=GetHSegmentCh();}
Str+=HSegStr; PathSegV.Add(HSegStr);
Cont=(PeekCh()=='/'); if (Cont){Str+=GetCh('/');}
} while (Cont);
return Str;
}
| char TUrlLx::GetHSegmentCh | ( | ) | [inline] |
Definition at line 101 of file url.cpp.
{EAssertR(IsHSegmentCh(), ""); return GetCh();}
| TStr TUrlLx::GetScheme | ( | ) | [inline] |
Definition at line 105 of file url.cpp.
{TChA Str;
Str+=GetSchemeCh(); while (IsSchemeCh()){Str+=GetCh();}
Str.ToLc(); return Str;}
| char TUrlLx::GetSchemeCh | ( | ) | [inline] |
Definition at line 97 of file url.cpp.
{EAssertR(IsSchemeCh(), ""); return GetCh();}
| TStr TUrlLx::GetSearch | ( | ) | [inline] |
| TStr TUrlLx::GetStr | ( | const TStr & | Str | ) | [inline] |
| const char* TUrlLx::GetStr | ( | const char * | Str | ) | [inline] |
| TStr TUrlLx::GetToCh | ( | const char & | Ch = TUrlLxChDef::EofCh | ) | [inline] |
| bool TUrlLx::IsDigitCh | ( | ) | const [inline] |
| bool TUrlLx::IsHSegmentCh | ( | ) | const [inline] |
Definition at line 100 of file url.cpp.
{return ChDef.IsHSegmentCh(PeekCh());}
| bool TUrlLx::IsSchemeCh | ( | ) | const [inline] |
Definition at line 96 of file url.cpp.
{return ChDef.IsSchemeCh(PeekCh());}
| char TUrlLx::PeekCh | ( | ) | const [inline] |
TChA TUrlLx::Bf [private] |
int TUrlLx::BfC [private] |
const TUrlLxChDef TUrlLx::ChDef [static] |
const char TUrlLx::EofCh = TUrlLxChDef::EofCh [static, private] |