|
SNAP Library 2.0, Developer Reference
2013-05-13 16:33:57
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|

Public Member Functions | |
| TUrlLxChDef () | |
| bool | IsDigitCh (const char &Ch) const |
| bool | IsSchemeCh (const char &Ch) const |
| bool | IsHostCh (const char &Ch) const |
| bool | IsHSegmentCh (const char &Ch) const |
Static Public Attributes | |
| static const char | EofCh = 0 |
| static const char | EscCh = '%' |
Private Member Functions | |
| void | InclCh (TBoolV &BoolV, const char &Ch) |
| void | InclStr (TBoolV &BoolV, const TStr &Str) |
| void | InclBoolV (TBoolV &BoolV, const TBoolV &OrBoolV) |
Private Attributes | |
| TBoolV | IsLoAlphaV |
| TBoolV | IsHiAlphaV |
| TBoolV | IsAlphaV |
| TBoolV | IsDigitV |
| TBoolV | IsSafeV |
| TBoolV | IsExtraV |
| TBoolV | IsNationalV |
| TBoolV | IsPunctuationV |
| TBoolV | IsReservedV |
| TBoolV | IsHexV |
| TBoolV | IsUnreservedV |
| TBoolV | IsUCharV |
| TBoolV | IsXCharV |
| TBoolV | IsSchemeV |
| TBoolV | IsHostV |
| TBoolV | IsHSegmentV |
Definition at line 37 of file url.cpp.
References EscCh, InclBoolV(), InclStr(), IsAlphaV, IsDigitV, IsExtraV, IsHexV, IsHiAlphaV, IsHostV, IsHSegmentV, IsLoAlphaV, IsNationalV, IsPunctuationV, IsReservedV, IsSafeV, IsSchemeV, IsUCharV, IsUnreservedV, and IsXCharV.
: IsLoAlphaV(TCh::Vals), IsHiAlphaV(TCh::Vals), IsAlphaV(TCh::Vals), IsDigitV(TCh::Vals), IsSafeV(TCh::Vals), IsExtraV(TCh::Vals), IsNationalV(TCh::Vals), IsPunctuationV(TCh::Vals), IsReservedV(TCh::Vals), IsHexV(TCh::Vals), IsUnreservedV(TCh::Vals), IsUCharV(TCh::Vals), IsXCharV(TCh::Vals), IsSchemeV(TCh::Vals), IsHostV(TCh::Vals), IsHSegmentV(TCh::Vals){ InclStr(IsLoAlphaV, "abcdefghijklmnopqrstuvwxyz"); InclStr(IsHiAlphaV, "ABCDEFGHIJKLMNOPQRSTUVWXYZ"); InclBoolV(IsAlphaV, IsLoAlphaV); InclBoolV(IsAlphaV, IsHiAlphaV); InclStr(IsDigitV, "0123456789"); InclStr(IsSafeV, "$-_.+"); InclStr(IsExtraV, "!*'(),"); InclStr(IsNationalV, "{}|\\^~[]`"); InclStr(IsPunctuationV, "<>#%\""); InclStr(IsReservedV, ";/?:@&="); InclBoolV(IsHexV, IsDigitV); InclStr(IsHexV, "ABCDEFabcdef"); InclBoolV(IsUnreservedV, IsAlphaV); InclBoolV(IsUnreservedV, IsDigitV); InclBoolV(IsUnreservedV, IsSafeV); InclBoolV(IsUnreservedV, IsExtraV); InclBoolV(IsUCharV, IsUnreservedV); InclStr(IsUCharV, TStr(EscCh)); InclBoolV(IsXCharV, IsUnreservedV); InclBoolV(IsXCharV, IsReservedV); InclStr(IsXCharV, TStr(EscCh)); InclBoolV(IsSchemeV, IsAlphaV); InclBoolV(IsSchemeV, IsDigitV); InclStr(IsSchemeV, "+-."); InclBoolV(IsHostV, IsAlphaV); InclBoolV(IsHostV, IsDigitV); InclStr(IsHostV, "-_"); InclBoolV(IsHSegmentV, IsUCharV); InclStr(IsHSegmentV, ";:@&="); InclBoolV(IsHSegmentV, IsNationalV); InclStr(IsHSegmentV, " "); }

| void TUrlLxChDef::InclBoolV | ( | TBoolV & | BoolV, |
| const TBoolV & | OrBoolV | ||
| ) | [private] |
Definition at line 33 of file url.cpp.
References TVec< TVal, TSizeTy >::Len().
Referenced by TUrlLxChDef().
{
for (int BoolN=0; BoolN<BoolV.Len(); BoolN++){
BoolV[BoolN]=BoolV[BoolN]||OrBoolV[BoolN];}}


