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
|
#include <xml.h>
Public Member Functions | |
void | SkipWs () |
TXmlLx (const PSIn &_SIn, const TXmlSpacing &_Spacing=xspIntact) | |
TXmlLx & | operator= (const TXmlLx &) |
TXmlLxSym | GetSym () |
TStr | GetSymStr () const |
void | EThrow (const TStr &MsgStr) const |
TStr | GetFPosStr () const |
void | ClrArgV () |
void | AddArg (const TStr &ArgNm, const TStr &ArgVal) |
bool | IsArgNm (const TStr &ArgNm) const |
int | GetArgs () const |
void | GetArg (const int &ArgN, TStr &ArgNm, TStr &ArgVal) const |
TStr | GetArgVal (const TStr &ArgNm, const TStr &DfVal=TStr()) const |
bool | IsEntityNm (const TStr &EntityNm, TStr &EntityVal) const |
void | PutEntityVal (const TStr &Nm, const TStr &Val) |
bool | IsPEntityNm (const TStr &EntityNm, TStr &EntityVal) const |
void | PutPEntityVal (const TStr &Nm, const TStr &Val) |
Static Public Member Functions | |
static char | GetArgValQCh (const TStr &ArgVal) |
static TStr | GetXmlLxSymStr (const TXmlLxSym &XmlLxSym) |
static bool | IsTagNm (const TStr &Str) |
static TStr | GetXmlStrFromPlainMem (const TMem &PlainMem) |
static TStr | GetXmlStrFromPlainStr (const TChA &PlainChA) |
static TStr | GetPlainStrFromXmlStr (const TStr &XmlStr) |
static TStr | GetUsAsciiStrFromXmlStr (const TStr &EntRefStr) |
static TStr | GetChRefFromYuEntRef (const TStr &YuEntRefStr) |
Public Attributes | |
TXmlLxSym | Sym |
TChA | TxtChA |
TStr | TagNm |
TStrKdV | ArgNmValKdV |
Private Member Functions | |
uchar | GetCh () |
void | PutCh (const uchar &_Ch) |
void | PutStr (const TStr &Str) |
void | ToNrSpacing () |
void | GetWs (const bool &IsRq) |
TStr | GetReference () |
void | GetEq () |
TStr | GetName () |
TStr | GetName (const TStr &RqNm) |
void | GetComment () |
TStr | GetAttValue () |
TStr | GetVersionNum () |
TStr | GetEncName () |
TStr | GetStalVal () |
void | GetXmlDecl () |
void | GetPI () |
TStr | GetSystemLiteral () |
TStr | GetPubidLiteral () |
TStr | GetPEReference () |
void | GetExternalId () |
void | GetNData () |
void | GetDocTypeDecl () |
void | GetElement () |
void | GetAttList () |
TStr | GetEntityValue () |
void | GetEntity () |
void | GetNotation () |
void | GetCDSect () |
Private Attributes | |
PSIn | SIn |
TSIn & | RSIn |
TChA | ChStack |
uchar | PrevCh |
uchar | Ch |
int | LnN |
int | LnChN |
int | ChN |
TXmlSpacing | Spacing |
TStrStrH | EntityNmToValH |
TStrStrH | PEntityNmToValH |
Static Private Attributes | |
static TXmlChDef | ChDef |
|
inline |
Definition at line 161 of file xml.h.
References TVec< TVal, TSizeTy >::Add().
Referenced by GetSym(), and GetXmlDecl().
|
inline |
Definition at line 160 of file xml.h.
References TVec< TVal, TSizeTy >::Clr().
Referenced by GetSym().
void TXmlLx::EThrow | ( | const TStr & | MsgStr | ) | const |
Definition at line 885 of file xml.cpp.
References TSBase::GetSNm(), TInt::GetStr(), LnChN, LnN, SIn, and TExcept::Throw().
Referenced by GetAttList(), GetAttValue(), GetCDSect(), GetComment(), GetDocTypeDecl(), GetElement(), GetEncName(), GetEntity(), GetEntityValue(), GetEq(), GetExternalId(), GetName(), GetNotation(), GetPEReference(), GetPI(), GetPubidLiteral(), GetReference(), GetStalVal(), GetSym(), GetSystemLiteral(), GetVersionNum(), GetWs(), GetXmlDecl(), and TXmlDoc::LoadTxtElement().
Definition at line 166 of file xml.h.
Referenced by GetSymStr(), TSnap::LoadDyNet(), and TSnap::LoadDyNetGraphV().
|
inline |
Definition at line 165 of file xml.h.
References TVec< TVal, TSizeTy >::Len().
Referenced by GetSymStr().
Definition at line 168 of file xml.h.
References TVec< TVal, TSizeTy >::SearchForw().
|
inlinestatic |
Definition at line 171 of file xml.h.
References TStr::IsChIn().
Referenced by TXmlTok::AddTokToChA(), and GetSymStr().
|
private |
Definition at line 665 of file xml.cpp.
References Ch, ChDef, TChA::Clr(), EThrow(), GetCh(), TXmlChDef::IsChar(), and TxtChA.
Referenced by GetSym().
|
private |
Definition at line 457 of file xml.cpp.
References Ch, ChDef, EThrow(), forever, GetCh(), GetReference(), and TXmlChDef::IsChar().
Referenced by GetSym().
|
private |
Definition at line 733 of file xml.cpp.
References Ch, ChDef, TChA::Clr(), EThrow(), forever, GetCh(), TXmlChDef::IsChar(), TChA::LastCh(), TChA::LastLastCh(), TChA::Len(), TChA::Pop(), and TxtChA.
Referenced by GetSym().
|
private |
Definition at line 260 of file xml.cpp.
References Ch, ChN, ChStack, EAssert, TChA::Empty(), TSIn::Eof(), TCh::EofCh, TSIn::GetCh(), TCh::LfCh, LnChN, LnN, TChA::Pop(), PrevCh, and RSIn.
Referenced by GetAttList(), GetAttValue(), GetCDSect(), GetComment(), GetDocTypeDecl(), GetElement(), GetEncName(), GetEntity(), GetEntityValue(), GetEq(), GetName(), GetNotation(), GetPEReference(), GetPI(), GetPubidLiteral(), GetReference(), GetStalVal(), GetSym(), GetSystemLiteral(), GetVersionNum(), GetWs(), GetXmlDecl(), SkipWs(), and TXmlLx().
Definition at line 1072 of file xml.cpp.
References TStr::ChangeStrAll().
|
private |
|
private |
Definition at line 627 of file xml.cpp.
References Ch, ChDef, EThrow(), GetCh(), GetExternalId(), GetName(), GetPEReference(), GetSym(), GetWs(), TXmlChDef::IsWs(), and TagNm.
Referenced by GetSym().
|
private |
Definition at line 656 of file xml.cpp.
References Ch, ChDef, TChA::Clr(), EThrow(), GetCh(), TXmlChDef::IsChar(), and TxtChA.
Referenced by GetSym().
|
private |
|
private |
Definition at line 690 of file xml.cpp.
References Ch, EThrow(), GetCh(), GetEntityValue(), GetExternalId(), GetName(), GetNData(), GetWs(), PutEntityVal(), PutPEntityVal(), and TagNm.
Referenced by GetSym().
|
private |
Definition at line 674 of file xml.cpp.
References Ch, ChDef, EThrow(), forever, GetCh(), GetPEReference(), GetReference(), and TXmlChDef::IsChar().
Referenced by GetEntity().
|
private |
|
private |
Definition at line 609 of file xml.cpp.
References EThrow(), GetName(), GetPubidLiteral(), GetSystemLiteral(), and GetWs().
Referenced by GetDocTypeDecl(), and GetEntity().
TStr TXmlLx::GetFPosStr | ( | ) | const |
Definition at line 895 of file xml.cpp.
References TSBase::GetSNm(), TInt::GetStr(), LnChN, LnN, and SIn.
|
private |
Definition at line 416 of file xml.cpp.
References Ch, ChDef, EThrow(), GetCh(), TXmlChDef::IsFirstNameCh(), and TXmlChDef::IsName().
Referenced by GetDocTypeDecl(), GetEntity(), GetExternalId(), GetName(), GetNData(), GetPEReference(), GetReference(), GetSym(), and GetXmlDecl().
|
private |
Definition at line 622 of file xml.cpp.
References GetName(), and GetWs().
Referenced by GetEntity().
|
private |
Definition at line 722 of file xml.cpp.
References Ch, ChDef, TChA::Clr(), EThrow(), GetCh(), TXmlChDef::IsChar(), and TxtChA.
Referenced by GetSym().
|
private |
Definition at line 397 of file xml.cpp.
References Ch, TStr::Empty(), EThrow(), GetCh(), GetName(), and IsPEntityNm().
Referenced by GetDocTypeDecl(), and GetEntityValue().
|
private |
Definition at line 991 of file xml.cpp.
References Ch, TChA::Empty(), TUnicode::EncodeUtf8(), TChRet::Eof(), forever, TChRet::GetCh(), TCh::GetHex(), TCh::GetNum(), TCh::IsHex(), TCh::IsNum(), and TStrIn::New().
Referenced by GetUsAsciiStrFromXmlStr().
|
private |
Definition at line 596 of file xml.cpp.
References Ch, ChDef, EThrow(), GetCh(), and TXmlChDef::IsPubid().
Referenced by GetExternalId().
|
private |
Definition at line 340 of file xml.cpp.
References Ch, ChDef, TChA::Empty(), TStr::Empty(), TUnicode::EncodeUtf8(), EThrow(), Fail, forever, GetCh(), TCh::GetHex(), GetName(), TCh::GetNum(), TXmlChDef::IsEntityNm(), IsEntityNm(), TCh::IsHex(), and TCh::IsNum().
Referenced by GetAttValue(), GetEntityValue(), and GetSym().
|
private |
TXmlLxSym TXmlLx::GetSym | ( | ) |
Definition at line 757 of file xml.cpp.
References AddArg(), Ch, ChDef, TChA::Clr(), ClrArgV(), TCh::EofCh, EThrow(), forever, GetAttList(), GetAttValue(), GetCDSect(), GetCh(), GetComment(), GetDocTypeDecl(), GetElement(), GetEntity(), GetEq(), TStr::GetLc(), GetName(), GetNotation(), GetPI(), GetReference(), TUInt::GetStr(), GetWs(), GetXmlDecl(), TXmlChDef::IsChar(), TXmlChDef::IsWs(), TChA::LastCh(), TChA::LastLastCh(), TChA::Len(), SkipWs(), Spacing, Sym, TagNm, ToNrSpacing(), TxtChA, xspTruncate, xsyAttList, xsyComment, xsyDocTypeDecl, xsyElement, xsyEntity, xsyEof, xsyETag, xsyNotation, xsyPI, xsyQStr, xsySETag, xsySTag, xsyStr, xsyWs, and xsyXmlDecl.
Referenced by GetDocTypeDecl(), TStrUtil::GetXmlTagNmVal(), TStrUtil::GetXmlTagNmVal2(), TStrUtil::GetXmlTagVal(), TSnap::LoadDyNet(), TSnap::LoadDyNetGraphV(), TXmlDoc::LoadTxt(), TXmlDoc::LoadTxtElement(), TXmlDoc::LoadTxtMiscStar(), and TXmlDoc::SkipTopTag().
TStr TXmlLx::GetSymStr | ( | ) | const |
Definition at line 835 of file xml.cpp.
References TChA::Empty(), Fail, GetArg(), GetArgs(), GetArgValQCh(), TStr::GetHex(), Sym, TagNm, TxtChA, xsyComment, xsyDocTypeDecl, xsyEof, xsyETag, xsyPI, xsyQStr, xsySETag, xsySTag, xsyStr, xsyUndef, xsyWs, and xsyXmlDecl.
|
private |
Definition at line 583 of file xml.cpp.
References Ch, ChDef, EThrow(), GetCh(), and TXmlChDef::IsChar().
Referenced by GetExternalId().
Definition at line 1056 of file xml.cpp.
References Ch, TStr::ChangeStrAll(), ChN, GetPlainStrFromXmlStr(), TChA::Len(), and TChA::PutCh().
|
private |
|
private |
Definition at line 331 of file xml.cpp.
References Ch, ChDef, TChA::Clr(), EThrow(), GetCh(), TXmlChDef::IsWs(), and TxtChA.
Referenced by GetDocTypeDecl(), GetEntity(), GetEq(), GetExternalId(), GetNData(), GetPI(), GetSym(), and GetXmlDecl().
|
private |
Definition at line 531 of file xml.cpp.
References AddArg(), Ch, EThrow(), GetCh(), GetEncName(), GetEq(), GetName(), GetStalVal(), GetVersionNum(), and GetWs().
Referenced by GetSym().
Definition at line 904 of file xml.cpp.
References xsyAttList, xsyComment, xsyDocTypeDecl, xsyElement, xsyEntity, xsyEof, xsyETag, xsyNotation, xsyPI, xsyQStr, xsySETag, xsySTag, xsyStr, xsyTag, xsyUndef, xsyWs, and xsyXmlDecl.
Referenced by TXmlTok::GetSymStr().
Definition at line 945 of file xml.cpp.
References Ch, ChN, TUInt::GetStr(), and TMem::Len().
Referenced by TMem::SaveXml().
Definition at line 968 of file xml.cpp.
References Ch, ChN, TUInt::GetStr(), and TChA::Len().
Referenced by TXmlTok::AddTokToChA(), THtmlDoc::GetTxtLnDoc(), THtmlDoc::SaveHtmlToXml(), TChA::SaveXml(), and TStr::SaveXml().
|
inline |
Definition at line 163 of file xml.h.
References TVec< TVal, TSizeTy >::IsIn().
Definition at line 175 of file xml.h.
References THash< TKey, TDat, THashFunc >::IsKeyGetDat().
Referenced by GetReference().
Definition at line 179 of file xml.h.
References THash< TKey, TDat, THashFunc >::IsKeyGetDat().
Referenced by GetPEReference().
|
static |
Definition at line 927 of file xml.cpp.
References ChN, and TChA::Len().
|
inlineprivate |
Definition at line 108 of file xml.h.
References TChA::Push().
Referenced by PutStr().
Definition at line 177 of file xml.h.
References THash< TKey, TDat, THashFunc >::AddDat().
Referenced by GetEntity().
Definition at line 181 of file xml.h.
References THash< TKey, TDat, THashFunc >::AddDat().
Referenced by GetEntity().
|
inlineprivate |
Definition at line 109 of file xml.h.
References TStr::Len(), and PutCh().
void TXmlLx::SkipWs | ( | ) |
Definition at line 752 of file xml.cpp.
References Ch, ChDef, GetCh(), and TXmlChDef::IsWs().
Referenced by GetSym(), and TXmlDoc::LoadTxt().
|
private |
Definition at line 270 of file xml.cpp.
References ChDef, TCh::CrCh, Fail, TXmlChDef::IsWs(), TChA::LastCh(), TChA::Len(), TCh::LfCh, TChA::Pop(), TChA::PutCh(), Spacing, TChA::Trunc(), TxtChA, xspIntact, xspPreserve, xspSeparate, and xspTruncate.
Referenced by GetSym().
TStrKdV TXmlLx::ArgNmValKdV |
Definition at line 142 of file xml.h.
Referenced by TXmlTok::GetTok().
|
private |
Definition at line 104 of file xml.h.
Referenced by GetAttList(), GetAttValue(), GetCDSect(), GetCh(), GetComment(), GetDocTypeDecl(), GetElement(), GetEncName(), GetEntity(), GetEntityValue(), GetEq(), GetName(), GetNotation(), GetPEReference(), GetPI(), GetPlainStrFromXmlStr(), GetPubidLiteral(), GetReference(), GetStalVal(), GetSym(), GetSystemLiteral(), GetUsAsciiStrFromXmlStr(), GetVersionNum(), GetWs(), GetXmlDecl(), GetXmlStrFromPlainMem(), GetXmlStrFromPlainStr(), and SkipWs().
|
staticprivate |
Definition at line 100 of file xml.h.
Referenced by GetAttList(), GetAttValue(), GetCDSect(), GetComment(), GetDocTypeDecl(), GetElement(), GetEntityValue(), GetName(), GetNotation(), GetPI(), GetPubidLiteral(), GetReference(), GetSym(), GetSystemLiteral(), GetWs(), SkipWs(), and ToNrSpacing().
|
private |
Definition at line 105 of file xml.h.
Referenced by GetCh(), GetUsAsciiStrFromXmlStr(), GetXmlStrFromPlainMem(), GetXmlStrFromPlainStr(), and IsTagNm().
|
private |
Definition at line 105 of file xml.h.
Referenced by EThrow(), GetCh(), and GetFPosStr().
|
private |
Definition at line 105 of file xml.h.
Referenced by EThrow(), GetCh(), and GetFPosStr().
|
private |
Definition at line 101 of file xml.h.
Referenced by EThrow(), and GetFPosStr().
|
private |
Definition at line 106 of file xml.h.
Referenced by GetSym(), and ToNrSpacing().
TXmlLxSym TXmlLx::Sym |
Definition at line 139 of file xml.h.
Referenced by GetSym(), GetSymStr(), TXmlTok::GetTok(), TStrUtil::GetXmlTagNmVal2(), TSnap::LoadDyNet(), TSnap::LoadDyNetGraphV(), TXmlDoc::LoadTxt(), TXmlDoc::LoadTxtElement(), TXmlDoc::LoadTxtMiscStar(), and TXmlDoc::SkipTopTag().
TStr TXmlLx::TagNm |
Definition at line 141 of file xml.h.
Referenced by GetDocTypeDecl(), GetEntity(), GetSym(), GetSymStr(), TXmlTok::GetTok(), TStrUtil::GetXmlTagNmVal(), TStrUtil::GetXmlTagNmVal2(), TStrUtil::GetXmlTagVal(), TSnap::LoadDyNet(), TSnap::LoadDyNetGraphV(), and TXmlDoc::LoadTxtElement().
TChA TXmlLx::TxtChA |
Definition at line 140 of file xml.h.
Referenced by GetAttList(), GetCDSect(), GetComment(), GetElement(), GetNotation(), GetPI(), GetSym(), GetSymStr(), TXmlTok::GetTok(), GetWs(), TStrUtil::GetXmlTagNmVal(), TStrUtil::GetXmlTagNmVal2(), TStrUtil::GetXmlTagVal(), and ToNrSpacing().