| Top |
| GMimeHtmlEntityDecoder * | g_mime_html_entity_decoder_new () |
| gboolean | g_mime_html_entity_decoder_push () |
| const char * | g_mime_html_entity_decoder_get_value () |
| const char * | g_mime_html_entity_decoder_get_attribute_value () |
| void | g_mime_html_entity_decoder_reset () |
Push characters beginning with an ampersand until push() returns FALSE.
The rejected character remains unconsumed. Obtain the decoded value, then
reset the decoder before starting another reference. Attribute values apply
HTML's historical missing-semicolon rule using the next unconsumed scalar.
Returned strings are borrowed and invalidated by decoder mutation.
gboolean g_mime_html_entity_decoder_push (GMimeHtmlEntityDecoder *decoder,gunichar c);
Feeds a character reference, starting with '&'.
const char *
g_mime_html_entity_decoder_get_value (GMimeHtmlEntityDecoder *decoder);
const char * g_mime_html_entity_decoder_get_attribute_value (GMimeHtmlEntityDecoder *decoder,gunichar next);
Applies the character-reference rules for attribute values.
void
g_mime_html_entity_decoder_reset (GMimeHtmlEntityDecoder *decoder);
Clears the accumulated character reference and invalidates borrowed decoded values. The next character pushed must be an ampersand.