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

Function xmlStringDecodeEntities

ThirdParty/libxml2/vtklibxml2/parser.c:2860–2871  ·  view source on GitHub ↗

* xmlStringDecodeEntities: * @ctxt: the parser context * @str: the input string * @what: combination of XML_SUBSTITUTE_REF and XML_SUBSTITUTE_PEREF * @end: an end marker xmlChar, 0 if none * @end2: an end marker xmlChar, 0 if none * @end3: an end marker xmlChar, 0 if none * * DEPRECATED: Internal function, don't use. * * Returns A newly allocated string with the substitution done.

Source from the content-addressed store, hash-verified

2858 * must deallocate it !
2859 */
2860xmlChar *
2861xmlStringDecodeEntities(xmlParserCtxtPtr ctxt, const xmlChar *str,
2862 int what ATTRIBUTE_UNUSED,
2863 xmlChar end, xmlChar end2, xmlChar end3) {
2864 if ((ctxt == NULL) || (str == NULL))
2865 return(NULL);
2866
2867 if ((end != 0) || (end2 != 0) || (end3 != 0))
2868 return(NULL);
2869
2870 return(xmlExpandEntitiesInAttValue(ctxt, str, 0));
2871}
2872
2873/************************************************************************
2874 * *

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected