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

Function xmlCreatePushParserCtxt

ThirdParty/libxml2/vtklibxml2/parser.c:11725–11746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11723 */
11724
11725xmlParserCtxtPtr
11726xmlCreatePushParserCtxt(xmlSAXHandlerPtr sax, void *user_data,
11727 const char *chunk, int size, const char *filename) {
11728 xmlParserCtxtPtr ctxt;
11729 xmlParserInputPtr input;
11730
11731 ctxt = xmlNewSAXParserCtxt(sax, user_data);
11732 if (ctxt == NULL)
11733 return(NULL);
11734
11735 ctxt->options &= ~XML_PARSE_NODICT;
11736 ctxt->dictNames = 1;
11737
11738 input = xmlNewInputPush(ctxt, filename, chunk, size, NULL);
11739 if (input == NULL) {
11740 xmlFreeParserCtxt(ctxt);
11741 return(NULL);
11742 }
11743 inputPush(ctxt, input);
11744
11745 return(ctxt);
11746}
11747#endif /* LIBXML_PUSH_ENABLED */
11748
11749/**

Callers 7

parseFileFunction · 0.85
xmlNewTextReaderFunction · 0.85
xmlTextReaderSetupFunction · 0.85
xmlNewTextWriterDocFunction · 0.85
xmlNewTextWriterTreeFunction · 0.85
pushParseTestFunction · 0.85
pushBoundaryTestFunction · 0.85

Calls 4

xmlNewSAXParserCtxtFunction · 0.85
xmlNewInputPushFunction · 0.85
xmlFreeParserCtxtFunction · 0.85
inputPushFunction · 0.85

Tested by 2

pushParseTestFunction · 0.68
pushBoundaryTestFunction · 0.68