VirtualBox

source: vbox/trunk/src/libs/libxml2-2.12.6/include/private/parser.h@ 104377

Last change on this file since 104377 was 104377, checked in by vboxsync, 12 months ago

Adding proper svn:sync tags for libxml2-2.12.6. ​bugref:10640

File size: 2.1 KB
Line 
1#ifndef XML_PARSER_H_PRIVATE__
2#define XML_PARSER_H_PRIVATE__
3
4#include <libxml/parser.h>
5#include <libxml/xmlversion.h>
6
7/**
8 * XML_VCTXT_DTD_VALIDATED:
9 *
10 * Set after xmlValidateDtdFinal was called.
11 */
12#define XML_VCTXT_DTD_VALIDATED (1u << 0)
13/**
14 * XML_VCTXT_USE_PCTXT:
15 *
16 * Set if the validation context is part of a parser context.
17 */
18#define XML_VCTXT_USE_PCTXT (1u << 1)
19
20#define XML_INPUT_HAS_ENCODING (1u << 0)
21#define XML_INPUT_AUTO_ENCODING (7u << 1)
22#define XML_INPUT_AUTO_UTF8 (1u << 1)
23#define XML_INPUT_AUTO_UTF16LE (2u << 1)
24#define XML_INPUT_AUTO_UTF16BE (3u << 1)
25#define XML_INPUT_AUTO_OTHER (4u << 1)
26#define XML_INPUT_USES_ENC_DECL (1u << 4)
27#define XML_INPUT_ENCODING_ERROR (1u << 5)
28
29XML_HIDDEN void
30xmlErrMemory(xmlParserCtxtPtr ctxt, const char *extra);
31XML_HIDDEN void
32xmlFatalErr(xmlParserCtxtPtr ctxt, xmlParserErrors error, const char *info);
33XML_HIDDEN void LIBXML_ATTR_FORMAT(3,0)
34xmlWarningMsg(xmlParserCtxtPtr ctxt, xmlParserErrors error,
35 const char *msg, const xmlChar *str1, const xmlChar *str2);
36XML_HIDDEN void
37__xmlErrEncoding(xmlParserCtxtPtr ctxt, xmlParserErrors xmlerr,
38 const char *msg, const xmlChar *str1,
39 const xmlChar *str2) LIBXML_ATTR_FORMAT(3,0);
40XML_HIDDEN void
41xmlHaltParser(xmlParserCtxtPtr ctxt);
42XML_HIDDEN int
43xmlParserGrow(xmlParserCtxtPtr ctxt);
44XML_HIDDEN void
45xmlParserShrink(xmlParserCtxtPtr ctxt);
46
47XML_HIDDEN void
48xmlDetectEncoding(xmlParserCtxtPtr ctxt);
49XML_HIDDEN void
50xmlSetDeclaredEncoding(xmlParserCtxtPtr ctxt, xmlChar *encoding);
51XML_HIDDEN const xmlChar *
52xmlGetActualEncoding(xmlParserCtxtPtr ctxt);
53
54XML_HIDDEN xmlParserNsData *
55xmlParserNsCreate(void);
56XML_HIDDEN void
57xmlParserNsFree(xmlParserNsData *nsdb);
58/*
59 * These functions allow SAX handlers to attach extra data to namespaces
60 * efficiently and should be made public.
61 */
62XML_HIDDEN int
63xmlParserNsUpdateSax(xmlParserCtxtPtr ctxt, const xmlChar *prefix,
64 void *saxData);
65XML_HIDDEN void *
66xmlParserNsLookupSax(xmlParserCtxtPtr ctxt, const xmlChar *prefix);
67
68#endif /* XML_PARSER_H_PRIVATE__ */
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette