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

Function xmlParserFindNodeInfo

ThirdParty/libxml2/vtklibxml2/parserInternals.c:2629–2643  ·  view source on GitHub ↗

* xmlParserFindNodeInfo: * @ctx: an XML parser context * @node: an XML node within the tree * * DEPRECATED: Don't use. * * Find the parser node info struct for a given node * * Returns an xmlParserNodeInfo block pointer or NULL */

Source from the content-addressed store, hash-verified

2627 * Returns an xmlParserNodeInfo block pointer or NULL
2628 */
2629const xmlParserNodeInfo *
2630xmlParserFindNodeInfo(xmlParserCtxtPtr ctx, xmlNodePtr node)
2631{
2632 unsigned long pos;
2633
2634 if ((ctx == NULL) || (node == NULL))
2635 return (NULL);
2636 /* Find position where node should be at */
2637 pos = xmlParserFindNodeInfoIndex(&ctx->node_seq, node);
2638 if (pos < ctx->node_seq.length
2639 && ctx->node_seq.buffer[pos].node == node)
2640 return &ctx->node_seq.buffer[pos];
2641 else
2642 return NULL;
2643}
2644
2645
2646/**

Callers 1

xmlParseElementEndFunction · 0.85

Calls 1

Tested by

no test coverage detected