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

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.

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

Member Function Documentation

void TUrlLxChDef::InclBoolV ( TBoolV BoolV,
const TBoolV OrBoolV 
)
private

Definition at line 33 of file url.cpp.

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

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
bool TUrlLxChDef::IsDigitCh ( const char &  Ch) const
inline

Definition at line 19 of file url.cpp.

19 {return (Ch>=0)&&IsDigitV[Ch];}
TBoolV IsDigitV
Definition: url.cpp:6
bool TUrlLxChDef::IsHostCh ( const char &  Ch) const
inline

Definition at line 21 of file url.cpp.

21 {return (Ch>=0)&&IsHostV[Ch];}
TBoolV IsHostV
Definition: url.cpp:10
bool TUrlLxChDef::IsHSegmentCh ( const char &  Ch) const
inline

Definition at line 22 of file url.cpp.

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

Definition at line 20 of file url.cpp.

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

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.

TBoolV TUrlLxChDef::IsAlphaV
private

Definition at line 5 of file url.cpp.

TBoolV TUrlLxChDef::IsDigitV
private

Definition at line 6 of file url.cpp.

TBoolV TUrlLxChDef::IsExtraV
private

Definition at line 6 of file url.cpp.

TBoolV TUrlLxChDef::IsHexV
private

Definition at line 8 of file url.cpp.

TBoolV TUrlLxChDef::IsHiAlphaV
private

Definition at line 5 of file url.cpp.

TBoolV TUrlLxChDef::IsHostV
private

Definition at line 10 of file url.cpp.

TBoolV TUrlLxChDef::IsHSegmentV
private

Definition at line 10 of file url.cpp.

TBoolV TUrlLxChDef::IsLoAlphaV
private

Definition at line 5 of file url.cpp.

TBoolV TUrlLxChDef::IsNationalV
private

Definition at line 7 of file url.cpp.

TBoolV TUrlLxChDef::IsPunctuationV
private

Definition at line 7 of file url.cpp.

TBoolV TUrlLxChDef::IsReservedV
private

Definition at line 8 of file url.cpp.

TBoolV TUrlLxChDef::IsSafeV
private

Definition at line 6 of file url.cpp.

TBoolV TUrlLxChDef::IsSchemeV
private

Definition at line 10 of file url.cpp.

TBoolV TUrlLxChDef::IsUCharV
private

Definition at line 9 of file url.cpp.

TBoolV TUrlLxChDef::IsUnreservedV
private

Definition at line 9 of file url.cpp.

TBoolV TUrlLxChDef::IsXCharV
private

Definition at line 9 of file url.cpp.


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