Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wine-mirror
GitHub Repository: wine-mirror/wine
Path: blob/master/libs/xml2/include/private/parser.h
4394 views
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
29
XML_HIDDEN void
30
xmlErrMemory(xmlParserCtxtPtr ctxt, const char *extra);
31
XML_HIDDEN void
32
xmlFatalErr(xmlParserCtxtPtr ctxt, xmlParserErrors error, const char *info);
33
XML_HIDDEN void LIBXML_ATTR_FORMAT(3,0)
34
xmlWarningMsg(xmlParserCtxtPtr ctxt, xmlParserErrors error,
35
const char *msg, const xmlChar *str1, const xmlChar *str2);
36
XML_HIDDEN void
37
__xmlErrEncoding(xmlParserCtxtPtr ctxt, xmlParserErrors xmlerr,
38
const char *msg, const xmlChar *str1,
39
const xmlChar *str2) LIBXML_ATTR_FORMAT(3,0);
40
XML_HIDDEN void
41
xmlHaltParser(xmlParserCtxtPtr ctxt);
42
XML_HIDDEN int
43
xmlParserGrow(xmlParserCtxtPtr ctxt);
44
XML_HIDDEN void
45
xmlParserShrink(xmlParserCtxtPtr ctxt);
46
47
XML_HIDDEN void
48
xmlDetectEncoding(xmlParserCtxtPtr ctxt);
49
XML_HIDDEN void
50
xmlSetDeclaredEncoding(xmlParserCtxtPtr ctxt, xmlChar *encoding);
51
XML_HIDDEN const xmlChar *
52
xmlGetActualEncoding(xmlParserCtxtPtr ctxt);
53
54
XML_HIDDEN xmlParserNsData *
55
xmlParserNsCreate(void);
56
XML_HIDDEN void
57
xmlParserNsFree(xmlParserNsData *nsdb);
58
/*
59
* These functions allow SAX handlers to attach extra data to namespaces
60
* efficiently and should be made public.
61
*/
62
XML_HIDDEN int
63
xmlParserNsUpdateSax(xmlParserCtxtPtr ctxt, const xmlChar *prefix,
64
void *saxData);
65
XML_HIDDEN void *
66
xmlParserNsLookupSax(xmlParserCtxtPtr ctxt, const xmlChar *prefix);
67
68
#endif /* XML_PARSER_H_PRIVATE__ */
69
70