* 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 */
| 1144 | * Returns 0 in case of success, -1 otherwise |
| 1145 | */ |
| 1146 | int |
| 1147 | xmlSwitchEncodingName(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: |
no test coverage detected