nokogiri 1.14.5-x86-linux → 1.15.0-x86-linux
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of nokogiri might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile +9 -8
- data/dependencies.yml +6 -6
- data/ext/nokogiri/extconf.rb +66 -22
- data/ext/nokogiri/html4_document.c +1 -2
- data/ext/nokogiri/html4_element_description.c +19 -14
- data/ext/nokogiri/html4_sax_parser_context.c +10 -16
- data/ext/nokogiri/html4_sax_push_parser.c +2 -2
- data/ext/nokogiri/include/libexslt/exsltconfig.h +3 -3
- data/ext/nokogiri/include/libxml2/libxml/HTMLparser.h +52 -38
- data/ext/nokogiri/include/libxml2/libxml/HTMLtree.h +18 -18
- data/ext/nokogiri/include/libxml2/libxml/SAX.h +36 -36
- data/ext/nokogiri/include/libxml2/libxml/SAX2.h +37 -36
- data/ext/nokogiri/include/libxml2/libxml/c14n.h +4 -4
- data/ext/nokogiri/include/libxml2/libxml/catalog.h +36 -36
- data/ext/nokogiri/include/libxml2/libxml/chvalid.h +9 -9
- data/ext/nokogiri/include/libxml2/libxml/debugXML.h +28 -28
- data/ext/nokogiri/include/libxml2/libxml/dict.h +13 -13
- data/ext/nokogiri/include/libxml2/libxml/encoding.h +20 -19
- data/ext/nokogiri/include/libxml2/libxml/entities.h +19 -21
- data/ext/nokogiri/include/libxml2/libxml/globals.h +89 -59
- data/ext/nokogiri/include/libxml2/libxml/hash.h +25 -25
- data/ext/nokogiri/include/libxml2/libxml/list.h +26 -26
- data/ext/nokogiri/include/libxml2/libxml/nanoftp.h +22 -22
- data/ext/nokogiri/include/libxml2/libxml/nanohttp.h +17 -17
- data/ext/nokogiri/include/libxml2/libxml/parser.h +100 -79
- data/ext/nokogiri/include/libxml2/libxml/parserInternals.h +149 -143
- data/ext/nokogiri/include/libxml2/libxml/pattern.h +15 -15
- data/ext/nokogiri/include/libxml2/libxml/relaxng.h +26 -26
- data/ext/nokogiri/include/libxml2/libxml/schemasInternals.h +2 -2
- data/ext/nokogiri/include/libxml2/libxml/schematron.h +18 -18
- data/ext/nokogiri/include/libxml2/libxml/threads.h +23 -20
- data/ext/nokogiri/include/libxml2/libxml/tree.h +166 -164
- data/ext/nokogiri/include/libxml2/libxml/uri.h +15 -15
- data/ext/nokogiri/include/libxml2/libxml/valid.h +72 -87
- data/ext/nokogiri/include/libxml2/libxml/xinclude.h +10 -10
- data/ext/nokogiri/include/libxml2/libxml/xlink.h +5 -5
- data/ext/nokogiri/include/libxml2/libxml/xmlIO.h +60 -59
- data/ext/nokogiri/include/libxml2/libxml/xmlautomata.h +21 -21
- data/ext/nokogiri/include/libxml2/libxml/xmlerror.h +18 -46
- data/ext/nokogiri/include/libxml2/libxml/xmlexports.h +14 -41
- data/ext/nokogiri/include/libxml2/libxml/xmlmemory.h +26 -24
- data/ext/nokogiri/include/libxml2/libxml/xmlmodule.h +4 -4
- data/ext/nokogiri/include/libxml2/libxml/xmlreader.h +87 -87
- data/ext/nokogiri/include/libxml2/libxml/xmlregexp.h +30 -30
- data/ext/nokogiri/include/libxml2/libxml/xmlsave.h +10 -10
- data/ext/nokogiri/include/libxml2/libxml/xmlschemas.h +30 -30
- data/ext/nokogiri/include/libxml2/libxml/xmlschemastypes.h +34 -34
- data/ext/nokogiri/include/libxml2/libxml/xmlstring.h +30 -30
- data/ext/nokogiri/include/libxml2/libxml/xmlunicode.h +166 -166
- data/ext/nokogiri/include/libxml2/libxml/xmlversion.h +50 -27
- data/ext/nokogiri/include/libxml2/libxml/xmlwriter.h +80 -80
- data/ext/nokogiri/include/libxml2/libxml/xpath.h +41 -41
- data/ext/nokogiri/include/libxml2/libxml/xpathInternals.h +117 -117
- data/ext/nokogiri/include/libxml2/libxml/xpointer.h +21 -21
- data/ext/nokogiri/include/libxslt/attributes.h +1 -0
- data/ext/nokogiri/include/libxslt/variables.h +3 -3
- data/ext/nokogiri/include/libxslt/xsltInternals.h +14 -4
- data/ext/nokogiri/include/libxslt/xsltconfig.h +4 -4
- data/ext/nokogiri/include/libxslt/xsltlocale.h +14 -54
- data/ext/nokogiri/include/libxslt/xsltutils.h +35 -2
- data/ext/nokogiri/nokogiri.c +46 -24
- data/ext/nokogiri/nokogiri.h +13 -2
- data/ext/nokogiri/xml_attr.c +1 -1
- data/ext/nokogiri/xml_cdata.c +10 -2
- data/ext/nokogiri/xml_comment.c +1 -1
- data/ext/nokogiri/xml_document.c +102 -22
- data/ext/nokogiri/xml_document_fragment.c +1 -1
- data/ext/nokogiri/xml_dtd.c +1 -1
- data/ext/nokogiri/xml_element_content.c +32 -29
- data/ext/nokogiri/xml_element_decl.c +5 -5
- data/ext/nokogiri/xml_encoding_handler.c +12 -4
- data/ext/nokogiri/xml_entity_reference.c +1 -1
- data/ext/nokogiri/xml_namespace.c +11 -12
- data/ext/nokogiri/xml_node.c +7 -7
- data/ext/nokogiri/xml_node_set.c +125 -105
- data/ext/nokogiri/xml_processing_instruction.c +1 -1
- data/ext/nokogiri/xml_reader.c +37 -28
- data/ext/nokogiri/xml_relax_ng.c +65 -78
- data/ext/nokogiri/xml_sax_parser.c +24 -5
- data/ext/nokogiri/xml_sax_parser_context.c +46 -25
- data/ext/nokogiri/xml_sax_push_parser.c +29 -8
- data/ext/nokogiri/xml_schema.c +90 -116
- data/ext/nokogiri/xml_text.c +10 -2
- data/ext/nokogiri/xml_xpath_context.c +156 -83
- data/ext/nokogiri/xslt_stylesheet.c +103 -50
- data/lib/nokogiri/2.7/nokogiri.so +0 -0
- data/lib/nokogiri/3.0/nokogiri.so +0 -0
- data/lib/nokogiri/3.1/nokogiri.so +0 -0
- data/lib/nokogiri/3.2/nokogiri.so +0 -0
- data/lib/nokogiri/css/xpath_visitor.rb +2 -2
- data/lib/nokogiri/extension.rb +1 -1
- data/lib/nokogiri/html4/document_fragment.rb +1 -1
- data/lib/nokogiri/html4/element_description_defaults.rb +1821 -353
- data/lib/nokogiri/html5/document_fragment.rb +1 -1
- data/lib/nokogiri/html5/node.rb +5 -0
- data/lib/nokogiri/html5.rb +5 -2
- data/lib/nokogiri/jruby/nokogiri_jars.rb +3 -3
- data/lib/nokogiri/version/constant.rb +1 -1
- data/lib/nokogiri/xml/attribute_decl.rb +4 -2
- data/lib/nokogiri/xml/document_fragment.rb +1 -1
- data/lib/nokogiri/xml/element_content.rb +10 -2
- data/lib/nokogiri/xml/element_decl.rb +4 -2
- data/lib/nokogiri/xml/entity_decl.rb +4 -2
- data/lib/nokogiri/xml/node/save_options.rb +8 -0
- data/lib/nokogiri/xml/node.rb +22 -13
- data/lib/nokogiri/xml/pp/node.rb +23 -12
- data/lib/nokogiri/xml/sax/document.rb +1 -1
- data/lib/nokogiri/xml/searchable.rb +18 -10
- data/lib/nokogiri/xslt.rb +73 -3
- data/lib/nokogiri.rb +12 -4
- data/lib/xsd/xmlparser/nokogiri.rb +1 -1
- metadata +2 -2
@@ -54,7 +54,7 @@ extern "C" {
|
|
54
54
|
*
|
55
55
|
* Signature for a free() implementation.
|
56
56
|
*/
|
57
|
-
typedef void (
|
57
|
+
typedef void (*xmlFreeFunc)(void *mem);
|
58
58
|
/**
|
59
59
|
* xmlMallocFunc:
|
60
60
|
* @size: the size requested in bytes
|
@@ -63,7 +63,7 @@ typedef void (XMLCALL *xmlFreeFunc)(void *mem);
|
|
63
63
|
*
|
64
64
|
* Returns a pointer to the newly allocated block or NULL in case of error.
|
65
65
|
*/
|
66
|
-
typedef void *(LIBXML_ATTR_ALLOC_SIZE(1)
|
66
|
+
typedef void *(LIBXML_ATTR_ALLOC_SIZE(1) *xmlMallocFunc)(size_t size);
|
67
67
|
|
68
68
|
/**
|
69
69
|
* xmlReallocFunc:
|
@@ -74,7 +74,7 @@ typedef void *(LIBXML_ATTR_ALLOC_SIZE(1) XMLCALL *xmlMallocFunc)(size_t size);
|
|
74
74
|
*
|
75
75
|
* Returns a pointer to the newly reallocated block or NULL in case of error.
|
76
76
|
*/
|
77
|
-
typedef void *(
|
77
|
+
typedef void *(*xmlReallocFunc)(void *mem, size_t size);
|
78
78
|
|
79
79
|
/**
|
80
80
|
* xmlStrdupFunc:
|
@@ -84,7 +84,7 @@ typedef void *(XMLCALL *xmlReallocFunc)(void *mem, size_t size);
|
|
84
84
|
*
|
85
85
|
* Returns the copy of the string or NULL in case of error.
|
86
86
|
*/
|
87
|
-
typedef char *(
|
87
|
+
typedef char *(*xmlStrdupFunc)(const char *str);
|
88
88
|
|
89
89
|
/*
|
90
90
|
* The 4 interfaces used for all memory handling within libxml.
|
@@ -100,23 +100,23 @@ LIBXML_DLL_IMPORT xmlStrdupFunc xmlMemStrdup;
|
|
100
100
|
* The xmlGc function have an extra entry for atomic block
|
101
101
|
* allocations useful for garbage collected memory allocators
|
102
102
|
*/
|
103
|
-
XMLPUBFUN int
|
103
|
+
XMLPUBFUN int
|
104
104
|
xmlMemSetup (xmlFreeFunc freeFunc,
|
105
105
|
xmlMallocFunc mallocFunc,
|
106
106
|
xmlReallocFunc reallocFunc,
|
107
107
|
xmlStrdupFunc strdupFunc);
|
108
|
-
XMLPUBFUN int
|
108
|
+
XMLPUBFUN int
|
109
109
|
xmlMemGet (xmlFreeFunc *freeFunc,
|
110
110
|
xmlMallocFunc *mallocFunc,
|
111
111
|
xmlReallocFunc *reallocFunc,
|
112
112
|
xmlStrdupFunc *strdupFunc);
|
113
|
-
XMLPUBFUN int
|
113
|
+
XMLPUBFUN int
|
114
114
|
xmlGcMemSetup (xmlFreeFunc freeFunc,
|
115
115
|
xmlMallocFunc mallocFunc,
|
116
116
|
xmlMallocFunc mallocAtomicFunc,
|
117
117
|
xmlReallocFunc reallocFunc,
|
118
118
|
xmlStrdupFunc strdupFunc);
|
119
|
-
XMLPUBFUN int
|
119
|
+
XMLPUBFUN int
|
120
120
|
xmlGcMemGet (xmlFreeFunc *freeFunc,
|
121
121
|
xmlMallocFunc *mallocFunc,
|
122
122
|
xmlMallocFunc *mallocAtomicFunc,
|
@@ -127,45 +127,47 @@ XMLPUBFUN int XMLCALL
|
|
127
127
|
* Initialization of the memory layer.
|
128
128
|
*/
|
129
129
|
XML_DEPRECATED
|
130
|
-
XMLPUBFUN int
|
130
|
+
XMLPUBFUN int
|
131
131
|
xmlInitMemory (void);
|
132
132
|
|
133
133
|
/*
|
134
134
|
* Cleanup of the memory layer.
|
135
135
|
*/
|
136
136
|
XML_DEPRECATED
|
137
|
-
XMLPUBFUN void
|
137
|
+
XMLPUBFUN void
|
138
138
|
xmlCleanupMemory (void);
|
139
139
|
/*
|
140
140
|
* These are specific to the XML debug memory wrapper.
|
141
141
|
*/
|
142
|
-
XMLPUBFUN
|
142
|
+
XMLPUBFUN size_t
|
143
|
+
xmlMemSize (void *ptr);
|
144
|
+
XMLPUBFUN int
|
143
145
|
xmlMemUsed (void);
|
144
|
-
XMLPUBFUN int
|
146
|
+
XMLPUBFUN int
|
145
147
|
xmlMemBlocks (void);
|
146
|
-
XMLPUBFUN void
|
148
|
+
XMLPUBFUN void
|
147
149
|
xmlMemDisplay (FILE *fp);
|
148
|
-
XMLPUBFUN void
|
150
|
+
XMLPUBFUN void
|
149
151
|
xmlMemDisplayLast(FILE *fp, long nbBytes);
|
150
|
-
XMLPUBFUN void
|
152
|
+
XMLPUBFUN void
|
151
153
|
xmlMemShow (FILE *fp, int nr);
|
152
|
-
XMLPUBFUN void
|
154
|
+
XMLPUBFUN void
|
153
155
|
xmlMemoryDump (void);
|
154
|
-
XMLPUBFUN void *
|
156
|
+
XMLPUBFUN void *
|
155
157
|
xmlMemMalloc (size_t size) LIBXML_ATTR_ALLOC_SIZE(1);
|
156
|
-
XMLPUBFUN void *
|
158
|
+
XMLPUBFUN void *
|
157
159
|
xmlMemRealloc (void *ptr,size_t size);
|
158
|
-
XMLPUBFUN void
|
160
|
+
XMLPUBFUN void
|
159
161
|
xmlMemFree (void *ptr);
|
160
|
-
XMLPUBFUN char *
|
162
|
+
XMLPUBFUN char *
|
161
163
|
xmlMemoryStrdup (const char *str);
|
162
|
-
XMLPUBFUN void *
|
164
|
+
XMLPUBFUN void *
|
163
165
|
xmlMallocLoc (size_t size, const char *file, int line) LIBXML_ATTR_ALLOC_SIZE(1);
|
164
|
-
XMLPUBFUN void *
|
166
|
+
XMLPUBFUN void *
|
165
167
|
xmlReallocLoc (void *ptr, size_t size, const char *file, int line);
|
166
|
-
XMLPUBFUN void *
|
168
|
+
XMLPUBFUN void *
|
167
169
|
xmlMallocAtomicLoc (size_t size, const char *file, int line) LIBXML_ATTR_ALLOC_SIZE(1);
|
168
|
-
XMLPUBFUN char *
|
170
|
+
XMLPUBFUN char *
|
169
171
|
xmlMemStrdupLoc (const char *str, const char *file, int line);
|
170
172
|
|
171
173
|
|
@@ -37,16 +37,16 @@ typedef enum {
|
|
37
37
|
XML_MODULE_LOCAL= 2 /* local binding */
|
38
38
|
} xmlModuleOption;
|
39
39
|
|
40
|
-
XMLPUBFUN xmlModulePtr
|
40
|
+
XMLPUBFUN xmlModulePtr xmlModuleOpen (const char *filename,
|
41
41
|
int options);
|
42
42
|
|
43
|
-
XMLPUBFUN int
|
43
|
+
XMLPUBFUN int xmlModuleSymbol (xmlModulePtr module,
|
44
44
|
const char* name,
|
45
45
|
void **result);
|
46
46
|
|
47
|
-
XMLPUBFUN int
|
47
|
+
XMLPUBFUN int xmlModuleClose (xmlModulePtr module);
|
48
48
|
|
49
|
-
XMLPUBFUN int
|
49
|
+
XMLPUBFUN int xmlModuleFree (xmlModulePtr module);
|
50
50
|
|
51
51
|
#ifdef __cplusplus
|
52
52
|
}
|
@@ -108,16 +108,16 @@ typedef xmlTextReader *xmlTextReaderPtr;
|
|
108
108
|
/*
|
109
109
|
* Constructors & Destructor
|
110
110
|
*/
|
111
|
-
XMLPUBFUN xmlTextReaderPtr
|
111
|
+
XMLPUBFUN xmlTextReaderPtr
|
112
112
|
xmlNewTextReader (xmlParserInputBufferPtr input,
|
113
113
|
const char *URI);
|
114
|
-
XMLPUBFUN xmlTextReaderPtr
|
114
|
+
XMLPUBFUN xmlTextReaderPtr
|
115
115
|
xmlNewTextReaderFilename(const char *URI);
|
116
116
|
|
117
|
-
XMLPUBFUN void
|
117
|
+
XMLPUBFUN void
|
118
118
|
xmlFreeTextReader (xmlTextReaderPtr reader);
|
119
119
|
|
120
|
-
XMLPUBFUN int
|
120
|
+
XMLPUBFUN int
|
121
121
|
xmlTextReaderSetup(xmlTextReaderPtr reader,
|
122
122
|
xmlParserInputBufferPtr input, const char *URL,
|
123
123
|
const char *encoding, int options);
|
@@ -125,222 +125,222 @@ XMLPUBFUN int XMLCALL
|
|
125
125
|
/*
|
126
126
|
* Iterators
|
127
127
|
*/
|
128
|
-
XMLPUBFUN int
|
128
|
+
XMLPUBFUN int
|
129
129
|
xmlTextReaderRead (xmlTextReaderPtr reader);
|
130
130
|
|
131
131
|
#ifdef LIBXML_WRITER_ENABLED
|
132
|
-
XMLPUBFUN xmlChar *
|
132
|
+
XMLPUBFUN xmlChar *
|
133
133
|
xmlTextReaderReadInnerXml(xmlTextReaderPtr reader);
|
134
134
|
|
135
|
-
XMLPUBFUN xmlChar *
|
135
|
+
XMLPUBFUN xmlChar *
|
136
136
|
xmlTextReaderReadOuterXml(xmlTextReaderPtr reader);
|
137
137
|
#endif
|
138
138
|
|
139
|
-
XMLPUBFUN xmlChar *
|
139
|
+
XMLPUBFUN xmlChar *
|
140
140
|
xmlTextReaderReadString (xmlTextReaderPtr reader);
|
141
|
-
XMLPUBFUN int
|
141
|
+
XMLPUBFUN int
|
142
142
|
xmlTextReaderReadAttributeValue(xmlTextReaderPtr reader);
|
143
143
|
|
144
144
|
/*
|
145
145
|
* Attributes of the node
|
146
146
|
*/
|
147
|
-
XMLPUBFUN int
|
147
|
+
XMLPUBFUN int
|
148
148
|
xmlTextReaderAttributeCount(xmlTextReaderPtr reader);
|
149
|
-
XMLPUBFUN int
|
149
|
+
XMLPUBFUN int
|
150
150
|
xmlTextReaderDepth (xmlTextReaderPtr reader);
|
151
|
-
XMLPUBFUN int
|
151
|
+
XMLPUBFUN int
|
152
152
|
xmlTextReaderHasAttributes(xmlTextReaderPtr reader);
|
153
|
-
XMLPUBFUN int
|
153
|
+
XMLPUBFUN int
|
154
154
|
xmlTextReaderHasValue(xmlTextReaderPtr reader);
|
155
|
-
XMLPUBFUN int
|
155
|
+
XMLPUBFUN int
|
156
156
|
xmlTextReaderIsDefault (xmlTextReaderPtr reader);
|
157
|
-
XMLPUBFUN int
|
157
|
+
XMLPUBFUN int
|
158
158
|
xmlTextReaderIsEmptyElement(xmlTextReaderPtr reader);
|
159
|
-
XMLPUBFUN int
|
159
|
+
XMLPUBFUN int
|
160
160
|
xmlTextReaderNodeType (xmlTextReaderPtr reader);
|
161
|
-
XMLPUBFUN int
|
161
|
+
XMLPUBFUN int
|
162
162
|
xmlTextReaderQuoteChar (xmlTextReaderPtr reader);
|
163
|
-
XMLPUBFUN int
|
163
|
+
XMLPUBFUN int
|
164
164
|
xmlTextReaderReadState (xmlTextReaderPtr reader);
|
165
|
-
XMLPUBFUN int
|
165
|
+
XMLPUBFUN int
|
166
166
|
xmlTextReaderIsNamespaceDecl(xmlTextReaderPtr reader);
|
167
167
|
|
168
|
-
XMLPUBFUN const xmlChar *
|
168
|
+
XMLPUBFUN const xmlChar *
|
169
169
|
xmlTextReaderConstBaseUri (xmlTextReaderPtr reader);
|
170
|
-
XMLPUBFUN const xmlChar *
|
170
|
+
XMLPUBFUN const xmlChar *
|
171
171
|
xmlTextReaderConstLocalName (xmlTextReaderPtr reader);
|
172
|
-
XMLPUBFUN const xmlChar *
|
172
|
+
XMLPUBFUN const xmlChar *
|
173
173
|
xmlTextReaderConstName (xmlTextReaderPtr reader);
|
174
|
-
XMLPUBFUN const xmlChar *
|
174
|
+
XMLPUBFUN const xmlChar *
|
175
175
|
xmlTextReaderConstNamespaceUri(xmlTextReaderPtr reader);
|
176
|
-
XMLPUBFUN const xmlChar *
|
176
|
+
XMLPUBFUN const xmlChar *
|
177
177
|
xmlTextReaderConstPrefix (xmlTextReaderPtr reader);
|
178
|
-
XMLPUBFUN const xmlChar *
|
178
|
+
XMLPUBFUN const xmlChar *
|
179
179
|
xmlTextReaderConstXmlLang (xmlTextReaderPtr reader);
|
180
|
-
XMLPUBFUN const xmlChar *
|
180
|
+
XMLPUBFUN const xmlChar *
|
181
181
|
xmlTextReaderConstString (xmlTextReaderPtr reader,
|
182
182
|
const xmlChar *str);
|
183
|
-
XMLPUBFUN const xmlChar *
|
183
|
+
XMLPUBFUN const xmlChar *
|
184
184
|
xmlTextReaderConstValue (xmlTextReaderPtr reader);
|
185
185
|
|
186
186
|
/*
|
187
187
|
* use the Const version of the routine for
|
188
188
|
* better performance and simpler code
|
189
189
|
*/
|
190
|
-
XMLPUBFUN xmlChar *
|
190
|
+
XMLPUBFUN xmlChar *
|
191
191
|
xmlTextReaderBaseUri (xmlTextReaderPtr reader);
|
192
|
-
XMLPUBFUN xmlChar *
|
192
|
+
XMLPUBFUN xmlChar *
|
193
193
|
xmlTextReaderLocalName (xmlTextReaderPtr reader);
|
194
|
-
XMLPUBFUN xmlChar *
|
194
|
+
XMLPUBFUN xmlChar *
|
195
195
|
xmlTextReaderName (xmlTextReaderPtr reader);
|
196
|
-
XMLPUBFUN xmlChar *
|
196
|
+
XMLPUBFUN xmlChar *
|
197
197
|
xmlTextReaderNamespaceUri(xmlTextReaderPtr reader);
|
198
|
-
XMLPUBFUN xmlChar *
|
198
|
+
XMLPUBFUN xmlChar *
|
199
199
|
xmlTextReaderPrefix (xmlTextReaderPtr reader);
|
200
|
-
XMLPUBFUN xmlChar *
|
200
|
+
XMLPUBFUN xmlChar *
|
201
201
|
xmlTextReaderXmlLang (xmlTextReaderPtr reader);
|
202
|
-
XMLPUBFUN xmlChar *
|
202
|
+
XMLPUBFUN xmlChar *
|
203
203
|
xmlTextReaderValue (xmlTextReaderPtr reader);
|
204
204
|
|
205
205
|
/*
|
206
206
|
* Methods of the XmlTextReader
|
207
207
|
*/
|
208
|
-
XMLPUBFUN int
|
208
|
+
XMLPUBFUN int
|
209
209
|
xmlTextReaderClose (xmlTextReaderPtr reader);
|
210
|
-
XMLPUBFUN xmlChar *
|
210
|
+
XMLPUBFUN xmlChar *
|
211
211
|
xmlTextReaderGetAttributeNo (xmlTextReaderPtr reader,
|
212
212
|
int no);
|
213
|
-
XMLPUBFUN xmlChar *
|
213
|
+
XMLPUBFUN xmlChar *
|
214
214
|
xmlTextReaderGetAttribute (xmlTextReaderPtr reader,
|
215
215
|
const xmlChar *name);
|
216
|
-
XMLPUBFUN xmlChar *
|
216
|
+
XMLPUBFUN xmlChar *
|
217
217
|
xmlTextReaderGetAttributeNs (xmlTextReaderPtr reader,
|
218
218
|
const xmlChar *localName,
|
219
219
|
const xmlChar *namespaceURI);
|
220
|
-
XMLPUBFUN xmlParserInputBufferPtr
|
220
|
+
XMLPUBFUN xmlParserInputBufferPtr
|
221
221
|
xmlTextReaderGetRemainder (xmlTextReaderPtr reader);
|
222
|
-
XMLPUBFUN xmlChar *
|
222
|
+
XMLPUBFUN xmlChar *
|
223
223
|
xmlTextReaderLookupNamespace(xmlTextReaderPtr reader,
|
224
224
|
const xmlChar *prefix);
|
225
|
-
XMLPUBFUN int
|
225
|
+
XMLPUBFUN int
|
226
226
|
xmlTextReaderMoveToAttributeNo(xmlTextReaderPtr reader,
|
227
227
|
int no);
|
228
|
-
XMLPUBFUN int
|
228
|
+
XMLPUBFUN int
|
229
229
|
xmlTextReaderMoveToAttribute(xmlTextReaderPtr reader,
|
230
230
|
const xmlChar *name);
|
231
|
-
XMLPUBFUN int
|
231
|
+
XMLPUBFUN int
|
232
232
|
xmlTextReaderMoveToAttributeNs(xmlTextReaderPtr reader,
|
233
233
|
const xmlChar *localName,
|
234
234
|
const xmlChar *namespaceURI);
|
235
|
-
XMLPUBFUN int
|
235
|
+
XMLPUBFUN int
|
236
236
|
xmlTextReaderMoveToFirstAttribute(xmlTextReaderPtr reader);
|
237
|
-
XMLPUBFUN int
|
237
|
+
XMLPUBFUN int
|
238
238
|
xmlTextReaderMoveToNextAttribute(xmlTextReaderPtr reader);
|
239
|
-
XMLPUBFUN int
|
239
|
+
XMLPUBFUN int
|
240
240
|
xmlTextReaderMoveToElement (xmlTextReaderPtr reader);
|
241
|
-
XMLPUBFUN int
|
241
|
+
XMLPUBFUN int
|
242
242
|
xmlTextReaderNormalization (xmlTextReaderPtr reader);
|
243
|
-
XMLPUBFUN const xmlChar *
|
243
|
+
XMLPUBFUN const xmlChar *
|
244
244
|
xmlTextReaderConstEncoding (xmlTextReaderPtr reader);
|
245
245
|
|
246
246
|
/*
|
247
247
|
* Extensions
|
248
248
|
*/
|
249
|
-
XMLPUBFUN int
|
249
|
+
XMLPUBFUN int
|
250
250
|
xmlTextReaderSetParserProp (xmlTextReaderPtr reader,
|
251
251
|
int prop,
|
252
252
|
int value);
|
253
|
-
XMLPUBFUN int
|
253
|
+
XMLPUBFUN int
|
254
254
|
xmlTextReaderGetParserProp (xmlTextReaderPtr reader,
|
255
255
|
int prop);
|
256
|
-
XMLPUBFUN xmlNodePtr
|
256
|
+
XMLPUBFUN xmlNodePtr
|
257
257
|
xmlTextReaderCurrentNode (xmlTextReaderPtr reader);
|
258
258
|
|
259
|
-
XMLPUBFUN int
|
259
|
+
XMLPUBFUN int
|
260
260
|
xmlTextReaderGetParserLineNumber(xmlTextReaderPtr reader);
|
261
261
|
|
262
|
-
XMLPUBFUN int
|
262
|
+
XMLPUBFUN int
|
263
263
|
xmlTextReaderGetParserColumnNumber(xmlTextReaderPtr reader);
|
264
264
|
|
265
|
-
XMLPUBFUN xmlNodePtr
|
265
|
+
XMLPUBFUN xmlNodePtr
|
266
266
|
xmlTextReaderPreserve (xmlTextReaderPtr reader);
|
267
267
|
#ifdef LIBXML_PATTERN_ENABLED
|
268
|
-
XMLPUBFUN int
|
268
|
+
XMLPUBFUN int
|
269
269
|
xmlTextReaderPreservePattern(xmlTextReaderPtr reader,
|
270
270
|
const xmlChar *pattern,
|
271
271
|
const xmlChar **namespaces);
|
272
272
|
#endif /* LIBXML_PATTERN_ENABLED */
|
273
|
-
XMLPUBFUN xmlDocPtr
|
273
|
+
XMLPUBFUN xmlDocPtr
|
274
274
|
xmlTextReaderCurrentDoc (xmlTextReaderPtr reader);
|
275
|
-
XMLPUBFUN xmlNodePtr
|
275
|
+
XMLPUBFUN xmlNodePtr
|
276
276
|
xmlTextReaderExpand (xmlTextReaderPtr reader);
|
277
|
-
XMLPUBFUN int
|
277
|
+
XMLPUBFUN int
|
278
278
|
xmlTextReaderNext (xmlTextReaderPtr reader);
|
279
|
-
XMLPUBFUN int
|
279
|
+
XMLPUBFUN int
|
280
280
|
xmlTextReaderNextSibling (xmlTextReaderPtr reader);
|
281
|
-
XMLPUBFUN int
|
281
|
+
XMLPUBFUN int
|
282
282
|
xmlTextReaderIsValid (xmlTextReaderPtr reader);
|
283
283
|
#ifdef LIBXML_SCHEMAS_ENABLED
|
284
|
-
XMLPUBFUN int
|
284
|
+
XMLPUBFUN int
|
285
285
|
xmlTextReaderRelaxNGValidate(xmlTextReaderPtr reader,
|
286
286
|
const char *rng);
|
287
|
-
XMLPUBFUN int
|
287
|
+
XMLPUBFUN int
|
288
288
|
xmlTextReaderRelaxNGValidateCtxt(xmlTextReaderPtr reader,
|
289
289
|
xmlRelaxNGValidCtxtPtr ctxt,
|
290
290
|
int options);
|
291
291
|
|
292
|
-
XMLPUBFUN int
|
292
|
+
XMLPUBFUN int
|
293
293
|
xmlTextReaderRelaxNGSetSchema(xmlTextReaderPtr reader,
|
294
294
|
xmlRelaxNGPtr schema);
|
295
|
-
XMLPUBFUN int
|
295
|
+
XMLPUBFUN int
|
296
296
|
xmlTextReaderSchemaValidate (xmlTextReaderPtr reader,
|
297
297
|
const char *xsd);
|
298
|
-
XMLPUBFUN int
|
298
|
+
XMLPUBFUN int
|
299
299
|
xmlTextReaderSchemaValidateCtxt(xmlTextReaderPtr reader,
|
300
300
|
xmlSchemaValidCtxtPtr ctxt,
|
301
301
|
int options);
|
302
|
-
XMLPUBFUN int
|
302
|
+
XMLPUBFUN int
|
303
303
|
xmlTextReaderSetSchema (xmlTextReaderPtr reader,
|
304
304
|
xmlSchemaPtr schema);
|
305
305
|
#endif
|
306
|
-
XMLPUBFUN const xmlChar *
|
306
|
+
XMLPUBFUN const xmlChar *
|
307
307
|
xmlTextReaderConstXmlVersion(xmlTextReaderPtr reader);
|
308
|
-
XMLPUBFUN int
|
308
|
+
XMLPUBFUN int
|
309
309
|
xmlTextReaderStandalone (xmlTextReaderPtr reader);
|
310
310
|
|
311
311
|
|
312
312
|
/*
|
313
313
|
* Index lookup
|
314
314
|
*/
|
315
|
-
XMLPUBFUN long
|
315
|
+
XMLPUBFUN long
|
316
316
|
xmlTextReaderByteConsumed (xmlTextReaderPtr reader);
|
317
317
|
|
318
318
|
/*
|
319
319
|
* New more complete APIs for simpler creation and reuse of readers
|
320
320
|
*/
|
321
|
-
XMLPUBFUN xmlTextReaderPtr
|
321
|
+
XMLPUBFUN xmlTextReaderPtr
|
322
322
|
xmlReaderWalker (xmlDocPtr doc);
|
323
|
-
XMLPUBFUN xmlTextReaderPtr
|
323
|
+
XMLPUBFUN xmlTextReaderPtr
|
324
324
|
xmlReaderForDoc (const xmlChar * cur,
|
325
325
|
const char *URL,
|
326
326
|
const char *encoding,
|
327
327
|
int options);
|
328
|
-
XMLPUBFUN xmlTextReaderPtr
|
328
|
+
XMLPUBFUN xmlTextReaderPtr
|
329
329
|
xmlReaderForFile (const char *filename,
|
330
330
|
const char *encoding,
|
331
331
|
int options);
|
332
|
-
XMLPUBFUN xmlTextReaderPtr
|
332
|
+
XMLPUBFUN xmlTextReaderPtr
|
333
333
|
xmlReaderForMemory (const char *buffer,
|
334
334
|
int size,
|
335
335
|
const char *URL,
|
336
336
|
const char *encoding,
|
337
337
|
int options);
|
338
|
-
XMLPUBFUN xmlTextReaderPtr
|
338
|
+
XMLPUBFUN xmlTextReaderPtr
|
339
339
|
xmlReaderForFd (int fd,
|
340
340
|
const char *URL,
|
341
341
|
const char *encoding,
|
342
342
|
int options);
|
343
|
-
XMLPUBFUN xmlTextReaderPtr
|
343
|
+
XMLPUBFUN xmlTextReaderPtr
|
344
344
|
xmlReaderForIO (xmlInputReadCallback ioread,
|
345
345
|
xmlInputCloseCallback ioclose,
|
346
346
|
void *ioctx,
|
@@ -348,34 +348,34 @@ XMLPUBFUN xmlTextReaderPtr XMLCALL
|
|
348
348
|
const char *encoding,
|
349
349
|
int options);
|
350
350
|
|
351
|
-
XMLPUBFUN int
|
351
|
+
XMLPUBFUN int
|
352
352
|
xmlReaderNewWalker (xmlTextReaderPtr reader,
|
353
353
|
xmlDocPtr doc);
|
354
|
-
XMLPUBFUN int
|
354
|
+
XMLPUBFUN int
|
355
355
|
xmlReaderNewDoc (xmlTextReaderPtr reader,
|
356
356
|
const xmlChar * cur,
|
357
357
|
const char *URL,
|
358
358
|
const char *encoding,
|
359
359
|
int options);
|
360
|
-
XMLPUBFUN int
|
360
|
+
XMLPUBFUN int
|
361
361
|
xmlReaderNewFile (xmlTextReaderPtr reader,
|
362
362
|
const char *filename,
|
363
363
|
const char *encoding,
|
364
364
|
int options);
|
365
|
-
XMLPUBFUN int
|
365
|
+
XMLPUBFUN int
|
366
366
|
xmlReaderNewMemory (xmlTextReaderPtr reader,
|
367
367
|
const char *buffer,
|
368
368
|
int size,
|
369
369
|
const char *URL,
|
370
370
|
const char *encoding,
|
371
371
|
int options);
|
372
|
-
XMLPUBFUN int
|
372
|
+
XMLPUBFUN int
|
373
373
|
xmlReaderNewFd (xmlTextReaderPtr reader,
|
374
374
|
int fd,
|
375
375
|
const char *URL,
|
376
376
|
const char *encoding,
|
377
377
|
int options);
|
378
|
-
XMLPUBFUN int
|
378
|
+
XMLPUBFUN int
|
379
379
|
xmlReaderNewIO (xmlTextReaderPtr reader,
|
380
380
|
xmlInputReadCallback ioread,
|
381
381
|
xmlInputCloseCallback ioclose,
|
@@ -397,23 +397,23 @@ typedef void * xmlTextReaderLocatorPtr;
|
|
397
397
|
*
|
398
398
|
* Signature of an error callback from a reader parser
|
399
399
|
*/
|
400
|
-
typedef void (
|
400
|
+
typedef void (*xmlTextReaderErrorFunc)(void *arg,
|
401
401
|
const char *msg,
|
402
402
|
xmlParserSeverities severity,
|
403
403
|
xmlTextReaderLocatorPtr locator);
|
404
|
-
XMLPUBFUN int
|
404
|
+
XMLPUBFUN int
|
405
405
|
xmlTextReaderLocatorLineNumber(xmlTextReaderLocatorPtr locator);
|
406
|
-
XMLPUBFUN xmlChar *
|
406
|
+
XMLPUBFUN xmlChar *
|
407
407
|
xmlTextReaderLocatorBaseURI (xmlTextReaderLocatorPtr locator);
|
408
|
-
XMLPUBFUN void
|
408
|
+
XMLPUBFUN void
|
409
409
|
xmlTextReaderSetErrorHandler(xmlTextReaderPtr reader,
|
410
410
|
xmlTextReaderErrorFunc f,
|
411
411
|
void *arg);
|
412
|
-
XMLPUBFUN void
|
412
|
+
XMLPUBFUN void
|
413
413
|
xmlTextReaderSetStructuredErrorHandler(xmlTextReaderPtr reader,
|
414
414
|
xmlStructuredErrorFunc f,
|
415
415
|
void *arg);
|
416
|
-
XMLPUBFUN void
|
416
|
+
XMLPUBFUN void
|
417
417
|
xmlTextReaderGetErrorHandler(xmlTextReaderPtr reader,
|
418
418
|
xmlTextReaderErrorFunc *f,
|
419
419
|
void **arg);
|
@@ -48,16 +48,16 @@ extern "C" {
|
|
48
48
|
/*
|
49
49
|
* The POSIX like API
|
50
50
|
*/
|
51
|
-
XMLPUBFUN xmlRegexpPtr
|
51
|
+
XMLPUBFUN xmlRegexpPtr
|
52
52
|
xmlRegexpCompile (const xmlChar *regexp);
|
53
|
-
XMLPUBFUN void
|
54
|
-
XMLPUBFUN int
|
53
|
+
XMLPUBFUN void xmlRegFreeRegexp(xmlRegexpPtr regexp);
|
54
|
+
XMLPUBFUN int
|
55
55
|
xmlRegexpExec (xmlRegexpPtr comp,
|
56
56
|
const xmlChar *value);
|
57
|
-
XMLPUBFUN void
|
57
|
+
XMLPUBFUN void
|
58
58
|
xmlRegexpPrint (FILE *output,
|
59
59
|
xmlRegexpPtr regexp);
|
60
|
-
XMLPUBFUN int
|
60
|
+
XMLPUBFUN int
|
61
61
|
xmlRegexpIsDeterminist(xmlRegexpPtr comp);
|
62
62
|
|
63
63
|
/**
|
@@ -77,29 +77,29 @@ typedef void (*xmlRegExecCallbacks) (xmlRegExecCtxtPtr exec,
|
|
77
77
|
/*
|
78
78
|
* The progressive API
|
79
79
|
*/
|
80
|
-
XMLPUBFUN xmlRegExecCtxtPtr
|
80
|
+
XMLPUBFUN xmlRegExecCtxtPtr
|
81
81
|
xmlRegNewExecCtxt (xmlRegexpPtr comp,
|
82
82
|
xmlRegExecCallbacks callback,
|
83
83
|
void *data);
|
84
|
-
XMLPUBFUN void
|
84
|
+
XMLPUBFUN void
|
85
85
|
xmlRegFreeExecCtxt (xmlRegExecCtxtPtr exec);
|
86
|
-
XMLPUBFUN int
|
86
|
+
XMLPUBFUN int
|
87
87
|
xmlRegExecPushString(xmlRegExecCtxtPtr exec,
|
88
88
|
const xmlChar *value,
|
89
89
|
void *data);
|
90
|
-
XMLPUBFUN int
|
90
|
+
XMLPUBFUN int
|
91
91
|
xmlRegExecPushString2(xmlRegExecCtxtPtr exec,
|
92
92
|
const xmlChar *value,
|
93
93
|
const xmlChar *value2,
|
94
94
|
void *data);
|
95
95
|
|
96
|
-
XMLPUBFUN int
|
96
|
+
XMLPUBFUN int
|
97
97
|
xmlRegExecNextValues(xmlRegExecCtxtPtr exec,
|
98
98
|
int *nbval,
|
99
99
|
int *nbneg,
|
100
100
|
xmlChar **values,
|
101
101
|
int *terminal);
|
102
|
-
XMLPUBFUN int
|
102
|
+
XMLPUBFUN int
|
103
103
|
xmlRegExecErrInfo (xmlRegExecCtxtPtr exec,
|
104
104
|
const xmlChar **string,
|
105
105
|
int *nbval,
|
@@ -116,15 +116,15 @@ XMLPUBFUN int XMLCALL
|
|
116
116
|
typedef struct _xmlExpCtxt xmlExpCtxt;
|
117
117
|
typedef xmlExpCtxt *xmlExpCtxtPtr;
|
118
118
|
|
119
|
-
XMLPUBFUN void
|
119
|
+
XMLPUBFUN void
|
120
120
|
xmlExpFreeCtxt (xmlExpCtxtPtr ctxt);
|
121
|
-
XMLPUBFUN xmlExpCtxtPtr
|
121
|
+
XMLPUBFUN xmlExpCtxtPtr
|
122
122
|
xmlExpNewCtxt (int maxNodes,
|
123
123
|
xmlDictPtr dict);
|
124
124
|
|
125
|
-
XMLPUBFUN int
|
125
|
+
XMLPUBFUN int
|
126
126
|
xmlExpCtxtNbNodes(xmlExpCtxtPtr ctxt);
|
127
|
-
XMLPUBFUN int
|
127
|
+
XMLPUBFUN int
|
128
128
|
xmlExpCtxtNbCons(xmlExpCtxtPtr ctxt);
|
129
129
|
|
130
130
|
/* Expressions are trees but the tree is opaque */
|
@@ -150,31 +150,31 @@ XMLPUBVAR xmlExpNodePtr emptyExp;
|
|
150
150
|
/*
|
151
151
|
* Expressions are reference counted internally
|
152
152
|
*/
|
153
|
-
XMLPUBFUN void
|
153
|
+
XMLPUBFUN void
|
154
154
|
xmlExpFree (xmlExpCtxtPtr ctxt,
|
155
155
|
xmlExpNodePtr expr);
|
156
|
-
XMLPUBFUN void
|
156
|
+
XMLPUBFUN void
|
157
157
|
xmlExpRef (xmlExpNodePtr expr);
|
158
158
|
|
159
159
|
/*
|
160
160
|
* constructors can be either manual or from a string
|
161
161
|
*/
|
162
|
-
XMLPUBFUN xmlExpNodePtr
|
162
|
+
XMLPUBFUN xmlExpNodePtr
|
163
163
|
xmlExpParse (xmlExpCtxtPtr ctxt,
|
164
164
|
const char *expr);
|
165
|
-
XMLPUBFUN xmlExpNodePtr
|
165
|
+
XMLPUBFUN xmlExpNodePtr
|
166
166
|
xmlExpNewAtom (xmlExpCtxtPtr ctxt,
|
167
167
|
const xmlChar *name,
|
168
168
|
int len);
|
169
|
-
XMLPUBFUN xmlExpNodePtr
|
169
|
+
XMLPUBFUN xmlExpNodePtr
|
170
170
|
xmlExpNewOr (xmlExpCtxtPtr ctxt,
|
171
171
|
xmlExpNodePtr left,
|
172
172
|
xmlExpNodePtr right);
|
173
|
-
XMLPUBFUN xmlExpNodePtr
|
173
|
+
XMLPUBFUN xmlExpNodePtr
|
174
174
|
xmlExpNewSeq (xmlExpCtxtPtr ctxt,
|
175
175
|
xmlExpNodePtr left,
|
176
176
|
xmlExpNodePtr right);
|
177
|
-
XMLPUBFUN xmlExpNodePtr
|
177
|
+
XMLPUBFUN xmlExpNodePtr
|
178
178
|
xmlExpNewRange (xmlExpCtxtPtr ctxt,
|
179
179
|
xmlExpNodePtr subset,
|
180
180
|
int min,
|
@@ -182,34 +182,34 @@ XMLPUBFUN xmlExpNodePtr XMLCALL
|
|
182
182
|
/*
|
183
183
|
* The really interesting APIs
|
184
184
|
*/
|
185
|
-
XMLPUBFUN int
|
185
|
+
XMLPUBFUN int
|
186
186
|
xmlExpIsNillable(xmlExpNodePtr expr);
|
187
|
-
XMLPUBFUN int
|
187
|
+
XMLPUBFUN int
|
188
188
|
xmlExpMaxToken (xmlExpNodePtr expr);
|
189
|
-
XMLPUBFUN int
|
189
|
+
XMLPUBFUN int
|
190
190
|
xmlExpGetLanguage(xmlExpCtxtPtr ctxt,
|
191
191
|
xmlExpNodePtr expr,
|
192
192
|
const xmlChar**langList,
|
193
193
|
int len);
|
194
|
-
XMLPUBFUN int
|
194
|
+
XMLPUBFUN int
|
195
195
|
xmlExpGetStart (xmlExpCtxtPtr ctxt,
|
196
196
|
xmlExpNodePtr expr,
|
197
197
|
const xmlChar**tokList,
|
198
198
|
int len);
|
199
|
-
XMLPUBFUN xmlExpNodePtr
|
199
|
+
XMLPUBFUN xmlExpNodePtr
|
200
200
|
xmlExpStringDerive(xmlExpCtxtPtr ctxt,
|
201
201
|
xmlExpNodePtr expr,
|
202
202
|
const xmlChar *str,
|
203
203
|
int len);
|
204
|
-
XMLPUBFUN xmlExpNodePtr
|
204
|
+
XMLPUBFUN xmlExpNodePtr
|
205
205
|
xmlExpExpDerive (xmlExpCtxtPtr ctxt,
|
206
206
|
xmlExpNodePtr expr,
|
207
207
|
xmlExpNodePtr sub);
|
208
|
-
XMLPUBFUN int
|
208
|
+
XMLPUBFUN int
|
209
209
|
xmlExpSubsume (xmlExpCtxtPtr ctxt,
|
210
210
|
xmlExpNodePtr expr,
|
211
211
|
xmlExpNodePtr sub);
|
212
|
-
XMLPUBFUN void
|
212
|
+
XMLPUBFUN void
|
213
213
|
xmlExpDump (xmlBufferPtr buf,
|
214
214
|
xmlExpNodePtr expr);
|
215
215
|
#endif /* LIBXML_EXPR_ENABLED */
|