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

Function xmlXPathIsNodeType

ThirdParty/libxml2/vtklibxml2/xpath.c:9324–9338  ·  view source on GitHub ↗

* xmlXPathIsNodeType: * @name: a name string * * Is the name given a NodeType one. * * [38] NodeType ::= 'comment' * | 'text' * | 'processing-instruction' * | 'node' * * Returns 1 if true 0 otherwise */

Source from the content-addressed store, hash-verified

9322 * Returns 1 if true 0 otherwise
9323 */
9324int
9325xmlXPathIsNodeType(const xmlChar *name) {
9326 if (name == NULL)
9327 return(0);
9328
9329 if (xmlStrEqual(name, BAD_CAST "node"))
9330 return(1);
9331 if (xmlStrEqual(name, BAD_CAST "text"))
9332 return(1);
9333 if (xmlStrEqual(name, BAD_CAST "comment"))
9334 return(1);
9335 if (xmlStrEqual(name, BAD_CAST "processing-instruction"))
9336 return(1);
9337 return(0);
9338}
9339
9340/**
9341 * xmlXPathCompFunctionCall:

Callers 1

xmlXPathCompPathExprFunction · 0.85

Calls 1

xmlStrEqualFunction · 0.85

Tested by

no test coverage detected