decode_xml_encoded_char

Defined in header: <orcus/sax_parser_base.hpp>

char orcus::sax::decode_xml_encoded_char(const char *p, size_t n)

Given an encoded name (such as ‘quot’ and ‘amp’), return a single character that corresponds with the name. The name shouldn’t include the leading ‘&’ and trailing ‘;’.

Parameters:
  • p – pointer to the first character of encoded name

  • n – length of encoded name

Returns:

single character that corresponds with the encoded name. ‘\0’ is returned if decoding fails.