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

Function xmlXPathPopString

ThirdParty/libxml2/vtklibxml2/xpath.c:2174–2189  ·  view source on GitHub ↗

* xmlXPathPopString: * @ctxt: an XPath parser context * * Pops a string from the stack, handling conversion if needed. * Check error with #xmlXPathCheckError. * * Returns the string */

Source from the content-addressed store, hash-verified

2172 * Returns the string
2173 */
2174xmlChar *
2175xmlXPathPopString (xmlXPathParserContextPtr ctxt) {
2176 xmlXPathObjectPtr obj;
2177 xmlChar * ret;
2178
2179 obj = valuePop(ctxt);
2180 if (obj == NULL) {
2181 xmlXPathSetError(ctxt, XPATH_INVALID_OPERAND);
2182 return(NULL);
2183 }
2184 ret = xmlXPathCastToString(obj);
2185 if (ret == NULL)
2186 xmlXPathPErrMemory(ctxt);
2187 xmlXPathReleaseObject(ctxt->context, obj);
2188 return(ret);
2189}
2190
2191/**
2192 * xmlXPathPopNodeSet:

Callers

nothing calls this directly

Calls 4

valuePopFunction · 0.85
xmlXPathCastToStringFunction · 0.85
xmlXPathPErrMemoryFunction · 0.85
xmlXPathReleaseObjectFunction · 0.85

Tested by

no test coverage detected