Skip to main content

xmlStringDecodeEntities

Function xmlStringDecodeEntities 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn xmlStringDecodeEntities( ctxt: *mut _xmlParserCtxt, str: *const xmlChar, what: c_int, end: xmlChar, end2: xmlChar, end3: xmlChar, ) -> *mut xmlChar
Expand description

Expand general entity references in a NUL-terminated string (upstream parser.c xmlStringDecodeEntities, the macro-less variant).

§UPSTREAM-PARITY

xmlChar *xmlStringDecodeEntities(xmlParserCtxt *ctxt,
                                 const xmlChar *str, int what,
                                 xmlChar end, xmlChar end2,
                                 xmlChar end3);

Returns NULL when ctxt/str is NULL or any end marker is non-zero (the git-version contract). what is ignored, matching upstream where it is marked ATTRIBUTE_UNUSED.

§SAFETY

  • ctxt must be a valid xmlParserCtxt* or NULL.
  • str must be a valid NUL-terminated string.