mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
libxml now grok Docbook-3.1.5 and Docbook-4.1.1 DTDs, this
popped out a couple of bugs and 3 speed issues, there is only on minor speed issue left. Assorted collection of user reported bugs and fixes: - doc/encoding.html: added encoding aliases doc - doc/xml.html: updates - encoding.[ch]: added EncodingAliases functions - entities.[ch] valid.[ch] debugXML.c: removed two serious bottleneck affecting large DTDs like Docbook - parser.[ch] xmllint.c: added a pedantic option, will be useful - SAX.c: redefinition of entities is reported in pedantic mode - testHTML.c: uninitialized warning from gcc - uri.c: fixed a couple of bugs - TODO: added issue raised by Michael Daniel
This commit is contained in:
@@ -133,15 +133,39 @@ struct _xmlCharEncodingHandler {
|
||||
#endif /* LIBXML_ICONV_ENABLED */
|
||||
};
|
||||
|
||||
/*
|
||||
* Interfaces for encoding handlers
|
||||
*/
|
||||
void xmlInitCharEncodingHandlers (void);
|
||||
void xmlCleanupCharEncodingHandlers (void);
|
||||
void xmlRegisterCharEncodingHandler (xmlCharEncodingHandlerPtr handler);
|
||||
xmlCharEncoding xmlDetectCharEncoding (const unsigned char* in,
|
||||
xmlCharEncodingHandlerPtr
|
||||
xmlGetCharEncodingHandler (xmlCharEncoding enc);
|
||||
xmlCharEncodingHandlerPtr
|
||||
xmlFindCharEncodingHandler (const char *name);
|
||||
|
||||
|
||||
/*
|
||||
* Interfaces for encoding names and aliases
|
||||
*/
|
||||
int xmlAddEncodingAlias (const char *name,
|
||||
const char *alias);
|
||||
int xmlDelEncodingAlias (const char *alias);
|
||||
const char *
|
||||
xmlGetEncodingAlias (const char *alias);
|
||||
void xmlCleanupEncodingAliases (void);
|
||||
xmlCharEncoding
|
||||
xmlParseCharEncoding (const char* name);
|
||||
const char*
|
||||
xmlGetCharEncodingName (xmlCharEncoding enc);
|
||||
|
||||
/*
|
||||
* Interfaces directly used by the parsers.
|
||||
*/
|
||||
xmlCharEncoding
|
||||
xmlDetectCharEncoding (const unsigned char* in,
|
||||
int len);
|
||||
xmlCharEncoding xmlParseCharEncoding (const char* name);
|
||||
const char* xmlGetCharEncodingName (xmlCharEncoding enc);
|
||||
xmlCharEncodingHandlerPtr xmlGetCharEncodingHandler(xmlCharEncoding enc);
|
||||
xmlCharEncodingHandlerPtr xmlFindCharEncodingHandler(const char *name);
|
||||
|
||||
int xmlCheckUTF8 (const unsigned char *utf);
|
||||
|
||||
int xmlCharEncOutFunc (xmlCharEncodingHandler *handler,
|
||||
|
Reference in New Issue
Block a user