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

Function htmlCreatePushParserCtxt

ThirdParty/libxml2/vtklibxml2/HTMLparser.c:5804–5825  ·  view source on GitHub ↗

* htmlCreatePushParserCtxt: * @sax: a SAX handler (optional) * @user_data: The user data returned on SAX callbacks (optional) * @chunk: a pointer to an array of chars (optional) * @size: number of chars in the array * @filename: only used for error reporting (optional) * @enc: encoding (deprecated, pass XML_CHAR_ENCODING_NONE) * * Create a parser context for using the HTML parser in

Source from the content-addressed store, hash-verified

5802 * failed.
5803 */
5804htmlParserCtxtPtr
5805htmlCreatePushParserCtxt(htmlSAXHandlerPtr sax, void *user_data,
5806 const char *chunk, int size, const char *filename,
5807 xmlCharEncoding enc) {
5808 htmlParserCtxtPtr ctxt;
5809 htmlParserInputPtr input;
5810 const char *encoding;
5811
5812 ctxt = htmlNewSAXParserCtxt(sax, user_data);
5813 if (ctxt == NULL)
5814 return(NULL);
5815
5816 encoding = xmlGetCharEncodingName(enc);
5817 input = xmlNewInputPush(ctxt, filename, chunk, size, encoding);
5818 if (input == NULL) {
5819 htmlFreeParserCtxt(ctxt);
5820 return(NULL);
5821 }
5822 inputPush(ctxt, input);
5823
5824 return(ctxt);
5825}
5826#endif /* LIBXML_PUSH_ENABLED */
5827
5828/**

Callers 3

parseFileFunction · 0.85
pushParseTestFunction · 0.85
pushBoundaryTestFunction · 0.85

Calls 5

htmlNewSAXParserCtxtFunction · 0.85
xmlGetCharEncodingNameFunction · 0.85
xmlNewInputPushFunction · 0.85
htmlFreeParserCtxtFunction · 0.85
inputPushFunction · 0.85

Tested by 2

pushParseTestFunction · 0.68
pushBoundaryTestFunction · 0.68