diff options
author | fdrake <fdrake> | 2002-08-29 04:54:04 +0000 |
---|---|---|
committer | fdrake <fdrake> | 2002-08-29 04:54:04 +0000 |
commit | 94b209d1db0006ed08bd9abdd55f53a1b4d971d0 (patch) | |
tree | 4dbdb44ef7101ea9c625c873dae5840612abde08 /doc | |
parent | e9e76454e64870e42861101f20a27014e84df3ec (diff) | |
download | libexpat-94b209d1db0006ed08bd9abdd55f53a1b4d971d0.tar.gz |
Revise the XML_GetFeatureList() function signature so that we maintain the
behavior that all strings returned from Expat are affected by the XML_UNICODE
and XML_UNICODE_WCHAR_T feature-test macros, and ensure that an application
that needs to determine what type of character data is returned can do so
with reasonable ease.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/reference.html | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/doc/reference.html b/doc/reference.html index 7d1d009..1cef79b 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -1703,20 +1703,38 @@ particular parts of the Expat API are available. </div> <pre class="fcndec" id="XML_GetFeatureList"> -const char ** +const XML_Feature * XML_GetFeatureList(); </pre> +<pre class="signature"> +enum XML_FeatureEnum { + XML_FEATURE_END = 0, + XML_FEATURE_UNICODE, + XML_FEATURE_UNICODE_WCHAR_T, + XML_FEATURE_DTD +}; + +typedef struct { + enum XML_FeatureEnum feature; + XML_Char *name; +} XML_Feature; +</pre> <div class="fcndef"> -<p>Returns a list of "feature" identifiers that provide details on how +<p>Returns a list of "feature" records, providing details on how Expat was configured at compile time. Most applications should not need to worry about this, but this information is otherwise not available from Expat. This function allows code that does need to check these features to do so at runtime.</p> -<p>The return value is an array of strings, terminated by NULL, -identifying the feature-test macros Expat was compiled with. Common -features which may be found in this list include -<code>"XML_DTD"</code> and <code>"XML_UNICODE"</code>.</p> +<p>The return value is an array of <code>XML_Feature</code>, +terminated by a record with a <code>feature</code> of +<code>XML_FEATURE_END</code> and <code>name</code> 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 <code>name</code> points to, +records for the <code>XML_UNICODE</code> and +<code>XML_UNICODE_WCHAR_T</code> features will be located at the +beginning of the list, if they are present at all.</p> </div> <hr /> |