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
|
#include <url.h>
Public Member Functions | |
TUrl (const TStr &_RelUrlStr, const TStr &_BaseUrlStr=TStr()) | |
~TUrl () | |
TUrl (TSIn &) | |
void | Save (TSOut &) |
bool | IsOk (const TUrlScheme _Scheme=usUndef) const |
TUrlScheme | GetScheme () |
TStr | GetUrlStr () const |
TStr | GetRelUrlStr () const |
bool | IsBaseUrl () |
TStr | GetBaseUrlStr () const |
TStr | GetSchemeNm () const |
TStr | GetHostNm () const |
TStr | GetDmNm (const int &MxDmSegs=-1) const |
bool | IsPortOk () const |
TStr | GetPortStr () const |
int | GetPortN () const |
TStr | GetPathStr () const |
int | GetPathSegs () const |
TStr | GetPathSeg (const int &PathSegN) const |
TStr | GetSearchStr () const |
TStr | GetFragIdStr () const |
bool | IsIpNum () const |
void | PutIpNum (const TStr &_IpNum) |
TStr | GetIpNum () const |
TStr | GetIpNumOrHostNm () const |
bool | IsDefFinalUrl () const |
TStr | GetFinalUrlStr () const |
TStr | GetAsFinalUrlStr () const |
TStr | GetFinalHostNm () const |
TStr | GetAsFinalHostNm () const |
void | DefUrlAsFinal () |
void | DefFinalUrl (const TStr &_FinalHostNm) |
void | PutHttpRqStr (const TStr &_HttpRqStr) |
TStr | GetHttpRqStr () const |
bool | IsHttpRqStr () const |
void | ChangeHttpRqStr (const TStr &SrcStr, const TStr &DstStr) |
bool | IsInHost (const TStr &_HostNm) const |
bool | IsInPath (const TStr &_PathStr) const |
void | ToLcPath () |
Static Public Member Functions | |
static PUrl | New (const TStr &RelUrlStr, const TStr &BaseUrlStr=TStr()) |
static PUrl | Load (TSIn &) |
static bool | IsAbs (const TStr &UrlStr) |
static bool | IsScript (const TStr &UrlStr) |
static bool | IsSite (const TStr &UrlStr) |
static PUrl | GetUrlFromShortcut (const TStr &ShortcutUrlStr, const TStr &DfHostNmPrefix, const TStr &DfHostNmSufix) |
static TStr | GetUrlSearchStr (const TStr &Str) |
static TStr | EncodeUrlStr (const TStr &Str) |
static TStr | DecodeUrlStr (const TStr &UrlStr) |
static TStr | GetDocStrFromUrlStr (const TStr &UrlStr, const int &Copies=1) |
static TStr | GetTopDownDocNm (const TStr &UrlStr, const int &MxLen=-1, const bool &HostOnlyP=false) |
Private Member Functions | |
void | GetAbs (const TStr &AbsUrlStr) |
void | GetAbsFromBase (const TStr &RelUrlStr, const TStr &BaseUrlStr) |
UndefDefaultCopyAssign (TUrl) | |
Private Attributes | |
TCRef | CRef |
TUrlScheme | Scheme |
TStr | UrlStr |
TStr | RelUrlStr |
TStr | BaseUrlStr |
TStr | SchemeNm |
TStr | HostNm |
TStr | PortStr |
TStr | PathStr |
TStr | SearchStr |
TStr | FragIdStr |
int | PortN |
TStrV | PathSegV |
TStr | IpNum |
TStr | FinalUrlStr |
TStr | FinalHostNm |
TStr | HttpRqStr |
Static Private Attributes | |
static const TStr | UrlHttpPrefixStr ="http:" |
static const TStr | UrlHttpAbsPrefixStr ="http://" |
Friends | |
class | TPt< TUrl > |
Definition at line 228 of file url.cpp.
|
inline |
Definition at line 75 of file url.h.
|
private |
Definition at line 154 of file url.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
Definition at line 421 of file url.cpp.
|
static |
|
inline |
|
inline |
|
inline |
|
private |
|
private |