NCBI C++ ToolKit
|
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
struct | XmlTable |
Macros | |
#define | THIS_FILE "xmlmisc.cpp" |
#define | XML_START_TAG 1 |
#define | XML_END_TAG 2 |
#define | XML_ATTRIBUTE 3 |
#define | XML_CONTENT 4 |
Functions | |
static char * | DecodeXml (char *str) |
static char * | TrimSpacesAroundString (char *str) |
static void | TokenizeXmlLine (ValNodePtr *headp, ValNodePtr *tailp, char *str) |
static ValNodePtr | TokenizeXmlString (char *str) |
static XmlObjPtr | ProcessAttribute (char *str) |
static XmlObjPtr | ProcessStartTag (ValNodePtr *curr, XmlObjPtr parent, const Char *name) |
static XmlObjPtr | SetSuccessors (XmlObjPtr xop, XmlObjPtr prev, short level) |
static XmlObjPtr | ParseXmlTokens (ValNodePtr head) |
XmlObjPtr | FreeXmlObject (XmlObjPtr xop) |
XmlObjPtr | ParseXmlString (const Char *str) |
static int | VisitXmlNodeProc (XmlObjPtr xop, XmlObjPtr parent, short level, void *userdata, VisitXmlNodeFunc callback, char *nodeFilter, char *parentFilter, char *attrTagFilter, char *attrValFilter, short maxDepth) |
int | VisitXmlNodes (XmlObjPtr xop, void *userdata, VisitXmlNodeFunc callback, char *nodeFilter, char *parentFilter, char *attrTagFilter, char *attrValFilter, short maxDepth) |
Variables | |
static const XmlTable | xmlcodes [] |
#define THIS_FILE "xmlmisc.cpp" |
Definition at line 43 of file xmlmisc.cpp.
#define XML_ATTRIBUTE 3 |
Definition at line 47 of file xmlmisc.cpp.
#define XML_CONTENT 4 |
Definition at line 48 of file xmlmisc.cpp.
#define XML_END_TAG 2 |
Definition at line 46 of file xmlmisc.cpp.
#define XML_START_TAG 1 |
Definition at line 45 of file xmlmisc.cpp.
|
static |
Definition at line 69 of file xmlmisc.cpp.
References XmlTable::code, i, len, XmlTable::len, XmlTable::letter, str(), StringEquNI(), StringHasNoText(), and xmlcodes.
Referenced by ProcessAttribute(), and TokenizeXmlLine().
Definition at line 487 of file xmlmisc.cpp.
References XmlObj::attributes, XmlObj::children, XmlObj::contents, FreeXmlObject(), MemFree(), XmlObj::name, next(), and XmlObj::next.
Referenced by FreeXmlObject(), and ParseXmlString().
Definition at line 518 of file xmlmisc.cpp.
References XmlObj::children, FreeXmlObject(), head, MemFree(), ParseXmlTokens(), str(), StringHasNoText(), StringSave, tmp, TokenizeXmlString(), and ValNodeFreeData().
|
static |
Definition at line 468 of file xmlmisc.cpp.
References head, ProcessStartTag(), and SetSuccessors().
Referenced by ParseXmlString().
Definition at line 317 of file xmlmisc.cpp.
References XmlObj::contents, DecodeXml(), XmlObj::name, str(), StringHasNoText(), StringSave, and TrimSpacesAroundString().
Referenced by ProcessStartTag().
Definition at line 374 of file xmlmisc.cpp.
References ValNode::choice, XmlObj::contents, ValNode::data, XmlObj::name, ValNode::next, XmlObj::next, ProcessAttribute(), str(), StringHasNoText(), StringSave, TrimSpacesAroundString(), XML_ATTRIBUTE, XML_CONTENT, XML_END_TAG, and XML_START_TAG.
Referenced by ParseXmlTokens().
Definition at line 448 of file xmlmisc.cpp.
References XmlObj::children, XmlObj::level, prev(), and tmp.
Referenced by ParseXmlTokens().
|
static |
Definition at line 154 of file xmlmisc.cpp.
References DecodeXml(), str(), StringHasNoText(), TrimSpacesAroundString(), ValNodeCopyStrEx(), XML_ATTRIBUTE, XML_CONTENT, XML_END_TAG, and XML_START_TAG.
Referenced by TokenizeXmlString().
|
static |
Definition at line 303 of file xmlmisc.cpp.
References head, str(), StringHasNoText(), and TokenizeXmlLine().
Referenced by ParseXmlString().
|
static |
Definition at line 113 of file xmlmisc.cpp.
References str().
Referenced by ProcessAttribute(), ProcessStartTag(), and TokenizeXmlLine().
|
static |
Definition at line 548 of file xmlmisc.cpp.
References XmlObj::attributes, XmlObj::children, NStr::CompareNocase(), XmlObj::contents, XmlObj::name, XmlObj::next, StringDoesHaveText(), StringHasNoText(), and tmp.
Referenced by VisitXmlNodes().
int VisitXmlNodes | ( | XmlObjPtr | xop, |
void * | userdata, | ||
VisitXmlNodeFunc | callback, | ||
char * | nodeFilter, | ||
char * | parentFilter, | ||
char * | attrTagFilter, | ||
char * | attrValFilter, | ||
short | maxDepth | ||
) |
Definition at line 625 of file xmlmisc.cpp.
References max(), and VisitXmlNodeProc().
Definition at line 60 of file xmlmisc.cpp.
Referenced by DecodeXml().