mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
encoding: Deprecate xmlByteConsumed
This was only used by Chromium/WebKit to detect whether xmlParseContent
really succeeded. It's a horrible, overcomplicated hack.
See 8c5848bd
and #767.
This commit is contained in:
@ -1905,6 +1905,8 @@ xmlCharEncCloseFunc(xmlCharEncodingHandler *handler) {
|
|||||||
* xmlByteConsumed:
|
* xmlByteConsumed:
|
||||||
* @ctxt: an XML parser context
|
* @ctxt: an XML parser context
|
||||||
*
|
*
|
||||||
|
* DEPRECATED: Don't use.
|
||||||
|
*
|
||||||
* This function provides the current index of the parser relative
|
* This function provides the current index of the parser relative
|
||||||
* to the start of the current entity. This function is computed in
|
* to the start of the current entity. This function is computed in
|
||||||
* bytes from the beginning starting at zero and finishing at the
|
* bytes from the beginning starting at zero and finishing at the
|
||||||
|
@ -1347,9 +1347,7 @@ XMLPUBFUN xmlParserInputPtr
|
|||||||
const char *ID,
|
const char *ID,
|
||||||
xmlParserCtxtPtr ctxt);
|
xmlParserCtxtPtr ctxt);
|
||||||
|
|
||||||
/*
|
XML_DEPRECATED
|
||||||
* Index lookup, actually implemented in the encoding module
|
|
||||||
*/
|
|
||||||
XMLPUBFUN long
|
XMLPUBFUN long
|
||||||
xmlByteConsumed (xmlParserCtxtPtr ctxt);
|
xmlByteConsumed (xmlParserCtxtPtr ctxt);
|
||||||
|
|
||||||
|
@ -299,6 +299,7 @@ deprecated_funcs = {
|
|||||||
'namePush': True,
|
'namePush': True,
|
||||||
'nodePop': True,
|
'nodePop': True,
|
||||||
'nodePush': True,
|
'nodePush': True,
|
||||||
|
'xmlByteConsumed': True,
|
||||||
'xmlCheckFilename': True,
|
'xmlCheckFilename': True,
|
||||||
'xmlCheckLanguageID': True,
|
'xmlCheckLanguageID': True,
|
||||||
'xmlCleanupCharEncodingHandlers': True,
|
'xmlCleanupCharEncodingHandlers': True,
|
||||||
|
Reference in New Issue
Block a user