decode_xml_unicode_char
Defined in header: <orcus/sax_parser_base.hpp>
-
std::string orcus::sax::decode_xml_unicode_char(const char *p, size_t n)
Given an encoded unicode value (such as #20A9), return a UTF-8 string that corresponds with the unicode value. The value shouldn’t include the leading ‘&’ and trailing ‘;’.
- Parameters:
p – pointer to the first character of encoded name
n – length of encoded name
- Returns:
string that corresponds with the encoded value. An empty string is returned if decoding fails.