@img/sharp-libvips-dev 1.2.2 → 1.2.4-rc.0
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.
- package/include/archive.h +2 -2
- package/include/archive_entry.h +1 -1
- package/include/expat.h +39 -25
- package/include/expat_config.h +9 -9
- package/include/expat_external.h +62 -61
- package/include/harfbuzz/hb-ot-layout.h +6 -0
- package/include/harfbuzz/hb-script-list.h +1 -1
- package/include/harfbuzz/hb-subset.h +5 -0
- package/include/harfbuzz/hb-version.h +3 -3
- package/include/jconfig.h +37 -14
- package/include/jerror.h +47 -42
- package/include/jmorecfg.h +21 -18
- package/include/jpeglib.h +216 -132
- package/include/librsvg-2.0/librsvg/rsvg-version.h +2 -2
- package/include/libxml2/libxml/HTMLparser.h +159 -101
- package/include/libxml2/libxml/HTMLtree.h +49 -74
- package/include/libxml2/libxml/SAX.h +8 -5
- package/include/libxml2/libxml/SAX2.h +18 -15
- package/include/libxml2/libxml/c14n.h +30 -29
- package/include/libxml2/libxml/catalog.h +47 -22
- package/include/libxml2/libxml/chvalid.h +52 -64
- package/include/libxml2/libxml/debugXML.h +18 -15
- package/include/libxml2/libxml/dict.h +22 -19
- package/include/libxml2/libxml/encoding.h +144 -111
- package/include/libxml2/libxml/entities.h +95 -75
- package/include/libxml2/libxml/globals.h +7 -4
- package/include/libxml2/libxml/hash.h +61 -64
- package/include/libxml2/libxml/list.h +59 -51
- package/include/libxml2/libxml/nanoftp.h +7 -4
- package/include/libxml2/libxml/nanohttp.h +10 -7
- package/include/libxml2/libxml/parser.h +1091 -563
- package/include/libxml2/libxml/parserInternals.h +167 -214
- package/include/libxml2/libxml/pattern.h +29 -31
- package/include/libxml2/libxml/relaxng.h +59 -58
- package/include/libxml2/libxml/schemasInternals.h +114 -268
- package/include/libxml2/libxml/schematron.h +59 -51
- package/include/libxml2/libxml/threads.h +19 -20
- package/include/libxml2/libxml/tree.h +873 -623
- package/include/libxml2/libxml/uri.h +21 -22
- package/include/libxml2/libxml/valid.h +169 -199
- package/include/libxml2/libxml/xinclude.h +24 -43
- package/include/libxml2/libxml/xlink.h +55 -51
- package/include/libxml2/libxml/xmlIO.h +127 -145
- package/include/libxml2/libxml/xmlautomata.h +66 -65
- package/include/libxml2/libxml/xmlerror.h +197 -94
- package/include/libxml2/libxml/xmlexports.h +20 -18
- package/include/libxml2/libxml/xmlmemory.h +44 -29
- package/include/libxml2/libxml/xmlmodule.h +14 -15
- package/include/libxml2/libxml/xmlreader.h +137 -131
- package/include/libxml2/libxml/xmlregexp.h +28 -31
- package/include/libxml2/libxml/xmlsave.h +81 -36
- package/include/libxml2/libxml/xmlschemas.h +61 -67
- package/include/libxml2/libxml/xmlschemastypes.h +60 -54
- package/include/libxml2/libxml/xmlstring.h +8 -9
- package/include/libxml2/libxml/xmlunicode.h +6 -3
- package/include/libxml2/libxml/xmlversion.h +44 -121
- package/include/libxml2/libxml/xmlwriter.h +97 -97
- package/include/libxml2/libxml/xpath.h +235 -232
- package/include/libxml2/libxml/xpathInternals.h +247 -277
- package/include/libxml2/libxml/xpointer.h +21 -17
- package/include/tiff.h +1 -0
- package/include/tiffconf.h +1 -1
- package/include/tiffio.h +23 -5
- package/include/tiffvers.h +4 -4
- package/include/vips/version.h +4 -4
- package/package.json +1 -1
- package/versions.json +9 -9
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
1
|
+
/**
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
4
|
+
* @brief the XMLReader implementation
|
|
5
|
+
*
|
|
6
|
+
* API of the XML streaming API based on C\# interfaces.
|
|
4
7
|
*
|
|
5
|
-
*
|
|
8
|
+
* @copyright See Copyright for the status of this software.
|
|
6
9
|
*
|
|
7
|
-
*
|
|
10
|
+
* @author Daniel Veillard
|
|
8
11
|
*/
|
|
9
12
|
|
|
10
13
|
#ifndef __XML_XMLREADER_H__
|
|
@@ -27,8 +30,6 @@ extern "C" {
|
|
|
27
30
|
#endif
|
|
28
31
|
|
|
29
32
|
/**
|
|
30
|
-
* xmlParserSeverities:
|
|
31
|
-
*
|
|
32
33
|
* How severe an error callback is when the per-reader error callback API
|
|
33
34
|
* is used.
|
|
34
35
|
*/
|
|
@@ -42,8 +43,6 @@ typedef enum {
|
|
|
42
43
|
#ifdef LIBXML_READER_ENABLED
|
|
43
44
|
|
|
44
45
|
/**
|
|
45
|
-
* xmlTextReaderMode:
|
|
46
|
-
*
|
|
47
46
|
* Internal state values for the reader.
|
|
48
47
|
*/
|
|
49
48
|
typedef enum {
|
|
@@ -56,302 +55,310 @@ typedef enum {
|
|
|
56
55
|
} xmlTextReaderMode;
|
|
57
56
|
|
|
58
57
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* Some common options to use with xmlTextReaderSetParserProp, but it
|
|
58
|
+
* Some common options to use with #xmlTextReaderSetParserProp, but it
|
|
62
59
|
* is better to use xmlParserOption and the xmlReaderNewxxx and
|
|
63
60
|
* xmlReaderForxxx APIs now.
|
|
64
61
|
*/
|
|
65
62
|
typedef enum {
|
|
63
|
+
/* load external DTD */
|
|
66
64
|
XML_PARSER_LOADDTD = 1,
|
|
65
|
+
/* use default attributes */
|
|
67
66
|
XML_PARSER_DEFAULTATTRS = 2,
|
|
67
|
+
/* DTD validation */
|
|
68
68
|
XML_PARSER_VALIDATE = 3,
|
|
69
|
+
/* substitute entities */
|
|
69
70
|
XML_PARSER_SUBST_ENTITIES = 4
|
|
70
71
|
} xmlParserProperties;
|
|
71
72
|
|
|
72
73
|
/**
|
|
73
|
-
* xmlReaderTypes:
|
|
74
|
-
*
|
|
75
74
|
* Predefined constants for the different types of nodes.
|
|
76
75
|
*/
|
|
77
76
|
typedef enum {
|
|
77
|
+
/** unknown or error */
|
|
78
78
|
XML_READER_TYPE_NONE = 0,
|
|
79
|
+
/** element */
|
|
79
80
|
XML_READER_TYPE_ELEMENT = 1,
|
|
81
|
+
/** attribute */
|
|
80
82
|
XML_READER_TYPE_ATTRIBUTE = 2,
|
|
83
|
+
/** text */
|
|
81
84
|
XML_READER_TYPE_TEXT = 3,
|
|
85
|
+
/** CDATA section */
|
|
82
86
|
XML_READER_TYPE_CDATA = 4,
|
|
87
|
+
/** entity reference */
|
|
83
88
|
XML_READER_TYPE_ENTITY_REFERENCE = 5,
|
|
89
|
+
/** unused */
|
|
84
90
|
XML_READER_TYPE_ENTITY = 6,
|
|
91
|
+
/** processing instruction */
|
|
85
92
|
XML_READER_TYPE_PROCESSING_INSTRUCTION = 7,
|
|
93
|
+
/** comment */
|
|
86
94
|
XML_READER_TYPE_COMMENT = 8,
|
|
95
|
+
/** document */
|
|
87
96
|
XML_READER_TYPE_DOCUMENT = 9,
|
|
97
|
+
/** unused */
|
|
88
98
|
XML_READER_TYPE_DOCUMENT_TYPE = 10,
|
|
99
|
+
/** document fragment */
|
|
89
100
|
XML_READER_TYPE_DOCUMENT_FRAGMENT = 11,
|
|
101
|
+
/** notation, unused */
|
|
90
102
|
XML_READER_TYPE_NOTATION = 12,
|
|
103
|
+
/** whitespace */
|
|
91
104
|
XML_READER_TYPE_WHITESPACE = 13,
|
|
105
|
+
/** significant whitespace */
|
|
92
106
|
XML_READER_TYPE_SIGNIFICANT_WHITESPACE = 14,
|
|
107
|
+
/** end of element */
|
|
93
108
|
XML_READER_TYPE_END_ELEMENT = 15,
|
|
109
|
+
/** unused */
|
|
94
110
|
XML_READER_TYPE_END_ENTITY = 16,
|
|
111
|
+
/** unused */
|
|
95
112
|
XML_READER_TYPE_XML_DECLARATION = 17
|
|
96
113
|
} xmlReaderTypes;
|
|
97
114
|
|
|
98
|
-
/**
|
|
99
|
-
* xmlTextReader:
|
|
100
|
-
*
|
|
101
|
-
* Structure for an xmlReader context.
|
|
102
|
-
*/
|
|
115
|
+
/** xmlReader context */
|
|
103
116
|
typedef struct _xmlTextReader xmlTextReader;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* xmlTextReaderPtr:
|
|
107
|
-
*
|
|
108
|
-
* Pointer to an xmlReader context.
|
|
109
|
-
*/
|
|
110
117
|
typedef xmlTextReader *xmlTextReaderPtr;
|
|
111
118
|
|
|
112
119
|
/*
|
|
113
120
|
* Constructors & Destructor
|
|
114
121
|
*/
|
|
115
|
-
XMLPUBFUN
|
|
116
|
-
xmlNewTextReader (
|
|
122
|
+
XMLPUBFUN xmlTextReader *
|
|
123
|
+
xmlNewTextReader (xmlParserInputBuffer *input,
|
|
117
124
|
const char *URI);
|
|
118
|
-
XMLPUBFUN
|
|
125
|
+
XMLPUBFUN xmlTextReader *
|
|
119
126
|
xmlNewTextReaderFilename(const char *URI);
|
|
120
127
|
|
|
121
128
|
XMLPUBFUN void
|
|
122
|
-
xmlFreeTextReader (
|
|
129
|
+
xmlFreeTextReader (xmlTextReader *reader);
|
|
123
130
|
|
|
124
131
|
XMLPUBFUN int
|
|
125
|
-
xmlTextReaderSetup(
|
|
126
|
-
|
|
132
|
+
xmlTextReaderSetup(xmlTextReader *reader,
|
|
133
|
+
xmlParserInputBuffer *input, const char *URL,
|
|
127
134
|
const char *encoding, int options);
|
|
128
135
|
XMLPUBFUN void
|
|
129
|
-
xmlTextReaderSetMaxAmplification(
|
|
136
|
+
xmlTextReaderSetMaxAmplification(xmlTextReader *reader,
|
|
130
137
|
unsigned maxAmpl);
|
|
131
138
|
XMLPUBFUN const xmlError *
|
|
132
|
-
xmlTextReaderGetLastError(
|
|
139
|
+
xmlTextReaderGetLastError(xmlTextReader *reader);
|
|
133
140
|
|
|
134
141
|
/*
|
|
135
142
|
* Iterators
|
|
136
143
|
*/
|
|
137
144
|
XMLPUBFUN int
|
|
138
|
-
xmlTextReaderRead (
|
|
145
|
+
xmlTextReaderRead (xmlTextReader *reader);
|
|
139
146
|
|
|
140
147
|
#ifdef LIBXML_WRITER_ENABLED
|
|
141
148
|
XMLPUBFUN xmlChar *
|
|
142
|
-
xmlTextReaderReadInnerXml(
|
|
149
|
+
xmlTextReaderReadInnerXml(xmlTextReader *reader);
|
|
143
150
|
|
|
144
151
|
XMLPUBFUN xmlChar *
|
|
145
|
-
xmlTextReaderReadOuterXml(
|
|
152
|
+
xmlTextReaderReadOuterXml(xmlTextReader *reader);
|
|
146
153
|
#endif
|
|
147
154
|
|
|
148
155
|
XMLPUBFUN xmlChar *
|
|
149
|
-
xmlTextReaderReadString (
|
|
156
|
+
xmlTextReaderReadString (xmlTextReader *reader);
|
|
150
157
|
XMLPUBFUN int
|
|
151
|
-
xmlTextReaderReadAttributeValue(
|
|
158
|
+
xmlTextReaderReadAttributeValue(xmlTextReader *reader);
|
|
152
159
|
|
|
153
160
|
/*
|
|
154
161
|
* Attributes of the node
|
|
155
162
|
*/
|
|
156
163
|
XMLPUBFUN int
|
|
157
|
-
xmlTextReaderAttributeCount(
|
|
164
|
+
xmlTextReaderAttributeCount(xmlTextReader *reader);
|
|
158
165
|
XMLPUBFUN int
|
|
159
|
-
xmlTextReaderDepth (
|
|
166
|
+
xmlTextReaderDepth (xmlTextReader *reader);
|
|
160
167
|
XMLPUBFUN int
|
|
161
|
-
xmlTextReaderHasAttributes(
|
|
168
|
+
xmlTextReaderHasAttributes(xmlTextReader *reader);
|
|
162
169
|
XMLPUBFUN int
|
|
163
|
-
xmlTextReaderHasValue(
|
|
170
|
+
xmlTextReaderHasValue(xmlTextReader *reader);
|
|
164
171
|
XMLPUBFUN int
|
|
165
|
-
xmlTextReaderIsDefault (
|
|
172
|
+
xmlTextReaderIsDefault (xmlTextReader *reader);
|
|
166
173
|
XMLPUBFUN int
|
|
167
|
-
xmlTextReaderIsEmptyElement(
|
|
174
|
+
xmlTextReaderIsEmptyElement(xmlTextReader *reader);
|
|
168
175
|
XMLPUBFUN int
|
|
169
|
-
xmlTextReaderNodeType (
|
|
176
|
+
xmlTextReaderNodeType (xmlTextReader *reader);
|
|
170
177
|
XMLPUBFUN int
|
|
171
|
-
xmlTextReaderQuoteChar (
|
|
178
|
+
xmlTextReaderQuoteChar (xmlTextReader *reader);
|
|
172
179
|
XMLPUBFUN int
|
|
173
|
-
xmlTextReaderReadState (
|
|
180
|
+
xmlTextReaderReadState (xmlTextReader *reader);
|
|
174
181
|
XMLPUBFUN int
|
|
175
|
-
xmlTextReaderIsNamespaceDecl(
|
|
182
|
+
xmlTextReaderIsNamespaceDecl(xmlTextReader *reader);
|
|
176
183
|
|
|
177
184
|
XMLPUBFUN const xmlChar *
|
|
178
|
-
xmlTextReaderConstBaseUri (
|
|
185
|
+
xmlTextReaderConstBaseUri (xmlTextReader *reader);
|
|
179
186
|
XMLPUBFUN const xmlChar *
|
|
180
|
-
xmlTextReaderConstLocalName (
|
|
187
|
+
xmlTextReaderConstLocalName (xmlTextReader *reader);
|
|
181
188
|
XMLPUBFUN const xmlChar *
|
|
182
|
-
xmlTextReaderConstName (
|
|
189
|
+
xmlTextReaderConstName (xmlTextReader *reader);
|
|
183
190
|
XMLPUBFUN const xmlChar *
|
|
184
|
-
xmlTextReaderConstNamespaceUri(
|
|
191
|
+
xmlTextReaderConstNamespaceUri(xmlTextReader *reader);
|
|
185
192
|
XMLPUBFUN const xmlChar *
|
|
186
|
-
xmlTextReaderConstPrefix (
|
|
193
|
+
xmlTextReaderConstPrefix (xmlTextReader *reader);
|
|
187
194
|
XMLPUBFUN const xmlChar *
|
|
188
|
-
xmlTextReaderConstXmlLang (
|
|
195
|
+
xmlTextReaderConstXmlLang (xmlTextReader *reader);
|
|
189
196
|
XMLPUBFUN const xmlChar *
|
|
190
|
-
xmlTextReaderConstString (
|
|
197
|
+
xmlTextReaderConstString (xmlTextReader *reader,
|
|
191
198
|
const xmlChar *str);
|
|
192
199
|
XMLPUBFUN const xmlChar *
|
|
193
|
-
xmlTextReaderConstValue (
|
|
200
|
+
xmlTextReaderConstValue (xmlTextReader *reader);
|
|
194
201
|
|
|
195
202
|
/*
|
|
196
203
|
* use the Const version of the routine for
|
|
197
204
|
* better performance and simpler code
|
|
198
205
|
*/
|
|
199
206
|
XMLPUBFUN xmlChar *
|
|
200
|
-
xmlTextReaderBaseUri (
|
|
207
|
+
xmlTextReaderBaseUri (xmlTextReader *reader);
|
|
201
208
|
XMLPUBFUN xmlChar *
|
|
202
|
-
xmlTextReaderLocalName (
|
|
209
|
+
xmlTextReaderLocalName (xmlTextReader *reader);
|
|
203
210
|
XMLPUBFUN xmlChar *
|
|
204
|
-
xmlTextReaderName (
|
|
211
|
+
xmlTextReaderName (xmlTextReader *reader);
|
|
205
212
|
XMLPUBFUN xmlChar *
|
|
206
|
-
xmlTextReaderNamespaceUri(
|
|
213
|
+
xmlTextReaderNamespaceUri(xmlTextReader *reader);
|
|
207
214
|
XMLPUBFUN xmlChar *
|
|
208
|
-
xmlTextReaderPrefix (
|
|
215
|
+
xmlTextReaderPrefix (xmlTextReader *reader);
|
|
209
216
|
XMLPUBFUN xmlChar *
|
|
210
|
-
xmlTextReaderXmlLang (
|
|
217
|
+
xmlTextReaderXmlLang (xmlTextReader *reader);
|
|
211
218
|
XMLPUBFUN xmlChar *
|
|
212
|
-
xmlTextReaderValue (
|
|
219
|
+
xmlTextReaderValue (xmlTextReader *reader);
|
|
213
220
|
|
|
214
221
|
/*
|
|
215
222
|
* Methods of the XmlTextReader
|
|
216
223
|
*/
|
|
217
224
|
XMLPUBFUN int
|
|
218
|
-
xmlTextReaderClose (
|
|
225
|
+
xmlTextReaderClose (xmlTextReader *reader);
|
|
219
226
|
XMLPUBFUN xmlChar *
|
|
220
|
-
xmlTextReaderGetAttributeNo (
|
|
227
|
+
xmlTextReaderGetAttributeNo (xmlTextReader *reader,
|
|
221
228
|
int no);
|
|
222
229
|
XMLPUBFUN xmlChar *
|
|
223
|
-
xmlTextReaderGetAttribute (
|
|
230
|
+
xmlTextReaderGetAttribute (xmlTextReader *reader,
|
|
224
231
|
const xmlChar *name);
|
|
225
232
|
XMLPUBFUN xmlChar *
|
|
226
|
-
xmlTextReaderGetAttributeNs (
|
|
233
|
+
xmlTextReaderGetAttributeNs (xmlTextReader *reader,
|
|
227
234
|
const xmlChar *localName,
|
|
228
235
|
const xmlChar *namespaceURI);
|
|
229
|
-
XMLPUBFUN
|
|
230
|
-
xmlTextReaderGetRemainder (
|
|
236
|
+
XMLPUBFUN xmlParserInputBuffer *
|
|
237
|
+
xmlTextReaderGetRemainder (xmlTextReader *reader);
|
|
231
238
|
XMLPUBFUN xmlChar *
|
|
232
|
-
xmlTextReaderLookupNamespace(
|
|
239
|
+
xmlTextReaderLookupNamespace(xmlTextReader *reader,
|
|
233
240
|
const xmlChar *prefix);
|
|
234
241
|
XMLPUBFUN int
|
|
235
|
-
xmlTextReaderMoveToAttributeNo(
|
|
242
|
+
xmlTextReaderMoveToAttributeNo(xmlTextReader *reader,
|
|
236
243
|
int no);
|
|
237
244
|
XMLPUBFUN int
|
|
238
|
-
xmlTextReaderMoveToAttribute(
|
|
245
|
+
xmlTextReaderMoveToAttribute(xmlTextReader *reader,
|
|
239
246
|
const xmlChar *name);
|
|
240
247
|
XMLPUBFUN int
|
|
241
|
-
xmlTextReaderMoveToAttributeNs(
|
|
248
|
+
xmlTextReaderMoveToAttributeNs(xmlTextReader *reader,
|
|
242
249
|
const xmlChar *localName,
|
|
243
250
|
const xmlChar *namespaceURI);
|
|
244
251
|
XMLPUBFUN int
|
|
245
|
-
xmlTextReaderMoveToFirstAttribute(
|
|
252
|
+
xmlTextReaderMoveToFirstAttribute(xmlTextReader *reader);
|
|
246
253
|
XMLPUBFUN int
|
|
247
|
-
xmlTextReaderMoveToNextAttribute(
|
|
254
|
+
xmlTextReaderMoveToNextAttribute(xmlTextReader *reader);
|
|
248
255
|
XMLPUBFUN int
|
|
249
|
-
xmlTextReaderMoveToElement (
|
|
256
|
+
xmlTextReaderMoveToElement (xmlTextReader *reader);
|
|
250
257
|
XMLPUBFUN int
|
|
251
|
-
xmlTextReaderNormalization (
|
|
258
|
+
xmlTextReaderNormalization (xmlTextReader *reader);
|
|
252
259
|
XMLPUBFUN const xmlChar *
|
|
253
|
-
xmlTextReaderConstEncoding (
|
|
260
|
+
xmlTextReaderConstEncoding (xmlTextReader *reader);
|
|
254
261
|
|
|
255
262
|
/*
|
|
256
263
|
* Extensions
|
|
257
264
|
*/
|
|
258
265
|
XMLPUBFUN int
|
|
259
|
-
xmlTextReaderSetParserProp (
|
|
266
|
+
xmlTextReaderSetParserProp (xmlTextReader *reader,
|
|
260
267
|
int prop,
|
|
261
268
|
int value);
|
|
262
269
|
XMLPUBFUN int
|
|
263
|
-
xmlTextReaderGetParserProp (
|
|
270
|
+
xmlTextReaderGetParserProp (xmlTextReader *reader,
|
|
264
271
|
int prop);
|
|
265
|
-
XMLPUBFUN
|
|
266
|
-
xmlTextReaderCurrentNode (
|
|
272
|
+
XMLPUBFUN xmlNode *
|
|
273
|
+
xmlTextReaderCurrentNode (xmlTextReader *reader);
|
|
267
274
|
|
|
268
275
|
XMLPUBFUN int
|
|
269
|
-
xmlTextReaderGetParserLineNumber(
|
|
276
|
+
xmlTextReaderGetParserLineNumber(xmlTextReader *reader);
|
|
270
277
|
|
|
271
278
|
XMLPUBFUN int
|
|
272
|
-
xmlTextReaderGetParserColumnNumber(
|
|
279
|
+
xmlTextReaderGetParserColumnNumber(xmlTextReader *reader);
|
|
273
280
|
|
|
274
|
-
XMLPUBFUN
|
|
275
|
-
xmlTextReaderPreserve (
|
|
281
|
+
XMLPUBFUN xmlNode *
|
|
282
|
+
xmlTextReaderPreserve (xmlTextReader *reader);
|
|
276
283
|
#ifdef LIBXML_PATTERN_ENABLED
|
|
277
284
|
XMLPUBFUN int
|
|
278
|
-
xmlTextReaderPreservePattern(
|
|
285
|
+
xmlTextReaderPreservePattern(xmlTextReader *reader,
|
|
279
286
|
const xmlChar *pattern,
|
|
280
287
|
const xmlChar **namespaces);
|
|
281
288
|
#endif /* LIBXML_PATTERN_ENABLED */
|
|
282
|
-
XMLPUBFUN
|
|
283
|
-
xmlTextReaderCurrentDoc (
|
|
284
|
-
XMLPUBFUN
|
|
285
|
-
xmlTextReaderExpand (
|
|
289
|
+
XMLPUBFUN xmlDoc *
|
|
290
|
+
xmlTextReaderCurrentDoc (xmlTextReader *reader);
|
|
291
|
+
XMLPUBFUN xmlNode *
|
|
292
|
+
xmlTextReaderExpand (xmlTextReader *reader);
|
|
286
293
|
XMLPUBFUN int
|
|
287
|
-
xmlTextReaderNext (
|
|
294
|
+
xmlTextReaderNext (xmlTextReader *reader);
|
|
288
295
|
XMLPUBFUN int
|
|
289
|
-
xmlTextReaderNextSibling (
|
|
296
|
+
xmlTextReaderNextSibling (xmlTextReader *reader);
|
|
290
297
|
XMLPUBFUN int
|
|
291
|
-
xmlTextReaderIsValid (
|
|
298
|
+
xmlTextReaderIsValid (xmlTextReader *reader);
|
|
292
299
|
#ifdef LIBXML_RELAXNG_ENABLED
|
|
293
300
|
XMLPUBFUN int
|
|
294
|
-
xmlTextReaderRelaxNGValidate(
|
|
301
|
+
xmlTextReaderRelaxNGValidate(xmlTextReader *reader,
|
|
295
302
|
const char *rng);
|
|
296
303
|
XMLPUBFUN int
|
|
297
|
-
xmlTextReaderRelaxNGValidateCtxt(
|
|
298
|
-
|
|
304
|
+
xmlTextReaderRelaxNGValidateCtxt(xmlTextReader *reader,
|
|
305
|
+
xmlRelaxNGValidCtxt *ctxt,
|
|
299
306
|
int options);
|
|
300
307
|
|
|
301
308
|
XMLPUBFUN int
|
|
302
|
-
xmlTextReaderRelaxNGSetSchema(
|
|
303
|
-
|
|
309
|
+
xmlTextReaderRelaxNGSetSchema(xmlTextReader *reader,
|
|
310
|
+
xmlRelaxNG *schema);
|
|
304
311
|
#endif
|
|
305
312
|
#ifdef LIBXML_SCHEMAS_ENABLED
|
|
306
313
|
XMLPUBFUN int
|
|
307
|
-
xmlTextReaderSchemaValidate (
|
|
314
|
+
xmlTextReaderSchemaValidate (xmlTextReader *reader,
|
|
308
315
|
const char *xsd);
|
|
309
316
|
XMLPUBFUN int
|
|
310
|
-
xmlTextReaderSchemaValidateCtxt(
|
|
311
|
-
|
|
317
|
+
xmlTextReaderSchemaValidateCtxt(xmlTextReader *reader,
|
|
318
|
+
xmlSchemaValidCtxt *ctxt,
|
|
312
319
|
int options);
|
|
313
320
|
XMLPUBFUN int
|
|
314
|
-
xmlTextReaderSetSchema (
|
|
315
|
-
|
|
321
|
+
xmlTextReaderSetSchema (xmlTextReader *reader,
|
|
322
|
+
xmlSchema *schema);
|
|
316
323
|
#endif
|
|
317
324
|
XMLPUBFUN const xmlChar *
|
|
318
|
-
xmlTextReaderConstXmlVersion(
|
|
325
|
+
xmlTextReaderConstXmlVersion(xmlTextReader *reader);
|
|
319
326
|
XMLPUBFUN int
|
|
320
|
-
xmlTextReaderStandalone (
|
|
327
|
+
xmlTextReaderStandalone (xmlTextReader *reader);
|
|
321
328
|
|
|
322
329
|
|
|
323
330
|
/*
|
|
324
331
|
* Index lookup
|
|
325
332
|
*/
|
|
326
333
|
XMLPUBFUN long
|
|
327
|
-
xmlTextReaderByteConsumed (
|
|
334
|
+
xmlTextReaderByteConsumed (xmlTextReader *reader);
|
|
328
335
|
|
|
329
336
|
/*
|
|
330
337
|
* New more complete APIs for simpler creation and reuse of readers
|
|
331
338
|
*/
|
|
332
|
-
XMLPUBFUN
|
|
333
|
-
xmlReaderWalker (
|
|
334
|
-
XMLPUBFUN
|
|
339
|
+
XMLPUBFUN xmlTextReader *
|
|
340
|
+
xmlReaderWalker (xmlDoc *doc);
|
|
341
|
+
XMLPUBFUN xmlTextReader *
|
|
335
342
|
xmlReaderForDoc (const xmlChar * cur,
|
|
336
343
|
const char *URL,
|
|
337
344
|
const char *encoding,
|
|
338
345
|
int options);
|
|
339
|
-
XMLPUBFUN
|
|
346
|
+
XMLPUBFUN xmlTextReader *
|
|
340
347
|
xmlReaderForFile (const char *filename,
|
|
341
348
|
const char *encoding,
|
|
342
349
|
int options);
|
|
343
|
-
XMLPUBFUN
|
|
350
|
+
XMLPUBFUN xmlTextReader *
|
|
344
351
|
xmlReaderForMemory (const char *buffer,
|
|
345
352
|
int size,
|
|
346
353
|
const char *URL,
|
|
347
354
|
const char *encoding,
|
|
348
355
|
int options);
|
|
349
|
-
XMLPUBFUN
|
|
356
|
+
XMLPUBFUN xmlTextReader *
|
|
350
357
|
xmlReaderForFd (int fd,
|
|
351
358
|
const char *URL,
|
|
352
359
|
const char *encoding,
|
|
353
360
|
int options);
|
|
354
|
-
XMLPUBFUN
|
|
361
|
+
XMLPUBFUN xmlTextReader *
|
|
355
362
|
xmlReaderForIO (xmlInputReadCallback ioread,
|
|
356
363
|
xmlInputCloseCallback ioclose,
|
|
357
364
|
void *ioctx,
|
|
@@ -360,34 +367,34 @@ XMLPUBFUN xmlTextReaderPtr
|
|
|
360
367
|
int options);
|
|
361
368
|
|
|
362
369
|
XMLPUBFUN int
|
|
363
|
-
xmlReaderNewWalker (
|
|
364
|
-
|
|
370
|
+
xmlReaderNewWalker (xmlTextReader *reader,
|
|
371
|
+
xmlDoc *doc);
|
|
365
372
|
XMLPUBFUN int
|
|
366
|
-
xmlReaderNewDoc (
|
|
373
|
+
xmlReaderNewDoc (xmlTextReader *reader,
|
|
367
374
|
const xmlChar * cur,
|
|
368
375
|
const char *URL,
|
|
369
376
|
const char *encoding,
|
|
370
377
|
int options);
|
|
371
378
|
XMLPUBFUN int
|
|
372
|
-
xmlReaderNewFile (
|
|
379
|
+
xmlReaderNewFile (xmlTextReader *reader,
|
|
373
380
|
const char *filename,
|
|
374
381
|
const char *encoding,
|
|
375
382
|
int options);
|
|
376
383
|
XMLPUBFUN int
|
|
377
|
-
xmlReaderNewMemory (
|
|
384
|
+
xmlReaderNewMemory (xmlTextReader *reader,
|
|
378
385
|
const char *buffer,
|
|
379
386
|
int size,
|
|
380
387
|
const char *URL,
|
|
381
388
|
const char *encoding,
|
|
382
389
|
int options);
|
|
383
390
|
XMLPUBFUN int
|
|
384
|
-
xmlReaderNewFd (
|
|
391
|
+
xmlReaderNewFd (xmlTextReader *reader,
|
|
385
392
|
int fd,
|
|
386
393
|
const char *URL,
|
|
387
394
|
const char *encoding,
|
|
388
395
|
int options);
|
|
389
396
|
XMLPUBFUN int
|
|
390
|
-
xmlReaderNewIO (
|
|
397
|
+
xmlReaderNewIO (xmlTextReader *reader,
|
|
391
398
|
xmlInputReadCallback ioread,
|
|
392
399
|
xmlInputCloseCallback ioclose,
|
|
393
400
|
void *ioctx,
|
|
@@ -400,13 +407,12 @@ XMLPUBFUN int
|
|
|
400
407
|
typedef void * xmlTextReaderLocatorPtr;
|
|
401
408
|
|
|
402
409
|
/**
|
|
403
|
-
* xmlTextReaderErrorFunc:
|
|
404
|
-
* @arg: the user argument
|
|
405
|
-
* @msg: the message
|
|
406
|
-
* @severity: the severity of the error
|
|
407
|
-
* @locator: a locator indicating where the error occurred
|
|
408
|
-
*
|
|
409
410
|
* Signature of an error callback from a reader parser
|
|
411
|
+
*
|
|
412
|
+
* @param arg the user argument
|
|
413
|
+
* @param msg the message
|
|
414
|
+
* @param severity the severity of the error
|
|
415
|
+
* @param locator a locator indicating where the error occurred
|
|
410
416
|
*/
|
|
411
417
|
typedef void (*xmlTextReaderErrorFunc)(void *arg,
|
|
412
418
|
const char *msg,
|
|
@@ -417,20 +423,20 @@ XMLPUBFUN int
|
|
|
417
423
|
XMLPUBFUN xmlChar *
|
|
418
424
|
xmlTextReaderLocatorBaseURI (xmlTextReaderLocatorPtr locator);
|
|
419
425
|
XMLPUBFUN void
|
|
420
|
-
xmlTextReaderSetErrorHandler(
|
|
426
|
+
xmlTextReaderSetErrorHandler(xmlTextReader *reader,
|
|
421
427
|
xmlTextReaderErrorFunc f,
|
|
422
428
|
void *arg);
|
|
423
429
|
XMLPUBFUN void
|
|
424
|
-
xmlTextReaderSetStructuredErrorHandler(
|
|
430
|
+
xmlTextReaderSetStructuredErrorHandler(xmlTextReader *reader,
|
|
425
431
|
xmlStructuredErrorFunc f,
|
|
426
432
|
void *arg);
|
|
427
433
|
XMLPUBFUN void
|
|
428
|
-
xmlTextReaderGetErrorHandler(
|
|
434
|
+
xmlTextReaderGetErrorHandler(xmlTextReader *reader,
|
|
429
435
|
xmlTextReaderErrorFunc *f,
|
|
430
436
|
void **arg);
|
|
431
437
|
|
|
432
438
|
XMLPUBFUN void
|
|
433
|
-
xmlTextReaderSetResourceLoader(
|
|
439
|
+
xmlTextReaderSetResourceLoader(xmlTextReader *reader,
|
|
434
440
|
xmlResourceLoader loader,
|
|
435
441
|
void *data);
|
|
436
442
|
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
1
|
+
/**
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
4
|
+
* @brief Regular expressions
|
|
5
|
+
*
|
|
6
|
+
* A regular expression engine used for DTD and XML Schema
|
|
7
|
+
* validation.
|
|
5
8
|
*
|
|
6
|
-
*
|
|
9
|
+
* @copyright See Copyright for the status of this software.
|
|
7
10
|
*
|
|
8
|
-
*
|
|
11
|
+
* @author Daniel Veillard
|
|
9
12
|
*/
|
|
10
13
|
|
|
11
14
|
#ifndef __XML_REGEXP_H__
|
|
@@ -22,17 +25,12 @@ extern "C" {
|
|
|
22
25
|
#endif
|
|
23
26
|
|
|
24
27
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* A libxml regular expression, they can actually be far more complex
|
|
28
|
-
* thank the POSIX regex expressions.
|
|
28
|
+
* A libxml regular expression
|
|
29
29
|
*/
|
|
30
30
|
typedef struct _xmlRegexp xmlRegexp;
|
|
31
31
|
typedef xmlRegexp *xmlRegexpPtr;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
* xmlRegExecCtxtPtr:
|
|
35
|
-
*
|
|
36
34
|
* A libxml progressive regular expression evaluation context
|
|
37
35
|
*/
|
|
38
36
|
typedef struct _xmlRegExecCtxt xmlRegExecCtxt;
|
|
@@ -41,29 +39,28 @@ typedef xmlRegExecCtxt *xmlRegExecCtxtPtr;
|
|
|
41
39
|
/*
|
|
42
40
|
* The POSIX like API
|
|
43
41
|
*/
|
|
44
|
-
XMLPUBFUN
|
|
42
|
+
XMLPUBFUN xmlRegexp *
|
|
45
43
|
xmlRegexpCompile (const xmlChar *regexp);
|
|
46
|
-
XMLPUBFUN void xmlRegFreeRegexp(
|
|
44
|
+
XMLPUBFUN void xmlRegFreeRegexp(xmlRegexp *regexp);
|
|
47
45
|
XMLPUBFUN int
|
|
48
|
-
xmlRegexpExec (
|
|
46
|
+
xmlRegexpExec (xmlRegexp *comp,
|
|
49
47
|
const xmlChar *value);
|
|
50
48
|
XML_DEPRECATED
|
|
51
49
|
XMLPUBFUN void
|
|
52
50
|
xmlRegexpPrint (FILE *output,
|
|
53
|
-
|
|
51
|
+
xmlRegexp *regexp);
|
|
54
52
|
XMLPUBFUN int
|
|
55
|
-
xmlRegexpIsDeterminist(
|
|
53
|
+
xmlRegexpIsDeterminist(xmlRegexp *comp);
|
|
56
54
|
|
|
57
55
|
/**
|
|
58
|
-
* xmlRegExecCallbacks:
|
|
59
|
-
* @exec: the regular expression context
|
|
60
|
-
* @token: the current token string
|
|
61
|
-
* @transdata: transition data
|
|
62
|
-
* @inputdata: input data
|
|
63
|
-
*
|
|
64
56
|
* Callback function when doing a transition in the automata
|
|
57
|
+
*
|
|
58
|
+
* @param exec the regular expression context
|
|
59
|
+
* @param token the current token string
|
|
60
|
+
* @param transdata transition data
|
|
61
|
+
* @param inputdata input data
|
|
65
62
|
*/
|
|
66
|
-
typedef void (*xmlRegExecCallbacks) (
|
|
63
|
+
typedef void (*xmlRegExecCallbacks) (xmlRegExecCtxt *exec,
|
|
67
64
|
const xmlChar *token,
|
|
68
65
|
void *transdata,
|
|
69
66
|
void *inputdata);
|
|
@@ -72,35 +69,35 @@ typedef void (*xmlRegExecCallbacks) (xmlRegExecCtxtPtr exec,
|
|
|
72
69
|
* The progressive API
|
|
73
70
|
*/
|
|
74
71
|
XML_DEPRECATED
|
|
75
|
-
XMLPUBFUN
|
|
76
|
-
xmlRegNewExecCtxt (
|
|
72
|
+
XMLPUBFUN xmlRegExecCtxt *
|
|
73
|
+
xmlRegNewExecCtxt (xmlRegexp *comp,
|
|
77
74
|
xmlRegExecCallbacks callback,
|
|
78
75
|
void *data);
|
|
79
76
|
XML_DEPRECATED
|
|
80
77
|
XMLPUBFUN void
|
|
81
|
-
xmlRegFreeExecCtxt (
|
|
78
|
+
xmlRegFreeExecCtxt (xmlRegExecCtxt *exec);
|
|
82
79
|
XML_DEPRECATED
|
|
83
80
|
XMLPUBFUN int
|
|
84
|
-
xmlRegExecPushString(
|
|
81
|
+
xmlRegExecPushString(xmlRegExecCtxt *exec,
|
|
85
82
|
const xmlChar *value,
|
|
86
83
|
void *data);
|
|
87
84
|
XML_DEPRECATED
|
|
88
85
|
XMLPUBFUN int
|
|
89
|
-
xmlRegExecPushString2(
|
|
86
|
+
xmlRegExecPushString2(xmlRegExecCtxt *exec,
|
|
90
87
|
const xmlChar *value,
|
|
91
88
|
const xmlChar *value2,
|
|
92
89
|
void *data);
|
|
93
90
|
|
|
94
91
|
XML_DEPRECATED
|
|
95
92
|
XMLPUBFUN int
|
|
96
|
-
xmlRegExecNextValues(
|
|
93
|
+
xmlRegExecNextValues(xmlRegExecCtxt *exec,
|
|
97
94
|
int *nbval,
|
|
98
95
|
int *nbneg,
|
|
99
96
|
xmlChar **values,
|
|
100
97
|
int *terminal);
|
|
101
98
|
XML_DEPRECATED
|
|
102
99
|
XMLPUBFUN int
|
|
103
|
-
xmlRegExecErrInfo (
|
|
100
|
+
xmlRegExecErrInfo (xmlRegExecCtxt *exec,
|
|
104
101
|
const xmlChar **string,
|
|
105
102
|
int *nbval,
|
|
106
103
|
int *nbneg,
|