SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
TUrlLxChDef Class Reference
Collaboration diagram for TUrlLxChDef:

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
 

Detailed Description

Definition at line 3 of file url.cpp.

Constructor & Destructor Documentation

TUrlLxChDef::TUrlLxChDef ( )

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.

37  :
44 
45  InclStr(IsLoAlphaV, "abcdefghijklmnopqrstuvwxyz");
46  InclStr(IsHiAlphaV, "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
48  InclStr(IsDigitV, "0123456789");
49  InclStr(IsSafeV, "$-_.+");
50  InclStr(IsExtraV, "!*'(),");
51  InclStr(IsNationalV, "{}|\\^~[]`");
52  InclStr(IsPunctuationV, "<>#%\"");
53  InclStr(IsReservedV, ";/?:@&=");
54  InclBoolV(IsHexV, IsDigitV); InclStr(IsHexV, "ABCDEFabcdef");
55 
58 
60 
63 
65  InclStr(IsSchemeV, "+-.");
66 
68  InclStr(IsHostV, "-_");
69 
72 }
TBoolV IsExtraV
Definition: url.cpp:6
static const char EscCh
Definition: url.cpp:16
void InclBoolV(TBoolV &BoolV, const TBoolV &OrBoolV)
Definition: url.cpp:33
void InclStr(TBoolV &BoolV, const TStr &Str)
Definition: url.cpp:30
TBoolV IsSafeV
Definition: url.cpp:6
TBoolV IsHexV
Definition: url.cpp:8
TBoolV IsSchemeV
Definition: url.cpp:10
TBoolV IsUnreservedV
Definition: url.cpp:9
TBoolV IsDigitV
Definition: url.cpp:6
TBoolV IsLoAlphaV
Definition: url.cpp:5
TBoolV IsHostV
Definition: url.cpp:10
TBoolV IsNationalV
Definition: url.cpp:7
TBoolV IsXCharV
Definition: url.cpp:9
TBoolV IsAlphaV
Definition: url.cpp:5
TBoolV IsHSegmentV
Definition: url.cpp:10
Definition: dt.h:412
static const int Vals
Definition: dt.h:1034
TBoolV IsUCharV
Definition: url.cpp:9
TBoolV IsHiAlphaV
Definition: url.cpp:5
TBoolV IsReservedV
Definition: url.cpp:8
TBoolV IsPunctuationV
Definition: url.cpp:7

Here is the call graph for this function:

Member Function Documentation

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().

33  {
34  for (int BoolN=0; BoolN<BoolV.Len(); BoolN++){
35  BoolV[BoolN]=BoolV[BoolN]||OrBoolV[BoolN];}}
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:575

Here is the call graph for this function:

Here is the caller graph for this function:

void TUrlLxChDef::InclCh ( TBoolV BoolV,
const char &  Ch 
)
private

Definition at line 28 of file url.cpp.

28 {BoolV[Ch]=true;}
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().

30  {
31  for (int CC=0; CC<Str.Len(); CC++){BoolV[Str.GetCh(CC)]=true;}}
int Len() const
Definition: dt.h:490
char GetCh(const int &ChN) const
Definition: dt.h:486

Here is the call graph for this function:

Here is the caller graph for this function:

bool TUrlLxChDef::IsDigitCh ( const char &  Ch) const
inline

Definition at line 19 of file url.cpp.

Referenced by TUrlLx::IsDigitCh().

19 {return (Ch>=0)&&IsDigitV[Ch];}
TBoolV IsDigitV
Definition: url.cpp:6

Here is the caller graph for this function:

bool TUrlLxChDef::IsHostCh ( const char &  Ch) const
inline

Definition at line 21 of file url.cpp.

Referenced by TUrlLx::GetHost().

21 {return (Ch>=0)&&IsHostV[Ch];}
TBoolV IsHostV
Definition: url.cpp:10

Here is the caller graph for this function:

bool TUrlLxChDef::IsHSegmentCh ( const char &  Ch) const
inline

Definition at line 22 of file url.cpp.

Referenced by TUrlLx::IsHSegmentCh().

22  {
23  return (Ch<0)||((Ch>=0)&&IsHSegmentV[Ch]);}
TBoolV IsHSegmentV
Definition: url.cpp:10

Here is the caller graph for this function:

bool TUrlLxChDef::IsSchemeCh ( const char &  Ch) const
inline

Definition at line 20 of file url.cpp.

Referenced by TUrlLx::IsSchemeCh().

20 {return (Ch>=0)&&IsSchemeV[Ch];}
TBoolV IsSchemeV
Definition: url.cpp:10

Here is the caller graph for this function:

Member Data Documentation

const char TUrlLxChDef::EofCh =0
static

Definition at line 15 of file url.cpp.

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 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 TUrlLxChDef().

TBoolV TUrlLxChDef::IsHSegmentV
private

Definition at line 10 of file url.cpp.

Referenced by 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 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().


The documentation for this class was generated from the following file: