* 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
| 2830 | * must deallocate it ! |
| 2831 | */ |
| 2832 | xmlChar * |
| 2833 | xmlStringLenDecodeEntities(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: |
nothing calls this directly
no test coverage detected