SNAP Library 3.0, Developer Reference
2016-07-20 17:56:49
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <html.h>
Public Member Functions | |
THtmlTok () | |
THtmlTok (const THtmlLxSym &_Sym) | |
THtmlTok (const THtmlLxSym &_Sym, const TStr &_Str) | |
THtmlTok (const THtmlLxSym &_Sym, const TStr &_Str, const THtmlLx::TArgNmValV &_ArgNmValV) | |
THtmlTok (TSIn &) | |
void | Save (TSOut &) |
THtmlTok & | operator= (const THtmlTok &) |
THtmlLxSym | GetSym () const |
TStr | GetStr () const |
TStr | GetFullStr () const |
bool | IsArg (const TStr &ArgNm) const |
TStr | GetArg (const TStr &ArgNm) const |
TStr | GetArg (const TStr &ArgNm, const TStr &DfArgVal) const |
bool | IsUrlTok (TStr &RelUrlStr) const |
bool | IsRedirUrlTok () const |
void | SaveTxt (const PSOut &SOut, const bool &TxtMode=true) |
Static Public Member Functions | |
static PHtmlTok | Load (TSIn &) |
static bool | IsBreakTag (const TStr &TagNm) |
static bool | IsBreakTok (const PHtmlTok &Tok) |
static bool | IsHTag (const TStr &TagNm, int &HTagN) |
static PHtmlTok | GetHTok (const bool &IsBTag, const int &HTagN) |
Static Public Attributes | |
static const TStr | ATagNm ="<A>" |
static const TStr | AreaTagNm ="<AREA>" |
static const TStr | BrTagNm ="<BR>" |
static const TStr | CardTagNm ="<CARD>" |
static const TStr | CenterTagNm ="<CENTER>" |
static const TStr | FrameTagNm ="<FRAME>" |
static const TStr | H1TagNm ="<H1>" |
static const TStr | H2TagNm ="<H2>" |
static const TStr | H3TagNm ="<H3>" |
static const TStr | H4TagNm ="<H4>" |
static const TStr | H5TagNm ="<H5>" |
static const TStr | H6TagNm ="<H6>" |
static const TStr | ImgTagNm ="<IMG>" |
static const TStr | LiTagNm ="<LI>" |
static const TStr | MetaTagNm ="<META>" |
static const TStr | PTagNm ="<P>" |
static const TStr | UlTagNm ="<UL>" |
static const TStr | TitleTagNm ="<TITLE>" |
static const TStr | TitleETagNm ="</TITLE>" |
static const TStr | AltArgNm ="ALT" |
static const TStr | HRefArgNm ="HREF" |
static const TStr | SrcArgNm ="SRC" |
static const TStr | TitleArgNm ="TITLE" |
static const TStr | HttpEquivArgNm ="HTTP-EQUIV" |
Private Attributes | |
TCRef | CRef |
THtmlLxSym | Sym |
TStr | Str |
THtmlLx::TArgNmValV | ArgNmValV |
Friends | |
class | TPt< THtmlTok > |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 207 of file html.h.
Referenced by IsRedirUrlTok(), and IsUrlTok().
TStr THtmlTok::GetFullStr | ( | ) | const |
Definition at line 628 of file html.cpp.
References ArgNmValV, GetStr(), TStr::GetSubStr(), hsyBTag, hsyETag, TStr::Len(), TVec< TVal, TSizeTy >::Len(), Str, and Sym.
Referenced by SaveTxt().
|
static |
|
inline |
Definition at line 203 of file html.h.
Referenced by GetFullStr(), IsRedirUrlTok(), and IsUrlTok().
|
inline |
Definition at line 202 of file html.h.
Referenced by IsRedirUrlTok(), and IsUrlTok().
|
inline |
Definition at line 205 of file html.h.
Referenced by IsRedirUrlTok(), and IsUrlTok().
|
static |
Definition at line 726 of file html.cpp.
References THash< TKey, TDat, THashFunc >::AddKey(), THash< TKey, TDat, THashFunc >::IsKey(), and THash< TKey, TDat, THashFunc >::Len().
Referenced by IsBreakTok().
|
static |
Definition at line 744 of file html.cpp.
References hsyBTag, hsyETag, and IsBreakTag().
Referenced by THtmlHldV::THtmlHldV().
|
static |
Definition at line 752 of file html.cpp.
References TStr::Len().
Referenced by THtmlHldV::THtmlHldV().
bool THtmlTok::IsRedirUrlTok | ( | ) | const |
Definition at line 676 of file html.cpp.
References GetArg(), GetStr(), GetSym(), TStr::GetUc(), hsyBTag, HttpEquivArgNm, IsArg(), and MetaTagNm.
bool THtmlTok::IsUrlTok | ( | TStr & | RelUrlStr | ) | const |
Definition at line 648 of file html.cpp.
References AreaTagNm, ATagNm, TStr::Empty(), FrameTagNm, GetArg(), GetStr(), TStr::GetSubStr(), GetSym(), TStr::GetUc(), HRefArgNm, hsyBTag, HttpEquivArgNm, ImgTagNm, IsArg(), TStr::Len(), MetaTagNm, TStr::SplitOnStr(), and SrcArgNm.
|
inline |
void THtmlTok::SaveTxt | ( | const PSOut & | SOut, |
const bool & | TxtMode = true |
||
) |
Definition at line 691 of file html.cpp.
References GetFullStr(), THtmlLx::GetSymStr(), TSOut::PutStr(), and Sym.
|
static |
Definition at line 218 of file html.h.
Referenced by IsUrlTok(), and THtmlDoc::THtmlDoc().
|
private |
Definition at line 186 of file html.h.
Referenced by GetFullStr().
|
static |
Definition at line 217 of file html.h.
Referenced by IsUrlTok().
|
static |
Definition at line 222 of file html.h.
Referenced by IsUrlTok().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 238 of file html.h.
Referenced by IsUrlTok().
|
static |
Definition at line 241 of file html.h.
Referenced by IsRedirUrlTok(), and IsUrlTok().
|
static |
Definition at line 229 of file html.h.
Referenced by IsUrlTok(), and THtmlDoc::THtmlDoc().
|
static |
Definition at line 231 of file html.h.
Referenced by IsRedirUrlTok(), and IsUrlTok().
|
static |
Definition at line 239 of file html.h.
Referenced by IsUrlTok().
|
private |
Definition at line 185 of file html.h.
Referenced by GetFullStr().
|
private |
Definition at line 184 of file html.h.
Referenced by GetFullStr(), and SaveTxt().
|
static |
Definition at line 233 of file html.h.
Referenced by THtmlDoc::THtmlDoc().