This saves 3 kbytes from stripped libvcccore here + speedup.
We can save another 1kbyte by removing the redumdant & and ; from the
table, but I am too lazy to update the algorithm accordingly.
return strdup( psz_enc );
}
-static struct xml_entity_s
+static const struct xml_entity_s
{
- const char *psz_entity;
- size_t i_length;
- const char *psz_char;
+ char psz_entity[9];
+ uint8_t i_length;
+ char psz_char[4];
} p_xml_entities[] = {
/* Important: this list has to be in alphabetical order (psz_entity-wise) */
{ "Æ", 7, "Æ" },