| void TUrlLxChDef::InclCh | ( | TBoolV & | BoolV, |
| const char & | Ch | ||
| ) | [private] |
| void TUrlLxChDef::InclStr | ( | TBoolV & | BoolV, |
| const TStr & | Str | ||
| ) | [private] |
Definition at line 30 of file url.cpp.
References TStr::GetCh(), and TStr::Len().
Referenced by TUrlLxChDef().


| bool TUrlLxChDef::IsDigitCh | ( | const char & | Ch | ) | const [inline] |
Definition at line 19 of file url.cpp.
References IsDigitV.
Referenced by TUrlLx::IsDigitCh().
{return (Ch>=0)&&IsDigitV[Ch];}

| bool TUrlLxChDef::IsHostCh | ( | const char & | Ch | ) | const [inline] |
Definition at line 21 of file url.cpp.
References IsHostV.
Referenced by TUrlLx::GetHost().
{return (Ch>=0)&&IsHostV[Ch];}

| bool TUrlLxChDef::IsHSegmentCh | ( | const char & | Ch | ) | const [inline] |
Definition at line 22 of file url.cpp.
References IsHSegmentV.
Referenced by TUrlLx::IsHSegmentCh().
{
return (Ch<0)||((Ch>=0)&&IsHSegmentV[Ch]);}

| bool TUrlLxChDef::IsSchemeCh | ( | const char & | Ch | ) | const [inline] |
Definition at line 20 of file url.cpp.
References IsSchemeV.
Referenced by TUrlLx::IsSchemeCh().
{return (Ch>=0)&&IsSchemeV[Ch];}

const char TUrlLxChDef::EofCh = 0 [static] |
const char TUrlLxChDef::EscCh = '%' [static] |
Definition at line 16 of file url.cpp.
Referenced by TUrlLxChDef().
TBoolV TUrlLxChDef::IsAlphaV [private] |
Definition at line 5 of file url.cpp.
Referenced by TUrlLxChDef().
TBoolV TUrlLxChDef::IsDigitV [private] |
Definition at line 6 of file url.cpp.
Referenced by IsDigitCh(), and TUrlLxChDef().
TBoolV TUrlLxChDef::IsExtraV [private] |
Definition at line 6 of file url.cpp.
Referenced by TUrlLxChDef().
TBoolV TUrlLxChDef::IsHexV [private] |
Definition at line 8 of file url.cpp.
Referenced by TUrlLxChDef().
TBoolV TUrlLxChDef::IsHiAlphaV [private] |
Definition at line 5 of file url.cpp.
Referenced by TUrlLxChDef().
TBoolV TUrlLxChDef::IsHostV [private] |
Definition at line 10 of file url.cpp.
Referenced by IsHostCh(), and TUrlLxChDef().
TBoolV TUrlLxChDef::IsHSegmentV [private] |
Definition at line 10 of file url.cpp.
Referenced by IsHSegmentCh(), and TUrlLxChDef().
TBoolV TUrlLxChDef::IsLoAlphaV [private] |
Definition at line 5 of file url.cpp.
Referenced by TUrlLxChDef().
TBoolV TUrlLxChDef::IsNationalV [private] |
Definition at line 7 of file url.cpp.
Referenced by TUrlLxChDef().
TBoolV TUrlLxChDef::IsPunctuationV [private] |
Definition at line 7 of file url.cpp.
Referenced by TUrlLxChDef().
TBoolV TUrlLxChDef::IsReservedV [private] |
Definition at line 8 of file url.cpp.
Referenced by TUrlLxChDef().
TBoolV TUrlLxChDef::IsSafeV [private] |
Definition at line 6 of file url.cpp.
Referenced by TUrlLxChDef().
TBoolV TUrlLxChDef::IsSchemeV [private] |
Definition at line 10 of file url.cpp.
Referenced by IsSchemeCh(), and TUrlLxChDef().
TBoolV TUrlLxChDef::IsUCharV [private] |
Definition at line 9 of file url.cpp.
Referenced by TUrlLxChDef().
TBoolV TUrlLxChDef::IsUnreservedV [private] |
Definition at line 9 of file url.cpp.
Referenced by TUrlLxChDef().
TBoolV TUrlLxChDef::IsXCharV [private] |
Definition at line 9 of file url.cpp.
Referenced by TUrlLxChDef().