1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-26 00:37:43 +03:00

parser: Consolidate scanning of XML Names

Use new productions by default.

Fixes #194.
Fixes #364.
See #707.
This commit is contained in:
Nick Wellnhofer
2025-05-18 01:52:38 +02:00
parent 657254a87f
commit 7008740a96
6 changed files with 268 additions and 999 deletions

View File

@@ -55,6 +55,13 @@ struct _xmlAttrHashBucket {
int index;
};
#define XML_SCAN_NC 1
#define XML_SCAN_NMTOKEN 2
#define XML_SCAN_OLD10 4
XML_HIDDEN const xmlChar *
xmlScanName(const xmlChar *buf, size_t maxSize, int flags);
XML_HIDDEN void
xmlCtxtVErr(xmlParserCtxt *ctxt, xmlNode *node, xmlErrorDomain domain,
xmlParserErrors code, xmlErrorLevel level,