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

Function htmlFindOutputEncoder

ThirdParty/libxml2/vtklibxml2/HTMLtree.c:383–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381 ************************************************************************/
382
383static xmlCharEncodingHandler *
384htmlFindOutputEncoder(const char *encoding) {
385 xmlCharEncodingHandler *handler = NULL;
386
387 if (encoding != NULL) {
388 int res;
389
390 res = xmlOpenCharEncodingHandler(encoding, /* output */ 1,
391 &handler);
392 if (res != XML_ERR_OK)
393 htmlSaveErr(XML_SAVE_UNKNOWN_ENCODING, NULL, encoding);
394 } else {
395 /*
396 * Fallback to HTML when the encoding is unspecified
397 */
398 xmlOpenCharEncodingHandler("HTML", /* output */ 1, &handler);
399 }
400
401 return(handler);
402}
403
404/**
405 * htmlBufNodeDumpFormat:

Callers 5

htmlNodeDumpFileFormatFunction · 0.85
htmlDocDumpMemoryFormatFunction · 0.85
htmlDocDumpFunction · 0.85
htmlSaveFileFunction · 0.85
htmlSaveFileFormatFunction · 0.85

Calls 2

htmlSaveErrFunction · 0.85

Tested by

no test coverage detected