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

Function xmlSwitchToEncoding

ThirdParty/libxml2/vtklibxml2/parserInternals.c:1259–1265  ·  view source on GitHub ↗

* xmlSwitchToEncoding: * @ctxt: the parser context * @handler: the encoding handler * * Use encoding handler to decode input data. * * This function can be used to enforce the encoding of chunks passed * to xmlParseChunk. * * Returns 0 in case of success, -1 otherwise */

Source from the content-addressed store, hash-verified

1257 * Returns 0 in case of success, -1 otherwise
1258 */
1259int
1260xmlSwitchToEncoding(xmlParserCtxtPtr ctxt, xmlCharEncodingHandlerPtr handler)
1261{
1262 if (ctxt == NULL)
1263 return(-1);
1264 return(xmlSwitchInputEncoding(ctxt, ctxt->input, handler));
1265}
1266
1267/**
1268 * xmlDetectEncoding:

Callers

nothing calls this directly

Calls 1

xmlSwitchInputEncodingFunction · 0.85

Tested by

no test coverage detected