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

parser: Support custom charset conversion implementations

Implement xmlCtxtSetCharEncConvImpl. I agree that the name is terrible.
This commit is contained in:
Nick Wellnhofer
2024-06-28 00:34:52 +02:00
parent c59c24494d
commit 221df37529
5 changed files with 140 additions and 71 deletions

View File

@@ -452,6 +452,9 @@ struct _xmlParserCtxt {
xmlResourceLoader resourceLoader XML_DEPRECATED_MEMBER;
void *resourceCtxt XML_DEPRECATED_MEMBER;
xmlCharEncConvImpl convImpl XML_DEPRECATED_MEMBER;
void *convCtxt XML_DEPRECATED_MEMBER;
};
/**
@@ -1438,6 +1441,10 @@ XMLPUBFUN void
xmlCtxtSetResourceLoader(xmlParserCtxtPtr ctxt,
xmlResourceLoader loader,
void *vctxt);
XMLPUBFUN void
xmlCtxtSetCharEncConvImpl(xmlParserCtxtPtr ctxt,
xmlCharEncConvImpl impl,
void *vctxt);
XMLPUBFUN void
xmlCtxtSetMaxAmplification(xmlParserCtxtPtr ctxt,
unsigned maxAmpl);