lxml 6.0.0__cp311-cp311-manylinux_2_31_armv7l.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lxml/ElementInclude.py +244 -0
- lxml/__init__.py +22 -0
- lxml/_elementpath.cpython-311-arm-linux-gnueabihf.so +0 -0
- lxml/_elementpath.py +343 -0
- lxml/apihelpers.pxi +1801 -0
- lxml/builder.cpython-311-arm-linux-gnueabihf.so +0 -0
- lxml/builder.py +243 -0
- lxml/classlookup.pxi +580 -0
- lxml/cleanup.pxi +215 -0
- lxml/cssselect.py +101 -0
- lxml/debug.pxi +36 -0
- lxml/docloader.pxi +178 -0
- lxml/doctestcompare.py +488 -0
- lxml/dtd.pxi +479 -0
- lxml/etree.cpython-311-arm-linux-gnueabihf.so +0 -0
- lxml/etree.h +244 -0
- lxml/etree.pyx +3853 -0
- lxml/etree_api.h +204 -0
- lxml/extensions.pxi +830 -0
- lxml/html/ElementSoup.py +10 -0
- lxml/html/__init__.py +1927 -0
- lxml/html/_diffcommand.py +86 -0
- lxml/html/_difflib.cpython-311-arm-linux-gnueabihf.so +0 -0
- lxml/html/_difflib.py +2106 -0
- lxml/html/_html5builder.py +100 -0
- lxml/html/_setmixin.py +56 -0
- lxml/html/builder.py +173 -0
- lxml/html/clean.py +21 -0
- lxml/html/defs.py +135 -0
- lxml/html/diff.cpython-311-arm-linux-gnueabihf.so +0 -0
- lxml/html/diff.py +972 -0
- lxml/html/formfill.py +299 -0
- lxml/html/html5parser.py +260 -0
- lxml/html/soupparser.py +314 -0
- lxml/html/usedoctest.py +13 -0
- lxml/includes/__init__.pxd +0 -0
- lxml/includes/__init__.py +0 -0
- lxml/includes/c14n.pxd +25 -0
- lxml/includes/config.pxd +3 -0
- lxml/includes/dtdvalid.pxd +18 -0
- lxml/includes/etree_defs.h +379 -0
- lxml/includes/etreepublic.pxd +237 -0
- lxml/includes/extlibs/__init__.py +0 -0
- lxml/includes/extlibs/libcharset.h +45 -0
- lxml/includes/extlibs/localcharset.h +137 -0
- lxml/includes/extlibs/zconf.h +543 -0
- lxml/includes/extlibs/zlib.h +1938 -0
- lxml/includes/htmlparser.pxd +56 -0
- lxml/includes/libexslt/__init__.py +0 -0
- lxml/includes/libexslt/exslt.h +108 -0
- lxml/includes/libexslt/exsltconfig.h +70 -0
- lxml/includes/libexslt/exsltexports.h +63 -0
- lxml/includes/libxml/HTMLparser.h +339 -0
- lxml/includes/libxml/HTMLtree.h +148 -0
- lxml/includes/libxml/SAX.h +18 -0
- lxml/includes/libxml/SAX2.h +170 -0
- lxml/includes/libxml/__init__.py +0 -0
- lxml/includes/libxml/c14n.h +115 -0
- lxml/includes/libxml/catalog.h +183 -0
- lxml/includes/libxml/chvalid.h +230 -0
- lxml/includes/libxml/debugXML.h +79 -0
- lxml/includes/libxml/dict.h +82 -0
- lxml/includes/libxml/encoding.h +307 -0
- lxml/includes/libxml/entities.h +147 -0
- lxml/includes/libxml/globals.h +25 -0
- lxml/includes/libxml/hash.h +251 -0
- lxml/includes/libxml/list.h +137 -0
- lxml/includes/libxml/nanoftp.h +16 -0
- lxml/includes/libxml/nanohttp.h +98 -0
- lxml/includes/libxml/parser.h +1633 -0
- lxml/includes/libxml/parserInternals.h +591 -0
- lxml/includes/libxml/relaxng.h +224 -0
- lxml/includes/libxml/schemasInternals.h +959 -0
- lxml/includes/libxml/schematron.h +143 -0
- lxml/includes/libxml/threads.h +81 -0
- lxml/includes/libxml/tree.h +1326 -0
- lxml/includes/libxml/uri.h +106 -0
- lxml/includes/libxml/valid.h +485 -0
- lxml/includes/libxml/xinclude.h +141 -0
- lxml/includes/libxml/xlink.h +193 -0
- lxml/includes/libxml/xmlIO.h +419 -0
- lxml/includes/libxml/xmlautomata.h +163 -0
- lxml/includes/libxml/xmlerror.h +962 -0
- lxml/includes/libxml/xmlexports.h +96 -0
- lxml/includes/libxml/xmlmemory.h +188 -0
- lxml/includes/libxml/xmlmodule.h +61 -0
- lxml/includes/libxml/xmlreader.h +444 -0
- lxml/includes/libxml/xmlregexp.h +116 -0
- lxml/includes/libxml/xmlsave.h +111 -0
- lxml/includes/libxml/xmlschemas.h +254 -0
- lxml/includes/libxml/xmlschemastypes.h +152 -0
- lxml/includes/libxml/xmlstring.h +140 -0
- lxml/includes/libxml/xmlunicode.h +15 -0
- lxml/includes/libxml/xmlversion.h +332 -0
- lxml/includes/libxml/xmlwriter.h +489 -0
- lxml/includes/libxml/xpath.h +569 -0
- lxml/includes/libxml/xpathInternals.h +639 -0
- lxml/includes/libxml/xpointer.h +48 -0
- lxml/includes/libxslt/__init__.py +0 -0
- lxml/includes/libxslt/attributes.h +39 -0
- lxml/includes/libxslt/documents.h +93 -0
- lxml/includes/libxslt/extensions.h +262 -0
- lxml/includes/libxslt/extra.h +72 -0
- lxml/includes/libxslt/functions.h +78 -0
- lxml/includes/libxslt/imports.h +75 -0
- lxml/includes/libxslt/keys.h +53 -0
- lxml/includes/libxslt/namespaces.h +68 -0
- lxml/includes/libxslt/numbersInternals.h +73 -0
- lxml/includes/libxslt/pattern.h +84 -0
- lxml/includes/libxslt/preproc.h +43 -0
- lxml/includes/libxslt/security.h +104 -0
- lxml/includes/libxslt/templates.h +77 -0
- lxml/includes/libxslt/transform.h +207 -0
- lxml/includes/libxslt/variables.h +118 -0
- lxml/includes/libxslt/xslt.h +110 -0
- lxml/includes/libxslt/xsltInternals.h +1995 -0
- lxml/includes/libxslt/xsltconfig.h +146 -0
- lxml/includes/libxslt/xsltexports.h +64 -0
- lxml/includes/libxslt/xsltlocale.h +44 -0
- lxml/includes/libxslt/xsltutils.h +343 -0
- lxml/includes/lxml-version.h +3 -0
- lxml/includes/relaxng.pxd +64 -0
- lxml/includes/schematron.pxd +34 -0
- lxml/includes/tree.pxd +492 -0
- lxml/includes/uri.pxd +5 -0
- lxml/includes/xinclude.pxd +22 -0
- lxml/includes/xmlerror.pxd +852 -0
- lxml/includes/xmlparser.pxd +303 -0
- lxml/includes/xmlschema.pxd +35 -0
- lxml/includes/xpath.pxd +136 -0
- lxml/includes/xslt.pxd +190 -0
- lxml/isoschematron/__init__.py +348 -0
- lxml/isoschematron/resources/rng/iso-schematron.rng +709 -0
- lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl +75 -0
- lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl +77 -0
- lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl +313 -0
- lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl +1160 -0
- lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl +55 -0
- lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl +1796 -0
- lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl +588 -0
- lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt +84 -0
- lxml/iterparse.pxi +438 -0
- lxml/lxml.etree.h +244 -0
- lxml/lxml.etree_api.h +204 -0
- lxml/nsclasses.pxi +281 -0
- lxml/objectify.cpython-311-arm-linux-gnueabihf.so +0 -0
- lxml/objectify.pyx +2149 -0
- lxml/objectpath.pxi +332 -0
- lxml/parser.pxi +2059 -0
- lxml/parsertarget.pxi +180 -0
- lxml/proxy.pxi +619 -0
- lxml/public-api.pxi +178 -0
- lxml/pyclasslookup.py +3 -0
- lxml/readonlytree.pxi +565 -0
- lxml/relaxng.pxi +165 -0
- lxml/sax.cpython-311-arm-linux-gnueabihf.so +0 -0
- lxml/sax.py +286 -0
- lxml/saxparser.pxi +875 -0
- lxml/schematron.pxi +173 -0
- lxml/serializer.pxi +1849 -0
- lxml/usedoctest.py +13 -0
- lxml/xinclude.pxi +67 -0
- lxml/xmlerror.pxi +1654 -0
- lxml/xmlid.pxi +179 -0
- lxml/xmlschema.pxi +215 -0
- lxml/xpath.pxi +487 -0
- lxml/xslt.pxi +957 -0
- lxml/xsltext.pxi +242 -0
- lxml-6.0.0.dist-info/METADATA +163 -0
- lxml-6.0.0.dist-info/RECORD +174 -0
- lxml-6.0.0.dist-info/WHEEL +5 -0
- lxml-6.0.0.dist-info/licenses/LICENSE.txt +31 -0
- lxml-6.0.0.dist-info/licenses/LICENSES.txt +29 -0
- lxml-6.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,419 @@
|
|
1
|
+
/*
|
2
|
+
* Summary: interface for the I/O interfaces used by the parser
|
3
|
+
* Description: interface for the I/O interfaces used by the parser
|
4
|
+
*
|
5
|
+
* Copy: See Copyright for the status of this software.
|
6
|
+
*
|
7
|
+
* Author: Daniel Veillard
|
8
|
+
*/
|
9
|
+
|
10
|
+
#ifndef __XML_IO_H__
|
11
|
+
#define __XML_IO_H__
|
12
|
+
|
13
|
+
/** DOC_DISABLE */
|
14
|
+
#include <stdio.h>
|
15
|
+
#include <libxml/xmlversion.h>
|
16
|
+
#include <libxml/encoding.h>
|
17
|
+
#define XML_TREE_INTERNALS
|
18
|
+
#include <libxml/tree.h>
|
19
|
+
#undef XML_TREE_INTERNALS
|
20
|
+
/** DOC_ENABLE */
|
21
|
+
|
22
|
+
#ifdef __cplusplus
|
23
|
+
extern "C" {
|
24
|
+
#endif
|
25
|
+
|
26
|
+
/*
|
27
|
+
* Those are the functions and datatypes for the parser input
|
28
|
+
* I/O structures.
|
29
|
+
*/
|
30
|
+
|
31
|
+
/**
|
32
|
+
* xmlInputMatchCallback:
|
33
|
+
* @filename: the filename or URI
|
34
|
+
*
|
35
|
+
* Callback used in the I/O Input API to detect if the current handler
|
36
|
+
* can provide input functionality for this resource.
|
37
|
+
*
|
38
|
+
* Returns 1 if yes and 0 if another Input module should be used
|
39
|
+
*/
|
40
|
+
typedef int (*xmlInputMatchCallback) (char const *filename);
|
41
|
+
/**
|
42
|
+
* xmlInputOpenCallback:
|
43
|
+
* @filename: the filename or URI
|
44
|
+
*
|
45
|
+
* Callback used in the I/O Input API to open the resource
|
46
|
+
*
|
47
|
+
* Returns an Input context or NULL in case or error
|
48
|
+
*/
|
49
|
+
typedef void * (*xmlInputOpenCallback) (char const *filename);
|
50
|
+
/**
|
51
|
+
* xmlInputReadCallback:
|
52
|
+
* @context: an Input context
|
53
|
+
* @buffer: the buffer to store data read
|
54
|
+
* @len: the length of the buffer in bytes
|
55
|
+
*
|
56
|
+
* Callback used in the I/O Input API to read the resource
|
57
|
+
*
|
58
|
+
* Returns the number of bytes read or -1 in case of error
|
59
|
+
*/
|
60
|
+
typedef int (*xmlInputReadCallback) (void * context, char * buffer, int len);
|
61
|
+
/**
|
62
|
+
* xmlInputCloseCallback:
|
63
|
+
* @context: an Input context
|
64
|
+
*
|
65
|
+
* Callback used in the I/O Input API to close the resource
|
66
|
+
*
|
67
|
+
* Returns 0 or -1 in case of error
|
68
|
+
*/
|
69
|
+
typedef int (*xmlInputCloseCallback) (void * context);
|
70
|
+
|
71
|
+
#ifdef LIBXML_OUTPUT_ENABLED
|
72
|
+
/*
|
73
|
+
* Those are the functions and datatypes for the library output
|
74
|
+
* I/O structures.
|
75
|
+
*/
|
76
|
+
|
77
|
+
/**
|
78
|
+
* xmlOutputMatchCallback:
|
79
|
+
* @filename: the filename or URI
|
80
|
+
*
|
81
|
+
* Callback used in the I/O Output API to detect if the current handler
|
82
|
+
* can provide output functionality for this resource.
|
83
|
+
*
|
84
|
+
* Returns 1 if yes and 0 if another Output module should be used
|
85
|
+
*/
|
86
|
+
typedef int (*xmlOutputMatchCallback) (char const *filename);
|
87
|
+
/**
|
88
|
+
* xmlOutputOpenCallback:
|
89
|
+
* @filename: the filename or URI
|
90
|
+
*
|
91
|
+
* Callback used in the I/O Output API to open the resource
|
92
|
+
*
|
93
|
+
* Returns an Output context or NULL in case or error
|
94
|
+
*/
|
95
|
+
typedef void * (*xmlOutputOpenCallback) (char const *filename);
|
96
|
+
/**
|
97
|
+
* xmlOutputWriteCallback:
|
98
|
+
* @context: an Output context
|
99
|
+
* @buffer: the buffer of data to write
|
100
|
+
* @len: the length of the buffer in bytes
|
101
|
+
*
|
102
|
+
* Callback used in the I/O Output API to write to the resource
|
103
|
+
*
|
104
|
+
* Returns the number of bytes written or -1 in case of error
|
105
|
+
*/
|
106
|
+
typedef int (*xmlOutputWriteCallback) (void * context, const char * buffer,
|
107
|
+
int len);
|
108
|
+
/**
|
109
|
+
* xmlOutputCloseCallback:
|
110
|
+
* @context: an Output context
|
111
|
+
*
|
112
|
+
* Callback used in the I/O Output API to close the resource
|
113
|
+
*
|
114
|
+
* Returns 0 or -1 in case of error
|
115
|
+
*/
|
116
|
+
typedef int (*xmlOutputCloseCallback) (void * context);
|
117
|
+
#endif /* LIBXML_OUTPUT_ENABLED */
|
118
|
+
|
119
|
+
/**
|
120
|
+
* xmlParserInputBufferCreateFilenameFunc:
|
121
|
+
* @URI: the URI to read from
|
122
|
+
* @enc: the requested source encoding
|
123
|
+
*
|
124
|
+
* Signature for the function doing the lookup for a suitable input method
|
125
|
+
* corresponding to an URI.
|
126
|
+
*
|
127
|
+
* Returns the new xmlParserInputBufferPtr in case of success or NULL if no
|
128
|
+
* method was found.
|
129
|
+
*/
|
130
|
+
typedef xmlParserInputBufferPtr
|
131
|
+
(*xmlParserInputBufferCreateFilenameFunc)(const char *URI, xmlCharEncoding enc);
|
132
|
+
|
133
|
+
/**
|
134
|
+
* xmlOutputBufferCreateFilenameFunc:
|
135
|
+
* @URI: the URI to write to
|
136
|
+
* @enc: the requested target encoding
|
137
|
+
*
|
138
|
+
* Signature for the function doing the lookup for a suitable output method
|
139
|
+
* corresponding to an URI.
|
140
|
+
*
|
141
|
+
* Returns the new xmlOutputBufferPtr in case of success or NULL if no
|
142
|
+
* method was found.
|
143
|
+
*/
|
144
|
+
typedef xmlOutputBufferPtr
|
145
|
+
(*xmlOutputBufferCreateFilenameFunc)(const char *URI,
|
146
|
+
xmlCharEncodingHandlerPtr encoder, int compression);
|
147
|
+
|
148
|
+
struct _xmlParserInputBuffer {
|
149
|
+
void* context;
|
150
|
+
xmlInputReadCallback readcallback;
|
151
|
+
xmlInputCloseCallback closecallback;
|
152
|
+
|
153
|
+
xmlCharEncodingHandlerPtr encoder; /* I18N conversions to UTF-8 */
|
154
|
+
|
155
|
+
xmlBufPtr buffer; /* Local buffer encoded in UTF-8 */
|
156
|
+
xmlBufPtr raw; /* if encoder != NULL buffer for raw input */
|
157
|
+
int compressed; /* -1=unknown, 0=not compressed, 1=compressed */
|
158
|
+
int error;
|
159
|
+
unsigned long rawconsumed;/* amount consumed from raw */
|
160
|
+
};
|
161
|
+
|
162
|
+
|
163
|
+
#ifdef LIBXML_OUTPUT_ENABLED
|
164
|
+
struct _xmlOutputBuffer {
|
165
|
+
void* context;
|
166
|
+
xmlOutputWriteCallback writecallback;
|
167
|
+
xmlOutputCloseCallback closecallback;
|
168
|
+
|
169
|
+
xmlCharEncodingHandlerPtr encoder; /* I18N conversions to UTF-8 */
|
170
|
+
|
171
|
+
xmlBufPtr buffer; /* Local buffer encoded in UTF-8 or ISOLatin */
|
172
|
+
xmlBufPtr conv; /* if encoder != NULL buffer for output */
|
173
|
+
int written; /* total number of byte written */
|
174
|
+
int error;
|
175
|
+
};
|
176
|
+
#endif /* LIBXML_OUTPUT_ENABLED */
|
177
|
+
|
178
|
+
/** DOC_DISABLE */
|
179
|
+
XML_DEPRECATED
|
180
|
+
XMLPUBFUN xmlParserInputBufferCreateFilenameFunc *
|
181
|
+
__xmlParserInputBufferCreateFilenameValue(void);
|
182
|
+
XML_DEPRECATED
|
183
|
+
XMLPUBFUN xmlOutputBufferCreateFilenameFunc *
|
184
|
+
__xmlOutputBufferCreateFilenameValue(void);
|
185
|
+
|
186
|
+
#ifndef XML_GLOBALS_NO_REDEFINITION
|
187
|
+
#define xmlParserInputBufferCreateFilenameValue \
|
188
|
+
(*__xmlParserInputBufferCreateFilenameValue())
|
189
|
+
#define xmlOutputBufferCreateFilenameValue \
|
190
|
+
(*__xmlOutputBufferCreateFilenameValue())
|
191
|
+
#endif
|
192
|
+
/** DOC_ENABLE */
|
193
|
+
|
194
|
+
/*
|
195
|
+
* Interfaces for input
|
196
|
+
*/
|
197
|
+
XMLPUBFUN void
|
198
|
+
xmlCleanupInputCallbacks (void);
|
199
|
+
|
200
|
+
XMLPUBFUN int
|
201
|
+
xmlPopInputCallbacks (void);
|
202
|
+
|
203
|
+
XMLPUBFUN void
|
204
|
+
xmlRegisterDefaultInputCallbacks (void);
|
205
|
+
XMLPUBFUN xmlParserInputBufferPtr
|
206
|
+
xmlAllocParserInputBuffer (xmlCharEncoding enc);
|
207
|
+
|
208
|
+
XMLPUBFUN xmlParserInputBufferPtr
|
209
|
+
xmlParserInputBufferCreateFilename (const char *URI,
|
210
|
+
xmlCharEncoding enc);
|
211
|
+
XML_DEPRECATED
|
212
|
+
XMLPUBFUN xmlParserInputBufferPtr
|
213
|
+
xmlParserInputBufferCreateFile (FILE *file,
|
214
|
+
xmlCharEncoding enc);
|
215
|
+
XMLPUBFUN xmlParserInputBufferPtr
|
216
|
+
xmlParserInputBufferCreateFd (int fd,
|
217
|
+
xmlCharEncoding enc);
|
218
|
+
XMLPUBFUN xmlParserInputBufferPtr
|
219
|
+
xmlParserInputBufferCreateMem (const char *mem, int size,
|
220
|
+
xmlCharEncoding enc);
|
221
|
+
XMLPUBFUN xmlParserInputBufferPtr
|
222
|
+
xmlParserInputBufferCreateStatic (const char *mem, int size,
|
223
|
+
xmlCharEncoding enc);
|
224
|
+
XMLPUBFUN xmlParserInputBufferPtr
|
225
|
+
xmlParserInputBufferCreateIO (xmlInputReadCallback ioread,
|
226
|
+
xmlInputCloseCallback ioclose,
|
227
|
+
void *ioctx,
|
228
|
+
xmlCharEncoding enc);
|
229
|
+
XML_DEPRECATED
|
230
|
+
XMLPUBFUN int
|
231
|
+
xmlParserInputBufferRead (xmlParserInputBufferPtr in,
|
232
|
+
int len);
|
233
|
+
XML_DEPRECATED
|
234
|
+
XMLPUBFUN int
|
235
|
+
xmlParserInputBufferGrow (xmlParserInputBufferPtr in,
|
236
|
+
int len);
|
237
|
+
XML_DEPRECATED
|
238
|
+
XMLPUBFUN int
|
239
|
+
xmlParserInputBufferPush (xmlParserInputBufferPtr in,
|
240
|
+
int len,
|
241
|
+
const char *buf);
|
242
|
+
XMLPUBFUN void
|
243
|
+
xmlFreeParserInputBuffer (xmlParserInputBufferPtr in);
|
244
|
+
XMLPUBFUN char *
|
245
|
+
xmlParserGetDirectory (const char *filename);
|
246
|
+
|
247
|
+
XMLPUBFUN int
|
248
|
+
xmlRegisterInputCallbacks (xmlInputMatchCallback matchFunc,
|
249
|
+
xmlInputOpenCallback openFunc,
|
250
|
+
xmlInputReadCallback readFunc,
|
251
|
+
xmlInputCloseCallback closeFunc);
|
252
|
+
|
253
|
+
XMLPUBFUN xmlParserInputBufferPtr
|
254
|
+
__xmlParserInputBufferCreateFilename(const char *URI,
|
255
|
+
xmlCharEncoding enc);
|
256
|
+
|
257
|
+
#ifdef LIBXML_OUTPUT_ENABLED
|
258
|
+
/*
|
259
|
+
* Interfaces for output
|
260
|
+
*/
|
261
|
+
XMLPUBFUN void
|
262
|
+
xmlCleanupOutputCallbacks (void);
|
263
|
+
XMLPUBFUN int
|
264
|
+
xmlPopOutputCallbacks (void);
|
265
|
+
XMLPUBFUN void
|
266
|
+
xmlRegisterDefaultOutputCallbacks(void);
|
267
|
+
XMLPUBFUN xmlOutputBufferPtr
|
268
|
+
xmlAllocOutputBuffer (xmlCharEncodingHandlerPtr encoder);
|
269
|
+
|
270
|
+
XMLPUBFUN xmlOutputBufferPtr
|
271
|
+
xmlOutputBufferCreateFilename (const char *URI,
|
272
|
+
xmlCharEncodingHandlerPtr encoder,
|
273
|
+
int compression);
|
274
|
+
|
275
|
+
XMLPUBFUN xmlOutputBufferPtr
|
276
|
+
xmlOutputBufferCreateFile (FILE *file,
|
277
|
+
xmlCharEncodingHandlerPtr encoder);
|
278
|
+
|
279
|
+
XMLPUBFUN xmlOutputBufferPtr
|
280
|
+
xmlOutputBufferCreateBuffer (xmlBufferPtr buffer,
|
281
|
+
xmlCharEncodingHandlerPtr encoder);
|
282
|
+
|
283
|
+
XMLPUBFUN xmlOutputBufferPtr
|
284
|
+
xmlOutputBufferCreateFd (int fd,
|
285
|
+
xmlCharEncodingHandlerPtr encoder);
|
286
|
+
|
287
|
+
XMLPUBFUN xmlOutputBufferPtr
|
288
|
+
xmlOutputBufferCreateIO (xmlOutputWriteCallback iowrite,
|
289
|
+
xmlOutputCloseCallback ioclose,
|
290
|
+
void *ioctx,
|
291
|
+
xmlCharEncodingHandlerPtr encoder);
|
292
|
+
|
293
|
+
/* Couple of APIs to get the output without digging into the buffers */
|
294
|
+
XMLPUBFUN const xmlChar *
|
295
|
+
xmlOutputBufferGetContent (xmlOutputBufferPtr out);
|
296
|
+
XMLPUBFUN size_t
|
297
|
+
xmlOutputBufferGetSize (xmlOutputBufferPtr out);
|
298
|
+
|
299
|
+
XMLPUBFUN int
|
300
|
+
xmlOutputBufferWrite (xmlOutputBufferPtr out,
|
301
|
+
int len,
|
302
|
+
const char *buf);
|
303
|
+
XMLPUBFUN int
|
304
|
+
xmlOutputBufferWriteString (xmlOutputBufferPtr out,
|
305
|
+
const char *str);
|
306
|
+
XMLPUBFUN int
|
307
|
+
xmlOutputBufferWriteEscape (xmlOutputBufferPtr out,
|
308
|
+
const xmlChar *str,
|
309
|
+
xmlCharEncodingOutputFunc escaping);
|
310
|
+
|
311
|
+
XMLPUBFUN int
|
312
|
+
xmlOutputBufferFlush (xmlOutputBufferPtr out);
|
313
|
+
XMLPUBFUN int
|
314
|
+
xmlOutputBufferClose (xmlOutputBufferPtr out);
|
315
|
+
|
316
|
+
XMLPUBFUN int
|
317
|
+
xmlRegisterOutputCallbacks (xmlOutputMatchCallback matchFunc,
|
318
|
+
xmlOutputOpenCallback openFunc,
|
319
|
+
xmlOutputWriteCallback writeFunc,
|
320
|
+
xmlOutputCloseCallback closeFunc);
|
321
|
+
|
322
|
+
XMLPUBFUN xmlOutputBufferPtr
|
323
|
+
__xmlOutputBufferCreateFilename(const char *URI,
|
324
|
+
xmlCharEncodingHandlerPtr encoder,
|
325
|
+
int compression);
|
326
|
+
|
327
|
+
#ifdef LIBXML_HTTP_ENABLED
|
328
|
+
/* This function only exists if HTTP support built into the library */
|
329
|
+
XML_DEPRECATED
|
330
|
+
XMLPUBFUN void
|
331
|
+
xmlRegisterHTTPPostCallbacks (void );
|
332
|
+
#endif /* LIBXML_HTTP_ENABLED */
|
333
|
+
|
334
|
+
#endif /* LIBXML_OUTPUT_ENABLED */
|
335
|
+
|
336
|
+
XML_DEPRECATED
|
337
|
+
XMLPUBFUN xmlParserInputPtr
|
338
|
+
xmlCheckHTTPInput (xmlParserCtxtPtr ctxt,
|
339
|
+
xmlParserInputPtr ret);
|
340
|
+
|
341
|
+
/*
|
342
|
+
* A predefined entity loader disabling network accesses
|
343
|
+
*/
|
344
|
+
XMLPUBFUN xmlParserInputPtr
|
345
|
+
xmlNoNetExternalEntityLoader (const char *URL,
|
346
|
+
const char *ID,
|
347
|
+
xmlParserCtxtPtr ctxt);
|
348
|
+
|
349
|
+
XML_DEPRECATED
|
350
|
+
XMLPUBFUN xmlChar *
|
351
|
+
xmlNormalizeWindowsPath (const xmlChar *path);
|
352
|
+
|
353
|
+
XML_DEPRECATED
|
354
|
+
XMLPUBFUN int
|
355
|
+
xmlCheckFilename (const char *path);
|
356
|
+
/**
|
357
|
+
* Default 'file://' protocol callbacks
|
358
|
+
*/
|
359
|
+
XML_DEPRECATED
|
360
|
+
XMLPUBFUN int
|
361
|
+
xmlFileMatch (const char *filename);
|
362
|
+
XML_DEPRECATED
|
363
|
+
XMLPUBFUN void *
|
364
|
+
xmlFileOpen (const char *filename);
|
365
|
+
XML_DEPRECATED
|
366
|
+
XMLPUBFUN int
|
367
|
+
xmlFileRead (void * context,
|
368
|
+
char * buffer,
|
369
|
+
int len);
|
370
|
+
XML_DEPRECATED
|
371
|
+
XMLPUBFUN int
|
372
|
+
xmlFileClose (void * context);
|
373
|
+
|
374
|
+
/**
|
375
|
+
* Default 'http://' protocol callbacks
|
376
|
+
*/
|
377
|
+
#ifdef LIBXML_HTTP_ENABLED
|
378
|
+
XML_DEPRECATED
|
379
|
+
XMLPUBFUN int
|
380
|
+
xmlIOHTTPMatch (const char *filename);
|
381
|
+
XML_DEPRECATED
|
382
|
+
XMLPUBFUN void *
|
383
|
+
xmlIOHTTPOpen (const char *filename);
|
384
|
+
#ifdef LIBXML_OUTPUT_ENABLED
|
385
|
+
XML_DEPRECATED
|
386
|
+
XMLPUBFUN void *
|
387
|
+
xmlIOHTTPOpenW (const char * post_uri,
|
388
|
+
int compression );
|
389
|
+
#endif /* LIBXML_OUTPUT_ENABLED */
|
390
|
+
XML_DEPRECATED
|
391
|
+
XMLPUBFUN int
|
392
|
+
xmlIOHTTPRead (void * context,
|
393
|
+
char * buffer,
|
394
|
+
int len);
|
395
|
+
XML_DEPRECATED
|
396
|
+
XMLPUBFUN int
|
397
|
+
xmlIOHTTPClose (void * context);
|
398
|
+
#endif /* LIBXML_HTTP_ENABLED */
|
399
|
+
|
400
|
+
XMLPUBFUN xmlParserInputBufferCreateFilenameFunc
|
401
|
+
xmlParserInputBufferCreateFilenameDefault(
|
402
|
+
xmlParserInputBufferCreateFilenameFunc func);
|
403
|
+
XMLPUBFUN xmlOutputBufferCreateFilenameFunc
|
404
|
+
xmlOutputBufferCreateFilenameDefault(
|
405
|
+
xmlOutputBufferCreateFilenameFunc func);
|
406
|
+
XML_DEPRECATED
|
407
|
+
XMLPUBFUN xmlOutputBufferCreateFilenameFunc
|
408
|
+
xmlThrDefOutputBufferCreateFilenameDefault(
|
409
|
+
xmlOutputBufferCreateFilenameFunc func);
|
410
|
+
XML_DEPRECATED
|
411
|
+
XMLPUBFUN xmlParserInputBufferCreateFilenameFunc
|
412
|
+
xmlThrDefParserInputBufferCreateFilenameDefault(
|
413
|
+
xmlParserInputBufferCreateFilenameFunc func);
|
414
|
+
|
415
|
+
#ifdef __cplusplus
|
416
|
+
}
|
417
|
+
#endif
|
418
|
+
|
419
|
+
#endif /* __XML_IO_H__ */
|
@@ -0,0 +1,163 @@
|
|
1
|
+
/*
|
2
|
+
* Summary: API to build regexp automata
|
3
|
+
* Description: the API to build regexp automata
|
4
|
+
*
|
5
|
+
* Copy: See Copyright for the status of this software.
|
6
|
+
*
|
7
|
+
* Author: Daniel Veillard
|
8
|
+
*/
|
9
|
+
|
10
|
+
#ifndef __XML_AUTOMATA_H__
|
11
|
+
#define __XML_AUTOMATA_H__
|
12
|
+
|
13
|
+
#include <libxml/xmlversion.h>
|
14
|
+
|
15
|
+
#ifdef LIBXML_REGEXP_ENABLED
|
16
|
+
|
17
|
+
#include <libxml/xmlstring.h>
|
18
|
+
|
19
|
+
#ifdef __cplusplus
|
20
|
+
extern "C" {
|
21
|
+
#endif
|
22
|
+
|
23
|
+
/**
|
24
|
+
* xmlAutomataPtr:
|
25
|
+
*
|
26
|
+
* A libxml automata description, It can be compiled into a regexp
|
27
|
+
*/
|
28
|
+
typedef struct _xmlAutomata xmlAutomata;
|
29
|
+
typedef xmlAutomata *xmlAutomataPtr;
|
30
|
+
|
31
|
+
/**
|
32
|
+
* xmlAutomataStatePtr:
|
33
|
+
*
|
34
|
+
* A state int the automata description,
|
35
|
+
*/
|
36
|
+
typedef struct _xmlAutomataState xmlAutomataState;
|
37
|
+
typedef xmlAutomataState *xmlAutomataStatePtr;
|
38
|
+
|
39
|
+
/*
|
40
|
+
* Building API
|
41
|
+
*/
|
42
|
+
XML_DEPRECATED
|
43
|
+
XMLPUBFUN xmlAutomataPtr
|
44
|
+
xmlNewAutomata (void);
|
45
|
+
XML_DEPRECATED
|
46
|
+
XMLPUBFUN void
|
47
|
+
xmlFreeAutomata (xmlAutomataPtr am);
|
48
|
+
|
49
|
+
XML_DEPRECATED
|
50
|
+
XMLPUBFUN xmlAutomataStatePtr
|
51
|
+
xmlAutomataGetInitState (xmlAutomataPtr am);
|
52
|
+
XML_DEPRECATED
|
53
|
+
XMLPUBFUN int
|
54
|
+
xmlAutomataSetFinalState (xmlAutomataPtr am,
|
55
|
+
xmlAutomataStatePtr state);
|
56
|
+
XML_DEPRECATED
|
57
|
+
XMLPUBFUN xmlAutomataStatePtr
|
58
|
+
xmlAutomataNewState (xmlAutomataPtr am);
|
59
|
+
XML_DEPRECATED
|
60
|
+
XMLPUBFUN xmlAutomataStatePtr
|
61
|
+
xmlAutomataNewTransition (xmlAutomataPtr am,
|
62
|
+
xmlAutomataStatePtr from,
|
63
|
+
xmlAutomataStatePtr to,
|
64
|
+
const xmlChar *token,
|
65
|
+
void *data);
|
66
|
+
XML_DEPRECATED
|
67
|
+
XMLPUBFUN xmlAutomataStatePtr
|
68
|
+
xmlAutomataNewTransition2 (xmlAutomataPtr am,
|
69
|
+
xmlAutomataStatePtr from,
|
70
|
+
xmlAutomataStatePtr to,
|
71
|
+
const xmlChar *token,
|
72
|
+
const xmlChar *token2,
|
73
|
+
void *data);
|
74
|
+
XML_DEPRECATED
|
75
|
+
XMLPUBFUN xmlAutomataStatePtr
|
76
|
+
xmlAutomataNewNegTrans (xmlAutomataPtr am,
|
77
|
+
xmlAutomataStatePtr from,
|
78
|
+
xmlAutomataStatePtr to,
|
79
|
+
const xmlChar *token,
|
80
|
+
const xmlChar *token2,
|
81
|
+
void *data);
|
82
|
+
|
83
|
+
XML_DEPRECATED
|
84
|
+
XMLPUBFUN xmlAutomataStatePtr
|
85
|
+
xmlAutomataNewCountTrans (xmlAutomataPtr am,
|
86
|
+
xmlAutomataStatePtr from,
|
87
|
+
xmlAutomataStatePtr to,
|
88
|
+
const xmlChar *token,
|
89
|
+
int min,
|
90
|
+
int max,
|
91
|
+
void *data);
|
92
|
+
XML_DEPRECATED
|
93
|
+
XMLPUBFUN xmlAutomataStatePtr
|
94
|
+
xmlAutomataNewCountTrans2 (xmlAutomataPtr am,
|
95
|
+
xmlAutomataStatePtr from,
|
96
|
+
xmlAutomataStatePtr to,
|
97
|
+
const xmlChar *token,
|
98
|
+
const xmlChar *token2,
|
99
|
+
int min,
|
100
|
+
int max,
|
101
|
+
void *data);
|
102
|
+
XML_DEPRECATED
|
103
|
+
XMLPUBFUN xmlAutomataStatePtr
|
104
|
+
xmlAutomataNewOnceTrans (xmlAutomataPtr am,
|
105
|
+
xmlAutomataStatePtr from,
|
106
|
+
xmlAutomataStatePtr to,
|
107
|
+
const xmlChar *token,
|
108
|
+
int min,
|
109
|
+
int max,
|
110
|
+
void *data);
|
111
|
+
XML_DEPRECATED
|
112
|
+
XMLPUBFUN xmlAutomataStatePtr
|
113
|
+
xmlAutomataNewOnceTrans2 (xmlAutomataPtr am,
|
114
|
+
xmlAutomataStatePtr from,
|
115
|
+
xmlAutomataStatePtr to,
|
116
|
+
const xmlChar *token,
|
117
|
+
const xmlChar *token2,
|
118
|
+
int min,
|
119
|
+
int max,
|
120
|
+
void *data);
|
121
|
+
XML_DEPRECATED
|
122
|
+
XMLPUBFUN xmlAutomataStatePtr
|
123
|
+
xmlAutomataNewAllTrans (xmlAutomataPtr am,
|
124
|
+
xmlAutomataStatePtr from,
|
125
|
+
xmlAutomataStatePtr to,
|
126
|
+
int lax);
|
127
|
+
XML_DEPRECATED
|
128
|
+
XMLPUBFUN xmlAutomataStatePtr
|
129
|
+
xmlAutomataNewEpsilon (xmlAutomataPtr am,
|
130
|
+
xmlAutomataStatePtr from,
|
131
|
+
xmlAutomataStatePtr to);
|
132
|
+
XML_DEPRECATED
|
133
|
+
XMLPUBFUN xmlAutomataStatePtr
|
134
|
+
xmlAutomataNewCountedTrans (xmlAutomataPtr am,
|
135
|
+
xmlAutomataStatePtr from,
|
136
|
+
xmlAutomataStatePtr to,
|
137
|
+
int counter);
|
138
|
+
XML_DEPRECATED
|
139
|
+
XMLPUBFUN xmlAutomataStatePtr
|
140
|
+
xmlAutomataNewCounterTrans (xmlAutomataPtr am,
|
141
|
+
xmlAutomataStatePtr from,
|
142
|
+
xmlAutomataStatePtr to,
|
143
|
+
int counter);
|
144
|
+
XML_DEPRECATED
|
145
|
+
XMLPUBFUN int
|
146
|
+
xmlAutomataNewCounter (xmlAutomataPtr am,
|
147
|
+
int min,
|
148
|
+
int max);
|
149
|
+
|
150
|
+
XML_DEPRECATED
|
151
|
+
XMLPUBFUN struct _xmlRegexp *
|
152
|
+
xmlAutomataCompile (xmlAutomataPtr am);
|
153
|
+
XML_DEPRECATED
|
154
|
+
XMLPUBFUN int
|
155
|
+
xmlAutomataIsDeterminist (xmlAutomataPtr am);
|
156
|
+
|
157
|
+
#ifdef __cplusplus
|
158
|
+
}
|
159
|
+
#endif
|
160
|
+
|
161
|
+
#endif /* LIBXML_REGEXP_ENABLED */
|
162
|
+
|
163
|
+
#endif /* __XML_AUTOMATA_H__ */
|