diff --git a/expat/doc/reference.html b/expat/doc/reference.html index 1d422c7a..fda752f8 100644 --- a/expat/doc/reference.html +++ b/expat/doc/reference.html @@ -1712,12 +1712,17 @@ enum XML_FeatureEnum { XML_FEATURE_END = 0, XML_FEATURE_UNICODE, XML_FEATURE_UNICODE_WCHAR_T, - XML_FEATURE_DTD + XML_FEATURE_DTD, + XML_FEATURE_CONTEXT_BYTES, + XML_FEATURE_MIN_SIZE, + XML_FEATURE_SIZEOF_XML_CHAR, + XML_FEATURE_SIZEOF_XML_LCHAR }; typedef struct { enum XML_FeatureEnum feature; XML_LChar *name; + long int value; } XML_Feature;
The return value is an array of XML_Feature
,
terminated by a record with a feature
of
XML_FEATURE_END
and name
of NULL,
-identifying the feature-test macros Expat was compiled with. Since
-an application that requires this kind of information needs to
-determine the type of character the name
points to,
-records for the XML_UNICODE
and
-XML_UNICODE_WCHAR_T
features will be located at the
-beginning of the list, if they are present at all.
name
points to, records for the
+XML_FEATURE_SIZEOF_XML_CHAR
and
+XML_FEATURE_SIZEOF_XML_LCHAR
will be located at the
+beginning of the list, followed by XML_FEATURE_UNICODE
+and XML_FEATURE_UNICODE_WCHAR_T
, if they are present at
+all.
+
+Some features have an associated value. If there isn't an
+associated value, the value
field is set to 0. At this
+time, the following features have been defined to have values:
XML_FEATURE_SIZEOF_XML_CHAR
XML_Char
+ character.XML_FEATURE_SIZEOF_XML_LCHAR
XML_LChar
+ character.XML_FEATURE_CONTEXT_BYTES
XML_GetInputContext
.