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

Function htmlCtxtReadIO

ThirdParty/libxml2/vtklibxml2/HTMLparser.c:6688–6705  ·  view source on GitHub ↗

* htmlCtxtReadIO: * @ctxt: an HTML parser context * @ioread: an I/O read function * @ioclose: an I/O close function * @ioctx: an I/O handler * @URL: the base URL to use for the document * @encoding: the document encoding, or NULL * @options: a combination of htmlParserOption(s) * * Parse an HTML document from I/O functions and source and build a tree. * * See xmlNewInputIO and ht

Source from the content-addressed store, hash-verified

6686 * Returns the resulting document tree
6687 */
6688htmlDocPtr
6689htmlCtxtReadIO(htmlParserCtxtPtr ctxt, xmlInputReadCallback ioread,
6690 xmlInputCloseCallback ioclose, void *ioctx,
6691 const char *URL,
6692 const char *encoding, int options)
6693{
6694 xmlParserInputPtr input;
6695
6696 if (ctxt == NULL)
6697 return (NULL);
6698
6699 htmlCtxtReset(ctxt);
6700 htmlCtxtUseOptions(ctxt, options);
6701
6702 input = xmlNewInputIO(ctxt, URL, ioread, ioclose, ioctx, encoding, 0);
6703
6704 return(htmlCtxtParseDocument(ctxt, input));
6705}
6706
6707#endif /* LIBXML_HTML_ENABLED */

Callers

nothing calls this directly

Calls 4

htmlCtxtResetFunction · 0.85
htmlCtxtUseOptionsFunction · 0.85
xmlNewInputIOFunction · 0.85
htmlCtxtParseDocumentFunction · 0.85

Tested by

no test coverage detected