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

Function xmlNewIOInputStream

ThirdParty/libxml2/vtklibxml2/parserInternals.c:1840–1850  ·  view source on GitHub ↗

* xmlNewIOInputStream: * @ctxt: an XML parser context * @buf: an input buffer * @enc: the charset encoding if known * * Create a new input stream structure encapsulating the @input into * a stream suitable for the parser. * * Returns the new input stream or NULL */

Source from the content-addressed store, hash-verified

1838 * Returns the new input stream or NULL
1839 */
1840xmlParserInputPtr
1841xmlNewIOInputStream(xmlParserCtxtPtr ctxt, xmlParserInputBufferPtr buf,
1842 xmlCharEncoding enc) {
1843 const char *encoding;
1844
1845 if (buf == NULL)
1846 return(NULL);
1847
1848 encoding = xmlGetCharEncodingName(enc);
1849 return(xmlNewInputInternal(ctxt, buf, NULL, encoding));
1850}
1851
1852/**
1853 * xmlNewEntityInputStream:

Callers 2

xmlSchemaValidateStreamFunction · 0.85
xmlIOParseDTDFunction · 0.85

Calls 2

xmlGetCharEncodingNameFunction · 0.85
xmlNewInputInternalFunction · 0.85

Tested by

no test coverage detected