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

Function xmlStringLenDecodeEntities

ThirdParty/libxml2/vtklibxml2/parser.c:2832–2844  ·  view source on GitHub ↗

* xmlStringLenDecodeEntities: * @ctxt: the parser context * @str: the input string * @len: the string length * @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 strin

Source from the content-addressed store, hash-verified

2830 * must deallocate it !
2831 */
2832xmlChar *
2833xmlStringLenDecodeEntities(xmlParserCtxtPtr ctxt, const xmlChar *str, int len,
2834 int what ATTRIBUTE_UNUSED,
2835 xmlChar end, xmlChar end2, xmlChar end3) {
2836 if ((ctxt == NULL) || (str == NULL) || (len < 0))
2837 return(NULL);
2838
2839 if ((str[len] != 0) ||
2840 (end != 0) || (end2 != 0) || (end3 != 0))
2841 return(NULL);
2842
2843 return(xmlExpandEntitiesInAttValue(ctxt, str, 0));
2844}
2845
2846/**
2847 * xmlStringDecodeEntities:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected