SNAP Library , Developer Reference
2013-01-07 14:03:36
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Public Member Functions | |
THttpChDef () | |
THttpChDef & | operator= (const THttpChDef &) |
int | GetChTy (const char &Ch) |
bool | IsAlpha (const char &Ch) |
bool | IsDigit (const char &Ch) |
bool | IsCtl (const char &Ch) |
bool | IsLws (const char &Ch) |
bool | IsText (const char &Ch) |
bool | IsSpec (const char &Ch) |
bool | IsCr (const char &Ch) |
bool | IsLf (const char &Ch) |
bool | IsSp (const char &Ch) |
bool | IsHt (const char &Ch) |
bool | IsDQuote (const char &Ch) |
char | GetLcCh (const char &Ch) |
TStr | GetLcStr (const TStr &Str) |
Private Member Functions | |
void | SetLcCh (const TStr &Str) |
void | SetChTy (const THttpChTy &ChTy, const char &Ch) |
void | SetChTy (const THttpChTy &ChTy, const TStr &Str) |
Private Attributes | |
TIntV | ChTyV |
TChV | LcChV |
Definition at line 133 of file http.cpp.
References ChTyV, hpctAlpha, hpctCtl, hpctDigit, hpctSpec, hpctUndef, LcChV, TCh::Mn, TCh::Mx, TVec< TVal >::PutAll(), SetChTy(), and SetLcCh().
: ChTyV(TCh::Vals), LcChV(TCh::Vals){ // Character-Types ChTyV.PutAll(TInt(hpctUndef)); SetChTy(hpctAlpha, "ABCDEFGHIJKLMNOPQRSTUVWXYZ"); SetChTy(hpctAlpha, "abcdefghijklmnopqrstuvwxyz"); SetChTy(hpctDigit, "0123456789"); for (char Ch=0; Ch<=31; Ch++){SetChTy(hpctCtl, Ch);} SetChTy(hpctCtl, 127); SetChTy(hpctSpec, "()<>@,;:\\\"/[]?={}"); // +char(9)+char(32) // Lower-Case {for (int Ch=TCh::Mn; Ch<=TCh::Mx; Ch++){LcChV[Ch-TCh::Mn]=TCh(char(Ch));}} SetLcCh("aA"); SetLcCh("bB"); SetLcCh("cC"); SetLcCh("dD"); SetLcCh("eE"); SetLcCh("fF"); SetLcCh("gG"); SetLcCh("hH"); SetLcCh("iI"); SetLcCh("jJ"); SetLcCh("kK"); SetLcCh("lL"); SetLcCh("mM"); SetLcCh("nN"); SetLcCh("oO"); SetLcCh("pP"); SetLcCh("qQ"); SetLcCh("rR"); SetLcCh("sS"); SetLcCh("tT"); SetLcCh("uU"); SetLcCh("vV"); SetLcCh("wW"); SetLcCh("xX"); SetLcCh("yY"); SetLcCh("zZ"); }
int THttpChDef::GetChTy | ( | const char & | Ch | ) | [inline] |
char THttpChDef::GetLcCh | ( | const char & | Ch | ) | [inline] |
Definition at line 120 of file http.cpp.
References LcChV, and TCh::Mn.
Referenced by GetLcStr(), and THttpLx::IsRespStatusLn().
TStr THttpChDef::GetLcStr | ( | const TStr & | Str | ) |
Definition at line 155 of file http.cpp.
References GetLcCh(), and TStr::Len().
Referenced by THttpLx::GetNrStr().
bool THttpChDef::IsAlpha | ( | const char & | Ch | ) | [inline] |
bool THttpChDef::IsCr | ( | const char & | Ch | ) | [inline] |
bool THttpChDef::IsCtl | ( | const char & | Ch | ) | [inline] |
bool THttpChDef::IsDigit | ( | const char & | Ch | ) | [inline] |
Definition at line 107 of file http.cpp.
References ChTyV, hpctDigit, and TCh::Mn.
Referenced by THttpLx::GetInt(), and THttpLx::IsRespStatusLn().
bool THttpChDef::IsDQuote | ( | const char & | Ch | ) | [inline] |
bool THttpChDef::IsHt | ( | const char & | Ch | ) | [inline] |
bool THttpChDef::IsLf | ( | const char & | Ch | ) | [inline] |
bool THttpChDef::IsLws | ( | const char & | Ch | ) | [inline] |
Definition at line 109 of file http.cpp.
References TCh::CrCh, TCh::LfCh, and TCh::TabCh.
Referenced by IsText().
{ return (Ch==' ')||(Ch==TCh::TabCh)||(Ch==TCh::CrCh)||(Ch==TCh::LfCh);}
bool THttpChDef::IsSp | ( | const char & | Ch | ) | [inline] |
Definition at line 116 of file http.cpp.
Referenced by THttpLx::GetUrl(), and THttpLx::GetUrlStr().
{return Ch==32;}
bool THttpChDef::IsSpec | ( | const char & | Ch | ) | [inline] |
Definition at line 112 of file http.cpp.
References ChTyV, hpctSpec, and TCh::Mn.
Referenced by THttpLx::GetSpec(), and THttpLx::GetToken().
bool THttpChDef::IsText | ( | const char & | Ch | ) | [inline] |
Definition at line 111 of file http.cpp.
References IsCtl(), and IsLws().
Referenced by THttpLx::GetFldVal(), and THttpLx::GetRespReasonPhrase().
THttpChDef& THttpChDef::operator= | ( | const THttpChDef & | ) | [inline] |
void THttpChDef::SetChTy | ( | const THttpChTy & | ChTy, |
const char & | Ch | ||
) | [private] |
void THttpChDef::SetChTy | ( | const THttpChTy & | ChTy, |
const TStr & | Str | ||
) | [private] |
void THttpChDef::SetLcCh | ( | const TStr & | Str | ) | [private] |
Definition at line 130 of file http.cpp.
References LcChV, TStr::Len(), and TCh::Mn.
Referenced by THttpChDef().
TIntV THttpChDef::ChTyV [private] |
TChV THttpChDef::LcChV [private] |
Definition at line 96 of file http.cpp.
Referenced by GetLcCh(), SetLcCh(), and THttpChDef().