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

Function xmlStreamWantsAnyNode

ThirdParty/libxml2/vtklibxml2/pattern.c:2235–2246  ·  view source on GitHub ↗

* xmlStreamWantsAnyNode: * @streamCtxt: the stream context * * Query if the streaming pattern additionally needs to be fed with * text-, cdata-section-, comment- and processing-instruction-nodes. * If the result is 0 then only element-nodes and attribute-nodes * need to be pushed. * * Returns: 1 in case of need of nodes of the above described types, * 0 otherwise. -1 on API error

Source from the content-addressed store, hash-verified

2233 * 0 otherwise. -1 on API errors.
2234 */
2235int
2236xmlStreamWantsAnyNode(xmlStreamCtxtPtr streamCtxt)
2237{
2238 if (streamCtxt == NULL)
2239 return(-1);
2240 while (streamCtxt != NULL) {
2241 if (streamCtxt->comp->flags & XML_STREAM_FINAL_IS_ANY_NODE)
2242 return(1);
2243 streamCtxt = streamCtxt->next;
2244 }
2245 return(0);
2246}
2247
2248/************************************************************************
2249 * *

Callers 1

xmlXPathRunStreamEvalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected