@img/sharp-libvips-dev 1.2.2 → 1.2.3
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/expat.h +37 -24
- package/include/expat_config.h +9 -9
- package/include/expat_external.h +62 -61
- 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 +170 -199
- package/include/libxml2/libxml/xinclude.h +24 -43
- package/include/libxml2/libxml/xlink.h +55 -51
- package/include/libxml2/libxml/xmlIO.h +133 -151
- package/include/libxml2/libxml/xmlautomata.h +66 -65
- package/include/libxml2/libxml/xmlerror.h +197 -94
- package/include/libxml2/libxml/xmlexports.h +17 -19
- 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/package.json +1 -1
- package/versions.json +2 -2
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
1
|
+
/**
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
4
|
+
* @brief XML/HTML serializer
|
|
5
|
+
*
|
|
6
|
+
* API to save documents or subtrees of documents.
|
|
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_XMLSAVE_H__
|
|
@@ -21,45 +24,87 @@ extern "C" {
|
|
|
21
24
|
#endif
|
|
22
25
|
|
|
23
26
|
/**
|
|
24
|
-
* xmlSaveOption:
|
|
25
|
-
*
|
|
26
27
|
* This is the set of XML save options that can be passed down
|
|
27
|
-
* to the xmlSaveToFd
|
|
28
|
+
* to the #xmlSaveToFd and similar calls.
|
|
28
29
|
*/
|
|
29
30
|
typedef enum {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Format output. This adds newlines and enables indenting
|
|
33
|
+
* by default.
|
|
34
|
+
*/
|
|
35
|
+
XML_SAVE_FORMAT = 1<<0,
|
|
36
|
+
/**
|
|
37
|
+
* Don't emit an XML declaration.
|
|
38
|
+
*/
|
|
39
|
+
XML_SAVE_NO_DECL = 1<<1,
|
|
40
|
+
/**
|
|
41
|
+
* Don't emit empty tags.
|
|
42
|
+
*/
|
|
43
|
+
XML_SAVE_NO_EMPTY = 1<<2,
|
|
44
|
+
/**
|
|
45
|
+
* Don't serialize as XHTML.
|
|
46
|
+
*/
|
|
47
|
+
XML_SAVE_NO_XHTML = 1<<3,
|
|
48
|
+
/**
|
|
49
|
+
* Always serialize as XHTML.
|
|
50
|
+
*/
|
|
51
|
+
XML_SAVE_XHTML = 1<<4,
|
|
52
|
+
/**
|
|
53
|
+
* Serialize HTML documents as XML.
|
|
54
|
+
*/
|
|
55
|
+
XML_SAVE_AS_XML = 1<<5,
|
|
56
|
+
/**
|
|
57
|
+
* Serialize XML documents as HTML.
|
|
58
|
+
*/
|
|
59
|
+
XML_SAVE_AS_HTML = 1<<6,
|
|
60
|
+
/**
|
|
61
|
+
* Format with non-significant whitespace.
|
|
62
|
+
* TODO: What does this mean?
|
|
63
|
+
*/
|
|
64
|
+
XML_SAVE_WSNONSIG = 1<<7,
|
|
65
|
+
/**
|
|
66
|
+
* Always emit empty tags. This is the default unless the
|
|
67
|
+
* deprecated thread-local setting xmlSaveNoEmptyTags is
|
|
68
|
+
* set to 1.
|
|
69
|
+
*
|
|
70
|
+
* @since 2.14
|
|
71
|
+
*/
|
|
72
|
+
XML_SAVE_EMPTY = 1<<8,
|
|
73
|
+
/**
|
|
74
|
+
* Don't indent output when formatting.
|
|
75
|
+
*
|
|
76
|
+
* @since 2.14
|
|
77
|
+
*/
|
|
78
|
+
XML_SAVE_NO_INDENT = 1<<9,
|
|
79
|
+
/**
|
|
80
|
+
* Always indent output when formatting. This is the default
|
|
81
|
+
* unless the deprecated thread-local setting
|
|
82
|
+
* xmlIndentTreeOutput is set to 0.
|
|
83
|
+
*
|
|
84
|
+
* @since 2.14
|
|
85
|
+
*/
|
|
86
|
+
XML_SAVE_INDENT = 1<<10
|
|
42
87
|
} xmlSaveOption;
|
|
43
88
|
|
|
44
|
-
|
|
89
|
+
/** XML and HTML serializer */
|
|
45
90
|
typedef struct _xmlSaveCtxt xmlSaveCtxt;
|
|
46
91
|
typedef xmlSaveCtxt *xmlSaveCtxtPtr;
|
|
47
92
|
|
|
48
|
-
XMLPUBFUN
|
|
93
|
+
XMLPUBFUN xmlSaveCtxt *
|
|
49
94
|
xmlSaveToFd (int fd,
|
|
50
95
|
const char *encoding,
|
|
51
96
|
int options);
|
|
52
|
-
XMLPUBFUN
|
|
97
|
+
XMLPUBFUN xmlSaveCtxt *
|
|
53
98
|
xmlSaveToFilename (const char *filename,
|
|
54
99
|
const char *encoding,
|
|
55
100
|
int options);
|
|
56
101
|
|
|
57
|
-
XMLPUBFUN
|
|
58
|
-
xmlSaveToBuffer (
|
|
102
|
+
XMLPUBFUN xmlSaveCtxt *
|
|
103
|
+
xmlSaveToBuffer (xmlBuffer *buffer,
|
|
59
104
|
const char *encoding,
|
|
60
105
|
int options);
|
|
61
106
|
|
|
62
|
-
XMLPUBFUN
|
|
107
|
+
XMLPUBFUN xmlSaveCtxt *
|
|
63
108
|
xmlSaveToIO (xmlOutputWriteCallback iowrite,
|
|
64
109
|
xmlOutputCloseCallback ioclose,
|
|
65
110
|
void *ioctx,
|
|
@@ -67,28 +112,28 @@ XMLPUBFUN xmlSaveCtxtPtr
|
|
|
67
112
|
int options);
|
|
68
113
|
|
|
69
114
|
XMLPUBFUN long
|
|
70
|
-
xmlSaveDoc (
|
|
71
|
-
|
|
115
|
+
xmlSaveDoc (xmlSaveCtxt *ctxt,
|
|
116
|
+
xmlDoc *doc);
|
|
72
117
|
XMLPUBFUN long
|
|
73
|
-
xmlSaveTree (
|
|
74
|
-
|
|
118
|
+
xmlSaveTree (xmlSaveCtxt *ctxt,
|
|
119
|
+
xmlNode *node);
|
|
75
120
|
|
|
76
121
|
XMLPUBFUN int
|
|
77
|
-
xmlSaveFlush (
|
|
122
|
+
xmlSaveFlush (xmlSaveCtxt *ctxt);
|
|
78
123
|
XMLPUBFUN int
|
|
79
|
-
xmlSaveClose (
|
|
124
|
+
xmlSaveClose (xmlSaveCtxt *ctxt);
|
|
80
125
|
XMLPUBFUN xmlParserErrors
|
|
81
|
-
xmlSaveFinish (
|
|
126
|
+
xmlSaveFinish (xmlSaveCtxt *ctxt);
|
|
82
127
|
XMLPUBFUN int
|
|
83
|
-
xmlSaveSetIndentString (
|
|
128
|
+
xmlSaveSetIndentString (xmlSaveCtxt *ctxt,
|
|
84
129
|
const char *indent);
|
|
85
130
|
XML_DEPRECATED
|
|
86
131
|
XMLPUBFUN int
|
|
87
|
-
xmlSaveSetEscape (
|
|
132
|
+
xmlSaveSetEscape (xmlSaveCtxt *ctxt,
|
|
88
133
|
xmlCharEncodingOutputFunc escape);
|
|
89
134
|
XML_DEPRECATED
|
|
90
135
|
XMLPUBFUN int
|
|
91
|
-
xmlSaveSetAttrEscape (
|
|
136
|
+
xmlSaveSetAttrEscape (xmlSaveCtxt *ctxt,
|
|
92
137
|
xmlCharEncodingOutputFunc escape);
|
|
93
138
|
|
|
94
139
|
XML_DEPRECATED
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
1
|
+
/**
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
4
|
+
* @brief incomplete XML Schemas structure implementation
|
|
5
|
+
*
|
|
6
|
+
* interface to the XML Schemas handling and schema validity
|
|
4
7
|
* checking, it is incomplete right now.
|
|
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
|
|
|
@@ -64,8 +67,6 @@ typedef enum {
|
|
|
64
67
|
* options below.
|
|
65
68
|
*/
|
|
66
69
|
/**
|
|
67
|
-
* xmlSchemaValidOption:
|
|
68
|
-
*
|
|
69
70
|
* This is the set of XML Schema validation options.
|
|
70
71
|
*/
|
|
71
72
|
typedef enum {
|
|
@@ -82,54 +83,47 @@ typedef enum {
|
|
|
82
83
|
* xsi:noNamespaceSchemaLocation
|
|
83
84
|
*/
|
|
84
85
|
|
|
85
|
-
/**
|
|
86
|
-
* The schemas related types are kept internal
|
|
87
|
-
*/
|
|
86
|
+
/** XML schema */
|
|
88
87
|
typedef struct _xmlSchema xmlSchema;
|
|
89
88
|
typedef xmlSchema *xmlSchemaPtr;
|
|
90
89
|
|
|
91
90
|
/**
|
|
92
|
-
* xmlSchemaValidityErrorFunc:
|
|
93
|
-
* @ctx: the validation context
|
|
94
|
-
* @msg: the message
|
|
95
|
-
* @...: extra arguments
|
|
96
|
-
*
|
|
97
91
|
* Signature of an error callback from an XSD validation
|
|
92
|
+
*
|
|
93
|
+
* @param ctx the validation context
|
|
94
|
+
* @param msg the message
|
|
95
|
+
* @param ... extra arguments
|
|
98
96
|
*/
|
|
99
97
|
typedef void (*xmlSchemaValidityErrorFunc)
|
|
100
98
|
(void *ctx, const char *msg, ...) LIBXML_ATTR_FORMAT(2,3);
|
|
101
99
|
|
|
102
100
|
/**
|
|
103
|
-
* xmlSchemaValidityWarningFunc:
|
|
104
|
-
* @ctx: the validation context
|
|
105
|
-
* @msg: the message
|
|
106
|
-
* @...: extra arguments
|
|
107
|
-
*
|
|
108
101
|
* Signature of a warning callback from an XSD validation
|
|
102
|
+
*
|
|
103
|
+
* @param ctx the validation context
|
|
104
|
+
* @param msg the message
|
|
105
|
+
* @param ... extra arguments
|
|
109
106
|
*/
|
|
110
107
|
typedef void (*xmlSchemaValidityWarningFunc)
|
|
111
108
|
(void *ctx, const char *msg, ...) LIBXML_ATTR_FORMAT(2,3);
|
|
112
109
|
|
|
113
|
-
/**
|
|
114
|
-
* A schemas validation context
|
|
115
|
-
*/
|
|
110
|
+
/** Schema parser context */
|
|
116
111
|
typedef struct _xmlSchemaParserCtxt xmlSchemaParserCtxt;
|
|
117
112
|
typedef xmlSchemaParserCtxt *xmlSchemaParserCtxtPtr;
|
|
118
113
|
|
|
114
|
+
/** Schema validation context */
|
|
119
115
|
typedef struct _xmlSchemaValidCtxt xmlSchemaValidCtxt;
|
|
120
116
|
typedef xmlSchemaValidCtxt *xmlSchemaValidCtxtPtr;
|
|
121
117
|
|
|
122
118
|
/**
|
|
123
|
-
* xmlSchemaValidityLocatorFunc:
|
|
124
|
-
* @ctx: user provided context
|
|
125
|
-
* @file: returned file information
|
|
126
|
-
* @line: returned line information
|
|
127
|
-
*
|
|
128
119
|
* A schemas validation locator, a callback called by the validator.
|
|
129
120
|
* This is used when file or node information are not available
|
|
130
121
|
* to find out what file and line number are affected
|
|
131
122
|
*
|
|
132
|
-
*
|
|
123
|
+
* @param ctx user provided context
|
|
124
|
+
* @param file returned file information
|
|
125
|
+
* @param line returned line information
|
|
126
|
+
* @returns 0 in case of success and -1 in case of error
|
|
133
127
|
*/
|
|
134
128
|
|
|
135
129
|
typedef int (*xmlSchemaValidityLocatorFunc) (void *ctx,
|
|
@@ -138,111 +132,111 @@ typedef int (*xmlSchemaValidityLocatorFunc) (void *ctx,
|
|
|
138
132
|
/*
|
|
139
133
|
* Interfaces for parsing.
|
|
140
134
|
*/
|
|
141
|
-
XMLPUBFUN
|
|
135
|
+
XMLPUBFUN xmlSchemaParserCtxt *
|
|
142
136
|
xmlSchemaNewParserCtxt (const char *URL);
|
|
143
|
-
XMLPUBFUN
|
|
137
|
+
XMLPUBFUN xmlSchemaParserCtxt *
|
|
144
138
|
xmlSchemaNewMemParserCtxt (const char *buffer,
|
|
145
139
|
int size);
|
|
146
|
-
XMLPUBFUN
|
|
147
|
-
xmlSchemaNewDocParserCtxt (
|
|
140
|
+
XMLPUBFUN xmlSchemaParserCtxt *
|
|
141
|
+
xmlSchemaNewDocParserCtxt (xmlDoc *doc);
|
|
148
142
|
XMLPUBFUN void
|
|
149
|
-
xmlSchemaFreeParserCtxt (
|
|
143
|
+
xmlSchemaFreeParserCtxt (xmlSchemaParserCtxt *ctxt);
|
|
150
144
|
XMLPUBFUN void
|
|
151
|
-
xmlSchemaSetParserErrors (
|
|
145
|
+
xmlSchemaSetParserErrors (xmlSchemaParserCtxt *ctxt,
|
|
152
146
|
xmlSchemaValidityErrorFunc err,
|
|
153
147
|
xmlSchemaValidityWarningFunc warn,
|
|
154
148
|
void *ctx);
|
|
155
149
|
XMLPUBFUN void
|
|
156
|
-
xmlSchemaSetParserStructuredErrors(
|
|
150
|
+
xmlSchemaSetParserStructuredErrors(xmlSchemaParserCtxt *ctxt,
|
|
157
151
|
xmlStructuredErrorFunc serror,
|
|
158
152
|
void *ctx);
|
|
159
153
|
XMLPUBFUN int
|
|
160
|
-
xmlSchemaGetParserErrors (
|
|
154
|
+
xmlSchemaGetParserErrors (xmlSchemaParserCtxt *ctxt,
|
|
161
155
|
xmlSchemaValidityErrorFunc * err,
|
|
162
156
|
xmlSchemaValidityWarningFunc * warn,
|
|
163
157
|
void **ctx);
|
|
164
158
|
XMLPUBFUN void
|
|
165
|
-
xmlSchemaSetResourceLoader (
|
|
159
|
+
xmlSchemaSetResourceLoader (xmlSchemaParserCtxt *ctxt,
|
|
166
160
|
xmlResourceLoader loader,
|
|
167
161
|
void *data);
|
|
168
162
|
XMLPUBFUN int
|
|
169
|
-
xmlSchemaIsValid (
|
|
163
|
+
xmlSchemaIsValid (xmlSchemaValidCtxt *ctxt);
|
|
170
164
|
|
|
171
|
-
XMLPUBFUN
|
|
172
|
-
xmlSchemaParse (
|
|
165
|
+
XMLPUBFUN xmlSchema *
|
|
166
|
+
xmlSchemaParse (xmlSchemaParserCtxt *ctxt);
|
|
173
167
|
XMLPUBFUN void
|
|
174
|
-
xmlSchemaFree (
|
|
168
|
+
xmlSchemaFree (xmlSchema *schema);
|
|
175
169
|
#ifdef LIBXML_DEBUG_ENABLED
|
|
176
170
|
XMLPUBFUN void
|
|
177
171
|
xmlSchemaDump (FILE *output,
|
|
178
|
-
|
|
172
|
+
xmlSchema *schema);
|
|
179
173
|
#endif /* LIBXML_DEBUG_ENABLED */
|
|
180
174
|
/*
|
|
181
175
|
* Interfaces for validating
|
|
182
176
|
*/
|
|
183
177
|
XMLPUBFUN void
|
|
184
|
-
xmlSchemaSetValidErrors (
|
|
178
|
+
xmlSchemaSetValidErrors (xmlSchemaValidCtxt *ctxt,
|
|
185
179
|
xmlSchemaValidityErrorFunc err,
|
|
186
180
|
xmlSchemaValidityWarningFunc warn,
|
|
187
181
|
void *ctx);
|
|
188
182
|
XMLPUBFUN void
|
|
189
|
-
xmlSchemaSetValidStructuredErrors(
|
|
183
|
+
xmlSchemaSetValidStructuredErrors(xmlSchemaValidCtxt *ctxt,
|
|
190
184
|
xmlStructuredErrorFunc serror,
|
|
191
185
|
void *ctx);
|
|
192
186
|
XMLPUBFUN int
|
|
193
|
-
xmlSchemaGetValidErrors (
|
|
187
|
+
xmlSchemaGetValidErrors (xmlSchemaValidCtxt *ctxt,
|
|
194
188
|
xmlSchemaValidityErrorFunc *err,
|
|
195
189
|
xmlSchemaValidityWarningFunc *warn,
|
|
196
190
|
void **ctx);
|
|
197
191
|
XMLPUBFUN int
|
|
198
|
-
xmlSchemaSetValidOptions (
|
|
192
|
+
xmlSchemaSetValidOptions (xmlSchemaValidCtxt *ctxt,
|
|
199
193
|
int options);
|
|
200
194
|
XMLPUBFUN void
|
|
201
|
-
xmlSchemaValidateSetFilename(
|
|
195
|
+
xmlSchemaValidateSetFilename(xmlSchemaValidCtxt *vctxt,
|
|
202
196
|
const char *filename);
|
|
203
197
|
XMLPUBFUN int
|
|
204
|
-
xmlSchemaValidCtxtGetOptions(
|
|
198
|
+
xmlSchemaValidCtxtGetOptions(xmlSchemaValidCtxt *ctxt);
|
|
205
199
|
|
|
206
|
-
XMLPUBFUN
|
|
207
|
-
xmlSchemaNewValidCtxt (
|
|
200
|
+
XMLPUBFUN xmlSchemaValidCtxt *
|
|
201
|
+
xmlSchemaNewValidCtxt (xmlSchema *schema);
|
|
208
202
|
XMLPUBFUN void
|
|
209
|
-
xmlSchemaFreeValidCtxt (
|
|
203
|
+
xmlSchemaFreeValidCtxt (xmlSchemaValidCtxt *ctxt);
|
|
210
204
|
XMLPUBFUN int
|
|
211
|
-
xmlSchemaValidateDoc (
|
|
212
|
-
|
|
205
|
+
xmlSchemaValidateDoc (xmlSchemaValidCtxt *ctxt,
|
|
206
|
+
xmlDoc *instance);
|
|
213
207
|
XMLPUBFUN int
|
|
214
|
-
xmlSchemaValidateOneElement (
|
|
215
|
-
|
|
208
|
+
xmlSchemaValidateOneElement (xmlSchemaValidCtxt *ctxt,
|
|
209
|
+
xmlNode *elem);
|
|
216
210
|
XMLPUBFUN int
|
|
217
|
-
xmlSchemaValidateStream (
|
|
218
|
-
|
|
211
|
+
xmlSchemaValidateStream (xmlSchemaValidCtxt *ctxt,
|
|
212
|
+
xmlParserInputBuffer *input,
|
|
219
213
|
xmlCharEncoding enc,
|
|
220
214
|
const xmlSAXHandler *sax,
|
|
221
215
|
void *user_data);
|
|
222
216
|
XMLPUBFUN int
|
|
223
|
-
xmlSchemaValidateFile (
|
|
217
|
+
xmlSchemaValidateFile (xmlSchemaValidCtxt *ctxt,
|
|
224
218
|
const char * filename,
|
|
225
219
|
int options);
|
|
226
220
|
|
|
227
|
-
XMLPUBFUN
|
|
228
|
-
xmlSchemaValidCtxtGetParserCtxt(
|
|
221
|
+
XMLPUBFUN xmlParserCtxt *
|
|
222
|
+
xmlSchemaValidCtxtGetParserCtxt(xmlSchemaValidCtxt *ctxt);
|
|
229
223
|
|
|
230
|
-
|
|
224
|
+
/**
|
|
231
225
|
* Interface to insert Schemas SAX validation in a SAX stream
|
|
232
226
|
*/
|
|
233
227
|
typedef struct _xmlSchemaSAXPlug xmlSchemaSAXPlugStruct;
|
|
234
228
|
typedef xmlSchemaSAXPlugStruct *xmlSchemaSAXPlugPtr;
|
|
235
229
|
|
|
236
|
-
XMLPUBFUN
|
|
237
|
-
xmlSchemaSAXPlug (
|
|
238
|
-
|
|
230
|
+
XMLPUBFUN xmlSchemaSAXPlugStruct *
|
|
231
|
+
xmlSchemaSAXPlug (xmlSchemaValidCtxt *ctxt,
|
|
232
|
+
xmlSAXHandler **sax,
|
|
239
233
|
void **user_data);
|
|
240
234
|
XMLPUBFUN int
|
|
241
|
-
xmlSchemaSAXUnplug (
|
|
235
|
+
xmlSchemaSAXUnplug (xmlSchemaSAXPlugStruct *plug);
|
|
242
236
|
|
|
243
237
|
|
|
244
238
|
XMLPUBFUN void
|
|
245
|
-
xmlSchemaValidateSetLocator (
|
|
239
|
+
xmlSchemaValidateSetLocator (xmlSchemaValidCtxt *vctxt,
|
|
246
240
|
xmlSchemaValidityLocatorFunc f,
|
|
247
241
|
void *ctxt);
|
|
248
242
|
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
1
|
+
/**
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
4
|
+
* @brief implementation of XML Schema Datatypes
|
|
5
|
+
*
|
|
6
|
+
* module providing the XML Schema Datatypes implementation
|
|
4
7
|
* both definition and validity checking
|
|
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
|
|
|
@@ -23,6 +26,9 @@
|
|
|
23
26
|
extern "C" {
|
|
24
27
|
#endif
|
|
25
28
|
|
|
29
|
+
/**
|
|
30
|
+
* Schema whitespace value type
|
|
31
|
+
*/
|
|
26
32
|
typedef enum {
|
|
27
33
|
XML_SCHEMA_WHITESPACE_UNKNOWN = 0,
|
|
28
34
|
XML_SCHEMA_WHITESPACE_PRESERVE = 1,
|
|
@@ -35,114 +41,114 @@ XMLPUBFUN int
|
|
|
35
41
|
XML_DEPRECATED
|
|
36
42
|
XMLPUBFUN void
|
|
37
43
|
xmlSchemaCleanupTypes (void);
|
|
38
|
-
XMLPUBFUN
|
|
44
|
+
XMLPUBFUN xmlSchemaType *
|
|
39
45
|
xmlSchemaGetPredefinedType (const xmlChar *name,
|
|
40
46
|
const xmlChar *ns);
|
|
41
47
|
XMLPUBFUN int
|
|
42
|
-
xmlSchemaValidatePredefinedType (
|
|
48
|
+
xmlSchemaValidatePredefinedType (xmlSchemaType *type,
|
|
43
49
|
const xmlChar *value,
|
|
44
|
-
|
|
50
|
+
xmlSchemaVal **val);
|
|
45
51
|
XMLPUBFUN int
|
|
46
|
-
xmlSchemaValPredefTypeNode (
|
|
52
|
+
xmlSchemaValPredefTypeNode (xmlSchemaType *type,
|
|
47
53
|
const xmlChar *value,
|
|
48
|
-
|
|
49
|
-
|
|
54
|
+
xmlSchemaVal **val,
|
|
55
|
+
xmlNode *node);
|
|
50
56
|
XMLPUBFUN int
|
|
51
|
-
xmlSchemaValidateFacet (
|
|
52
|
-
|
|
57
|
+
xmlSchemaValidateFacet (xmlSchemaType *base,
|
|
58
|
+
xmlSchemaFacet *facet,
|
|
53
59
|
const xmlChar *value,
|
|
54
|
-
|
|
60
|
+
xmlSchemaVal *val);
|
|
55
61
|
XMLPUBFUN int
|
|
56
|
-
xmlSchemaValidateFacetWhtsp (
|
|
62
|
+
xmlSchemaValidateFacetWhtsp (xmlSchemaFacet *facet,
|
|
57
63
|
xmlSchemaWhitespaceValueType fws,
|
|
58
64
|
xmlSchemaValType valType,
|
|
59
65
|
const xmlChar *value,
|
|
60
|
-
|
|
66
|
+
xmlSchemaVal *val,
|
|
61
67
|
xmlSchemaWhitespaceValueType ws);
|
|
62
68
|
XMLPUBFUN void
|
|
63
|
-
xmlSchemaFreeValue (
|
|
64
|
-
XMLPUBFUN
|
|
69
|
+
xmlSchemaFreeValue (xmlSchemaVal *val);
|
|
70
|
+
XMLPUBFUN xmlSchemaFacet *
|
|
65
71
|
xmlSchemaNewFacet (void);
|
|
66
72
|
XMLPUBFUN int
|
|
67
|
-
xmlSchemaCheckFacet (
|
|
68
|
-
|
|
69
|
-
|
|
73
|
+
xmlSchemaCheckFacet (xmlSchemaFacet *facet,
|
|
74
|
+
xmlSchemaType *typeDecl,
|
|
75
|
+
xmlSchemaParserCtxt *ctxt,
|
|
70
76
|
const xmlChar *name);
|
|
71
77
|
XMLPUBFUN void
|
|
72
|
-
xmlSchemaFreeFacet (
|
|
78
|
+
xmlSchemaFreeFacet (xmlSchemaFacet *facet);
|
|
73
79
|
XMLPUBFUN int
|
|
74
|
-
xmlSchemaCompareValues (
|
|
75
|
-
|
|
76
|
-
XMLPUBFUN
|
|
77
|
-
xmlSchemaGetBuiltInListSimpleTypeItemType (
|
|
80
|
+
xmlSchemaCompareValues (xmlSchemaVal *x,
|
|
81
|
+
xmlSchemaVal *y);
|
|
82
|
+
XMLPUBFUN xmlSchemaType *
|
|
83
|
+
xmlSchemaGetBuiltInListSimpleTypeItemType (xmlSchemaType *type);
|
|
78
84
|
XMLPUBFUN int
|
|
79
|
-
xmlSchemaValidateListSimpleTypeFacet (
|
|
85
|
+
xmlSchemaValidateListSimpleTypeFacet (xmlSchemaFacet *facet,
|
|
80
86
|
const xmlChar *value,
|
|
81
87
|
unsigned long actualLen,
|
|
82
88
|
unsigned long *expectedLen);
|
|
83
|
-
XMLPUBFUN
|
|
89
|
+
XMLPUBFUN xmlSchemaType *
|
|
84
90
|
xmlSchemaGetBuiltInType (xmlSchemaValType type);
|
|
85
91
|
XMLPUBFUN int
|
|
86
|
-
xmlSchemaIsBuiltInTypeFacet (
|
|
92
|
+
xmlSchemaIsBuiltInTypeFacet (xmlSchemaType *type,
|
|
87
93
|
int facetType);
|
|
88
94
|
XMLPUBFUN xmlChar *
|
|
89
95
|
xmlSchemaCollapseString (const xmlChar *value);
|
|
90
96
|
XMLPUBFUN xmlChar *
|
|
91
97
|
xmlSchemaWhiteSpaceReplace (const xmlChar *value);
|
|
92
98
|
XMLPUBFUN unsigned long
|
|
93
|
-
xmlSchemaGetFacetValueAsULong (
|
|
99
|
+
xmlSchemaGetFacetValueAsULong (xmlSchemaFacet *facet);
|
|
94
100
|
XMLPUBFUN int
|
|
95
|
-
xmlSchemaValidateLengthFacet (
|
|
96
|
-
|
|
101
|
+
xmlSchemaValidateLengthFacet (xmlSchemaType *type,
|
|
102
|
+
xmlSchemaFacet *facet,
|
|
97
103
|
const xmlChar *value,
|
|
98
|
-
|
|
104
|
+
xmlSchemaVal *val,
|
|
99
105
|
unsigned long *length);
|
|
100
106
|
XMLPUBFUN int
|
|
101
|
-
xmlSchemaValidateLengthFacetWhtsp(
|
|
107
|
+
xmlSchemaValidateLengthFacetWhtsp(xmlSchemaFacet *facet,
|
|
102
108
|
xmlSchemaValType valType,
|
|
103
109
|
const xmlChar *value,
|
|
104
|
-
|
|
110
|
+
xmlSchemaVal *val,
|
|
105
111
|
unsigned long *length,
|
|
106
112
|
xmlSchemaWhitespaceValueType ws);
|
|
107
113
|
XMLPUBFUN int
|
|
108
|
-
xmlSchemaValPredefTypeNodeNoNorm(
|
|
114
|
+
xmlSchemaValPredefTypeNodeNoNorm(xmlSchemaType *type,
|
|
109
115
|
const xmlChar *value,
|
|
110
|
-
|
|
111
|
-
|
|
116
|
+
xmlSchemaVal **val,
|
|
117
|
+
xmlNode *node);
|
|
112
118
|
XMLPUBFUN int
|
|
113
|
-
xmlSchemaGetCanonValue (
|
|
119
|
+
xmlSchemaGetCanonValue (xmlSchemaVal *val,
|
|
114
120
|
const xmlChar **retValue);
|
|
115
121
|
XMLPUBFUN int
|
|
116
|
-
xmlSchemaGetCanonValueWhtsp (
|
|
122
|
+
xmlSchemaGetCanonValueWhtsp (xmlSchemaVal *val,
|
|
117
123
|
const xmlChar **retValue,
|
|
118
124
|
xmlSchemaWhitespaceValueType ws);
|
|
119
125
|
XMLPUBFUN int
|
|
120
|
-
xmlSchemaValueAppend (
|
|
121
|
-
|
|
122
|
-
XMLPUBFUN
|
|
123
|
-
xmlSchemaValueGetNext (
|
|
126
|
+
xmlSchemaValueAppend (xmlSchemaVal *prev,
|
|
127
|
+
xmlSchemaVal *cur);
|
|
128
|
+
XMLPUBFUN xmlSchemaVal *
|
|
129
|
+
xmlSchemaValueGetNext (xmlSchemaVal *cur);
|
|
124
130
|
XMLPUBFUN const xmlChar *
|
|
125
|
-
xmlSchemaValueGetAsString (
|
|
131
|
+
xmlSchemaValueGetAsString (xmlSchemaVal *val);
|
|
126
132
|
XMLPUBFUN int
|
|
127
|
-
xmlSchemaValueGetAsBoolean (
|
|
128
|
-
XMLPUBFUN
|
|
133
|
+
xmlSchemaValueGetAsBoolean (xmlSchemaVal *val);
|
|
134
|
+
XMLPUBFUN xmlSchemaVal *
|
|
129
135
|
xmlSchemaNewStringValue (xmlSchemaValType type,
|
|
130
136
|
const xmlChar *value);
|
|
131
|
-
XMLPUBFUN
|
|
137
|
+
XMLPUBFUN xmlSchemaVal *
|
|
132
138
|
xmlSchemaNewNOTATIONValue (const xmlChar *name,
|
|
133
139
|
const xmlChar *ns);
|
|
134
|
-
XMLPUBFUN
|
|
140
|
+
XMLPUBFUN xmlSchemaVal *
|
|
135
141
|
xmlSchemaNewQNameValue (const xmlChar *namespaceName,
|
|
136
142
|
const xmlChar *localName);
|
|
137
143
|
XMLPUBFUN int
|
|
138
|
-
xmlSchemaCompareValuesWhtsp (
|
|
144
|
+
xmlSchemaCompareValuesWhtsp (xmlSchemaVal *x,
|
|
139
145
|
xmlSchemaWhitespaceValueType xws,
|
|
140
|
-
|
|
146
|
+
xmlSchemaVal *y,
|
|
141
147
|
xmlSchemaWhitespaceValueType yws);
|
|
142
|
-
XMLPUBFUN
|
|
143
|
-
xmlSchemaCopyValue (
|
|
148
|
+
XMLPUBFUN xmlSchemaVal *
|
|
149
|
+
xmlSchemaCopyValue (xmlSchemaVal *val);
|
|
144
150
|
XMLPUBFUN xmlSchemaValType
|
|
145
|
-
xmlSchemaGetValType (
|
|
151
|
+
xmlSchemaGetValType (xmlSchemaVal *val);
|
|
146
152
|
|
|
147
153
|
#ifdef __cplusplus
|
|
148
154
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
1
|
+
/**
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
4
|
+
* @brief set of routines to process strings
|
|
5
|
+
*
|
|
6
|
+
* type and interfaces needed for the internal string handling
|
|
4
7
|
* of the library, especially UTF8 processing.
|
|
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_STRING_H__
|
|
@@ -19,8 +22,6 @@ extern "C" {
|
|
|
19
22
|
#endif
|
|
20
23
|
|
|
21
24
|
/**
|
|
22
|
-
* xmlChar:
|
|
23
|
-
*
|
|
24
25
|
* This is a basic byte in an UTF-8 encoded string.
|
|
25
26
|
* It's unsigned allowing to pinpoint case where char * are assigned
|
|
26
27
|
* to xmlChar * (possibly making serialization back impossible).
|
|
@@ -28,8 +29,6 @@ extern "C" {
|
|
|
28
29
|
typedef unsigned char xmlChar;
|
|
29
30
|
|
|
30
31
|
/**
|
|
31
|
-
* BAD_CAST:
|
|
32
|
-
*
|
|
33
32
|
* Macro to cast a string to an xmlChar * when one know its safe.
|
|
34
33
|
*/
|
|
35
34
|
#define BAD_CAST (xmlChar *)
|