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

Function xmlSwitchEncodingName

ThirdParty/libxml2/vtklibxml2/parserInternals.c:1146–1152  ·  view source on GitHub ↗

* xmlSwitchEncodingName: * @ctxt: the parser context * @encoding: the encoding name * * Use specified encoding to decode input data. This overrides the * encoding found in the XML declaration. * * This function can also be used to override the encoding of chunks * passed to xmlParseChunk. * * Available since 2.13.0. * * Returns 0 in case of success, -1 otherwise */

Source from the content-addressed store, hash-verified

1144 * Returns 0 in case of success, -1 otherwise
1145 */
1146int
1147xmlSwitchEncodingName(xmlParserCtxtPtr ctxt, const char *encoding) {
1148 if (ctxt == NULL)
1149 return(-1);
1150
1151 return(xmlSwitchInputEncodingName(ctxt, ctxt->input, encoding));
1152}
1153
1154/**
1155 * xmlSwitchInputEncoding:

Callers 4

htmlCurrentCharFunction · 0.85
xmlTextReaderSetupFunction · 0.85
xmlCheckHTTPInputFunction · 0.85
xmlParseInNodeContextFunction · 0.85

Calls 1

Tested by

no test coverage detected