1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

parser: Implement xmlCtxtGetInputWindow

See #762.
This commit is contained in:
Nick Wellnhofer
2025-07-22 23:57:03 +02:00
parent 469c847f4d
commit 8689523ad9
3 changed files with 129 additions and 2 deletions

View File

@@ -111,7 +111,11 @@ struct _xmlParserInput {
const char *directory XML_DEPRECATED_MEMBER;
/* Base of the array to parse */
const xmlChar *base;
/* Current char being parsed */
/**
* @deprecated Use #xmlCtxtGetInputWindow
*
* Current char being parsed
*/
const xmlChar *cur;
/* end of the array to parse */
const xmlChar *end;
@@ -1949,6 +1953,12 @@ XMLPUBFUN int
int *line,
int *col,
unsigned long *bytePos);
XMLPUBFUN int
xmlCtxtGetInputWindow (xmlParserCtxt *ctxt,
int inputIndex,
const xmlChar **startOut,
int *sizeInOut,
int *offsetOut);
XMLPUBFUN void
xmlCtxtSetErrorHandler (xmlParserCtxt *ctxt,
xmlStructuredErrorFunc handler,