MCPcopy Create free account
hub / github.com/Kitware/VTK / htmlnamePop

Function htmlnamePop

ThirdParty/libxml2/vtklibxml2/HTMLparser.c:148–165  ·  view source on GitHub ↗

* htmlnamePop: * @ctxt: an HTML parser context * * Pops the top element name from the name stack * * Returns the name just removed */

Source from the content-addressed store, hash-verified

146 * Returns the name just removed
147 */
148static const xmlChar *
149htmlnamePop(htmlParserCtxtPtr ctxt)
150{
151 const xmlChar *ret;
152
153 if (ctxt->nameNr <= 0)
154 return (NULL);
155 ctxt->nameNr--;
156 if (ctxt->nameNr < 0)
157 return (NULL);
158 if (ctxt->nameNr > 0)
159 ctxt->name = ctxt->nameTab[ctxt->nameNr - 1];
160 else
161 ctxt->name = NULL;
162 ret = ctxt->nameTab[ctxt->nameNr];
163 ctxt->nameTab[ctxt->nameNr] = NULL;
164 return (ret);
165}
166
167/**
168 * htmlNodeInfoPush:

Callers 7

htmlAutoCloseOnCloseFunction · 0.85
htmlAutoCloseOnEndFunction · 0.85
htmlAutoCloseFunction · 0.85
htmlParseEndTagFunction · 0.85
htmlParseElementFunction · 0.85
htmlParseElementInternalFunction · 0.85
htmlParseTryOrFinishFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected