mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-09 04:58:16 +03:00
Fix apibuild for a recently added construct
commit c71f9305a99b6aa03cb08fab31106c9c56f1be4f added __XML_EXTERNC cpp construct which not understood by apibuild, leading to make dist failures, ask to ignore that construct.
This commit is contained in:
parent
45f0abd427
commit
8effcb578e
@ -9,7 +9,7 @@ AC_CANONICAL_HOST
|
||||
|
||||
LIBXML_MAJOR_VERSION=2
|
||||
LIBXML_MINOR_VERSION=9
|
||||
LIBXML_MICRO_VERSION=3
|
||||
LIBXML_MICRO_VERSION=4
|
||||
LIBXML_MICRO_VERSION_SUFFIX=
|
||||
LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION$LIBXML_MICRO_VERSION_SUFFIX
|
||||
LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION
|
||||
|
@ -383,34 +383,6 @@ A:link, A:visited, A:active { text-decoration: underline }
|
||||
<a href="html/libxml-xmlregexp.html#xmlRegexpIsDeterminist">xmlRegexpIsDeterminist</a><br />
|
||||
</dd><dt>dict</dt><dd><a href="html/libxml-tree.html#_xmlDoc">_xmlDoc</a><br />
|
||||
</dd><dt>dictionaries</dt><dd><a href="html/libxml-parserInternals.html#XML_MAX_NAME_LENGTH">XML_MAX_NAME_LENGTH</a><br />
|
||||
</dd><dt>dictionary</dt><dd><a href="html/libxml-parserInternals.html#XML_MAX_DICTIONARY_LIMIT">XML_MAX_DICTIONARY_LIMIT</a><br />
|
||||
<a href="html/libxml-parser.html#_xmlParserCtxt">_xmlParserCtxt</a><br />
|
||||
<a href="html/libxml-xpath.html#_xmlXPathContext">_xmlXPathContext</a><br />
|
||||
<a href="html/libxml-dict.html#xmlDictCleanup">xmlDictCleanup</a><br />
|
||||
<a href="html/libxml-dict.html#xmlDictCreate">xmlDictCreate</a><br />
|
||||
<a href="html/libxml-dict.html#xmlDictCreateSub">xmlDictCreateSub</a><br />
|
||||
<a href="html/libxml-dict.html#xmlDictGetUsage">xmlDictGetUsage</a><br />
|
||||
<a href="html/libxml-dict.html#xmlDictReference">xmlDictReference</a><br />
|
||||
<a href="html/libxml-dict.html#xmlDictSetLimit">xmlDictSetLimit</a><br />
|
||||
<a href="html/libxml-hash.html#xmlHashCreateDict">xmlHashCreateDict</a><br />
|
||||
<a href="html/libxml-dict.html#xmlInitializeDict">xmlInitializeDict</a><br />
|
||||
<a href="html/libxml-pattern.html#xmlPatterncompile">xmlPatterncompile</a><br />
|
||||
<a href="html/libxml-pattern.html#xmlStreamPush">xmlStreamPush</a><br />
|
||||
<a href="html/libxml-pattern.html#xmlStreamPushAttr">xmlStreamPushAttr</a><br />
|
||||
<a href="html/libxml-pattern.html#xmlStreamPushNode">xmlStreamPushNode</a><br />
|
||||
</dd><dt>dictionnary</dt><dd><a href="html/libxml-parser.html#_xmlParserCtxt">_xmlParserCtxt</a><br />
|
||||
<a href="html/libxml-dict.html#xmlDictCreate">xmlDictCreate</a><br />
|
||||
<a href="html/libxml-dict.html#xmlDictCreateSub">xmlDictCreateSub</a><br />
|
||||
<a href="html/libxml-dict.html#xmlDictExists">xmlDictExists</a><br />
|
||||
<a href="html/libxml-dict.html#xmlDictFree">xmlDictFree</a><br />
|
||||
<a href="html/libxml-dict.html#xmlDictGetUsage">xmlDictGetUsage</a><br />
|
||||
<a href="html/libxml-dict.html#xmlDictLookup">xmlDictLookup</a><br />
|
||||
<a href="html/libxml-dict.html#xmlDictOwns">xmlDictOwns</a><br />
|
||||
<a href="html/libxml-dict.html#xmlDictQLookup">xmlDictQLookup</a><br />
|
||||
<a href="html/libxml-dict.html#xmlDictReference">xmlDictReference</a><br />
|
||||
<a href="html/libxml-dict.html#xmlDictSetLimit">xmlDictSetLimit</a><br />
|
||||
<a href="html/libxml-dict.html#xmlDictSize">xmlDictSize</a><br />
|
||||
<a href="html/libxml-xmlregexp.html#xmlExpNewCtxt">xmlExpNewCtxt</a><br />
|
||||
</dd><dt>did</dt><dd><a href="html/libxml-schemasInternals.html#XML_SCHEMAS_TYPE_BLOCK_DEFAULT">XML_SCHEMAS_TYPE_BLOCK_DEFAULT</a><br />
|
||||
<a href="html/libxml-xmlreader.html#xmlTextReaderGetRemainder">xmlTextReaderGetRemainder</a><br />
|
||||
<a href="html/libxml-xmlreader.html#xmlTextReaderStandalone">xmlTextReaderStandalone</a><br />
|
||||
|
@ -81,6 +81,7 @@ ignored_words = {
|
||||
"ATTRIBUTE_PRINTF": (5, "macro for gcc printf args checking extension"),
|
||||
"LIBXML_ATTR_FORMAT": (5, "macro for gcc printf args checking extension"),
|
||||
"LIBXML_ATTR_ALLOC_SIZE": (3, "macro for gcc checking extension"),
|
||||
"__XML_EXTERNC": (0, "Special macro added for os400"),
|
||||
}
|
||||
|
||||
def escape(raw):
|
||||
|
@ -33,6 +33,6 @@
|
||||
<h2>
|
||||
<span class="refentrytitle">libxml2 API Modules</span>
|
||||
</h2>
|
||||
<p><a href="libxml2-DOCBparser.html">DOCBparser</a> - old DocBook SGML parser<br/><a href="libxml2-HTMLparser.html">HTMLparser</a> - interface for an HTML 4.0 non-verifying parser<br/><a href="libxml2-HTMLtree.html">HTMLtree</a> - specific APIs to process HTML tree, especially serialization<br/><a href="libxml2-SAX.html">SAX</a> - Old SAX version 1 handler, deprecated<br/><a href="libxml2-SAX2.html">SAX2</a> - SAX2 parser interface used to build the DOM tree<br/><a href="libxml2-c14n.html">c14n</a> - Provide Canonical XML and Exclusive XML Canonicalization<br/><a href="libxml2-catalog.html">catalog</a> - interfaces to the Catalog handling system<br/><a href="libxml2-chvalid.html">chvalid</a> - Unicode character range checking<br/><a href="libxml2-debugXML.html">debugXML</a> - Tree debugging APIs<br/><a href="libxml2-dict.html">dict</a> - string dictionnary<br/><a href="libxml2-encoding.html">encoding</a> - interface for the encoding conversion functions<br/><a href="libxml2-entities.html">entities</a> - interface for the XML entities handling<br/><a href="libxml2-globals.html">globals</a> - interface for all global variables of the library<br/><a href="libxml2-hash.html">hash</a> - Chained hash tables<br/><a href="libxml2-list.html">list</a> - lists interfaces<br/><a href="libxml2-nanoftp.html">nanoftp</a> - minimal FTP implementation<br/><a href="libxml2-nanohttp.html">nanohttp</a> - minimal HTTP implementation<br/><a href="libxml2-parser.html">parser</a> - the core parser module<br/><a href="libxml2-parserInternals.html">parserInternals</a> - internals routines and limits exported by the parser.<br/><a href="libxml2-pattern.html">pattern</a> - pattern expression handling<br/><a href="libxml2-relaxng.html">relaxng</a> - implementation of the Relax-NG validation<br/><a href="libxml2-schemasInternals.html">schemasInternals</a> - internal interfaces for XML Schemas<br/><a href="libxml2-schematron.html">schematron</a> - XML Schemastron implementation<br/><a href="libxml2-threads.html">threads</a> - interfaces for thread handling<br/><a href="libxml2-tree.html">tree</a> - interfaces for tree manipulation<br/><a href="libxml2-uri.html">uri</a> - library of generic URI related routines<br/><a href="libxml2-valid.html">valid</a> - The DTD validation<br/><a href="libxml2-xinclude.html">xinclude</a> - implementation of XInclude<br/><a href="libxml2-xlink.html">xlink</a> - unfinished XLink detection module<br/><a href="libxml2-xmlIO.html">xmlIO</a> - interface for the I/O interfaces used by the parser<br/><a href="libxml2-xmlautomata.html">xmlautomata</a> - API to build regexp automata<br/><a href="libxml2-xmlerror.html">xmlerror</a> - error handling<br/><a href="libxml2-xmlexports.html">xmlexports</a> - macros for marking symbols as exportable/importable.<br/><a href="libxml2-xmlmemory.html">xmlmemory</a> - interface for the memory allocator<br/><a href="libxml2-xmlmodule.html">xmlmodule</a> - dynamic module loading<br/><a href="libxml2-xmlreader.html">xmlreader</a> - the XMLReader implementation<br/><a href="libxml2-xmlregexp.html">xmlregexp</a> - regular expressions handling<br/><a href="libxml2-xmlsave.html">xmlsave</a> - the XML document serializer<br/><a href="libxml2-xmlschemas.html">xmlschemas</a> - incomplete XML Schemas structure implementation<br/><a href="libxml2-xmlschemastypes.html">xmlschemastypes</a> - implementation of XML Schema Datatypes<br/><a href="libxml2-xmlstring.html">xmlstring</a> - set of routines to process strings<br/><a href="libxml2-xmlunicode.html">xmlunicode</a> - Unicode character APIs<br/><a href="libxml2-xmlversion.html">xmlversion</a> - compile-time version informations<br/><a href="libxml2-xmlwriter.html">xmlwriter</a> - text writing API for XML<br/><a href="libxml2-xpath.html">xpath</a> - XML Path Language implementation<br/><a href="libxml2-xpathInternals.html">xpathInternals</a> - internal interfaces for XML Path Language implementation<br/><a href="libxml2-xpointer.html">xpointer</a> - API to handle XML Pointers<br/></p>
|
||||
<p><a href="libxml2-DOCBparser.html">DOCBparser</a> - old DocBook SGML parser<br/><a href="libxml2-HTMLparser.html">HTMLparser</a> - interface for an HTML 4.0 non-verifying parser<br/><a href="libxml2-HTMLtree.html">HTMLtree</a> - specific APIs to process HTML tree, especially serialization<br/><a href="libxml2-SAX.html">SAX</a> - Old SAX version 1 handler, deprecated<br/><a href="libxml2-SAX2.html">SAX2</a> - SAX2 parser interface used to build the DOM tree<br/><a href="libxml2-c14n.html">c14n</a> - Provide Canonical XML and Exclusive XML Canonicalization<br/><a href="libxml2-catalog.html">catalog</a> - interfaces to the Catalog handling system<br/><a href="libxml2-chvalid.html">chvalid</a> - Unicode character range checking<br/><a href="libxml2-debugXML.html">debugXML</a> - Tree debugging APIs<br/><a href="libxml2-dict.html">dict</a> - string dictionary<br/><a href="libxml2-encoding.html">encoding</a> - interface for the encoding conversion functions<br/><a href="libxml2-entities.html">entities</a> - interface for the XML entities handling<br/><a href="libxml2-globals.html">globals</a> - interface for all global variables of the library<br/><a href="libxml2-hash.html">hash</a> - Chained hash tables<br/><a href="libxml2-list.html">list</a> - lists interfaces<br/><a href="libxml2-nanoftp.html">nanoftp</a> - minimal FTP implementation<br/><a href="libxml2-nanohttp.html">nanohttp</a> - minimal HTTP implementation<br/><a href="libxml2-parser.html">parser</a> - the core parser module<br/><a href="libxml2-parserInternals.html">parserInternals</a> - internals routines and limits exported by the parser.<br/><a href="libxml2-pattern.html">pattern</a> - pattern expression handling<br/><a href="libxml2-relaxng.html">relaxng</a> - implementation of the Relax-NG validation<br/><a href="libxml2-schemasInternals.html">schemasInternals</a> - internal interfaces for XML Schemas<br/><a href="libxml2-schematron.html">schematron</a> - XML Schemastron implementation<br/><a href="libxml2-threads.html">threads</a> - interfaces for thread handling<br/><a href="libxml2-tree.html">tree</a> - interfaces for tree manipulation<br/><a href="libxml2-uri.html">uri</a> - library of generic URI related routines<br/><a href="libxml2-valid.html">valid</a> - The DTD validation<br/><a href="libxml2-xinclude.html">xinclude</a> - implementation of XInclude<br/><a href="libxml2-xlink.html">xlink</a> - unfinished XLink detection module<br/><a href="libxml2-xmlIO.html">xmlIO</a> - interface for the I/O interfaces used by the parser<br/><a href="libxml2-xmlautomata.html">xmlautomata</a> - API to build regexp automata<br/><a href="libxml2-xmlerror.html">xmlerror</a> - error handling<br/><a href="libxml2-xmlexports.html">xmlexports</a> - macros for marking symbols as exportable/importable.<br/><a href="libxml2-xmlmemory.html">xmlmemory</a> - interface for the memory allocator<br/><a href="libxml2-xmlmodule.html">xmlmodule</a> - dynamic module loading<br/><a href="libxml2-xmlreader.html">xmlreader</a> - the XMLReader implementation<br/><a href="libxml2-xmlregexp.html">xmlregexp</a> - regular expressions handling<br/><a href="libxml2-xmlsave.html">xmlsave</a> - the XML document serializer<br/><a href="libxml2-xmlschemas.html">xmlschemas</a> - incomplete XML Schemas structure implementation<br/><a href="libxml2-xmlschemastypes.html">xmlschemastypes</a> - implementation of XML Schema Datatypes<br/><a href="libxml2-xmlstring.html">xmlstring</a> - set of routines to process strings<br/><a href="libxml2-xmlunicode.html">xmlunicode</a> - Unicode character APIs<br/><a href="libxml2-xmlversion.html">xmlversion</a> - compile-time version informations<br/><a href="libxml2-xmlwriter.html">xmlwriter</a> - text writing API for XML<br/><a href="libxml2-xpath.html">xpath</a> - XML Path Language implementation<br/><a href="libxml2-xpathInternals.html">xpathInternals</a> - internal interfaces for XML Path Language implementation<br/><a href="libxml2-xpointer.html">xpointer</a> - API to handle XML Pointers<br/></p>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<title>dict: string dictionnary</title>
|
||||
<title>dict: string dictionary</title>
|
||||
<meta name="generator" content="Libxml2 devhelp stylesheet"/>
|
||||
<link rel="start" href="index.html" title="libxml2 Reference Manual"/>
|
||||
<link rel="up" href="general.html" title="API"/>
|
||||
@ -38,7 +38,7 @@
|
||||
<h2>
|
||||
<span class="refentrytitle">dict</span>
|
||||
</h2>
|
||||
<p>dict - string dictionnary</p>
|
||||
<p>dict - string dictionary</p>
|
||||
<p>dictionary of reusable strings, just used to avoid allocation and freeing operations. </p>
|
||||
<p>Author(s): Daniel Veillard </p>
|
||||
<div class="refsynopsisdiv">
|
||||
@ -82,47 +82,47 @@ The content of this structure is not made public by the API.
|
||||
<hr/>
|
||||
<div class="refsect2" lang="en"><h3><a name="xmlDictCreate"/>xmlDictCreate ()</h3><pre class="programlisting"><a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> xmlDictCreate (void)<br/>
|
||||
</pre><p>Create a new dictionary</p>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the newly created dictionnary, or NULL if an error occured.</td></tr></tbody></table></div></div>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the newly created dictionary, or NULL if an error occured.</td></tr></tbody></table></div></div>
|
||||
<hr/>
|
||||
<div class="refsect2" lang="en"><h3><a name="xmlDictCreateSub"/>xmlDictCreateSub ()</h3><pre class="programlisting"><a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> xmlDictCreateSub (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> sub)<br/>
|
||||
</pre><p>Create a new dictionary, inheriting strings from the read-only dictionnary @sub. On lookup, strings are first searched in the new dictionnary, then in @sub, and if not found are created in the new dictionnary.</p>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>sub</tt></i>:</span></td><td>an existing dictionnary</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the newly created dictionnary, or NULL if an error occured.</td></tr></tbody></table></div></div>
|
||||
</pre><p>Create a new dictionary, inheriting strings from the read-only dictionary @sub. On lookup, strings are first searched in the new dictionary, then in @sub, and if not found are created in the new dictionary.</p>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>sub</tt></i>:</span></td><td>an existing dictionary</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the newly created dictionary, or NULL if an error occured.</td></tr></tbody></table></div></div>
|
||||
<hr/>
|
||||
<div class="refsect2" lang="en"><h3><a name="xmlDictExists"/>xmlDictExists ()</h3><pre class="programlisting">const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlDictExists (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br/> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name, <br/> int len)<br/>
|
||||
</pre><p>Check if the @name exists in the dictionnary @dict.</p>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the name of the userdata</td></tr><tr><td><span class="term"><i><tt>len</tt></i>:</span></td><td>the length of the name, if -1 it is recomputed</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the internal copy of the name or NULL if not found.</td></tr></tbody></table></div></div>
|
||||
</pre><p>Check if the @name exists in the dictionary @dict.</p>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionary</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the name of the userdata</td></tr><tr><td><span class="term"><i><tt>len</tt></i>:</span></td><td>the length of the name, if -1 it is recomputed</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the internal copy of the name or NULL if not found.</td></tr></tbody></table></div></div>
|
||||
<hr/>
|
||||
<div class="refsect2" lang="en"><h3><a name="xmlDictFree"/>xmlDictFree ()</h3><pre class="programlisting">void xmlDictFree (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br/>
|
||||
</pre><p>Free the hash @dict and its contents. The userdata is deallocated with @f if provided.</p>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr></tbody></table></div></div>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionary</td></tr></tbody></table></div></div>
|
||||
<hr/>
|
||||
<div class="refsect2" lang="en"><h3><a name="xmlDictGetUsage"/>xmlDictGetUsage ()</h3><pre class="programlisting">size_t xmlDictGetUsage (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br/>
|
||||
</pre><p>Get how much memory is used by a dictionary for strings Added in 2.9.0</p>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the amount of strings allocated</td></tr></tbody></table></div></div>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionary</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the amount of strings allocated</td></tr></tbody></table></div></div>
|
||||
<hr/>
|
||||
<div class="refsect2" lang="en"><h3><a name="xmlDictLookup"/>xmlDictLookup ()</h3><pre class="programlisting">const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlDictLookup (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br/> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name, <br/> int len)<br/>
|
||||
</pre><p>Add the @name to the dictionnary @dict if not present.</p>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the name of the userdata</td></tr><tr><td><span class="term"><i><tt>len</tt></i>:</span></td><td>the length of the name, if -1 it is recomputed</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the internal copy of the name or NULL in case of internal error</td></tr></tbody></table></div></div>
|
||||
</pre><p>Add the @name to the dictionary @dict if not present.</p>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionary</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the name of the userdata</td></tr><tr><td><span class="term"><i><tt>len</tt></i>:</span></td><td>the length of the name, if -1 it is recomputed</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the internal copy of the name or NULL in case of internal error</td></tr></tbody></table></div></div>
|
||||
<hr/>
|
||||
<div class="refsect2" lang="en"><h3><a name="xmlDictOwns"/>xmlDictOwns ()</h3><pre class="programlisting">int xmlDictOwns (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br/> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * str)<br/>
|
||||
</pre><p>check if a string is owned by the disctionary</p>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>str</tt></i>:</span></td><td>the string</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>1 if true, 0 if false and -1 in case of error -1 in case of error</td></tr></tbody></table></div></div>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionary</td></tr><tr><td><span class="term"><i><tt>str</tt></i>:</span></td><td>the string</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>1 if true, 0 if false and -1 in case of error -1 in case of error</td></tr></tbody></table></div></div>
|
||||
<hr/>
|
||||
<div class="refsect2" lang="en"><h3><a name="xmlDictQLookup"/>xmlDictQLookup ()</h3><pre class="programlisting">const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlDictQLookup (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br/> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * prefix, <br/> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name)<br/>
|
||||
</pre><p>Add the QName @prefix:@name to the hash @dict if not present.</p>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>prefix</tt></i>:</span></td><td>the prefix</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the name</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the internal copy of the QName or NULL in case of internal error</td></tr></tbody></table></div></div>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionary</td></tr><tr><td><span class="term"><i><tt>prefix</tt></i>:</span></td><td>the prefix</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the name</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the internal copy of the QName or NULL in case of internal error</td></tr></tbody></table></div></div>
|
||||
<hr/>
|
||||
<div class="refsect2" lang="en"><h3><a name="xmlDictReference"/>xmlDictReference ()</h3><pre class="programlisting">int xmlDictReference (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br/>
|
||||
</pre><p>Increment the <a href="libxml2-SAX.html#reference">reference</a> counter of a dictionary</p>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0 in case of success and -1 in case of error</td></tr></tbody></table></div></div>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionary</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0 in case of success and -1 in case of error</td></tr></tbody></table></div></div>
|
||||
<hr/>
|
||||
<div class="refsect2" lang="en"><h3><a name="xmlDictSetLimit"/>xmlDictSetLimit ()</h3><pre class="programlisting">size_t xmlDictSetLimit (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br/> size_t limit)<br/>
|
||||
</pre><p>Set a size limit for the dictionary Added in 2.9.0</p>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>limit</tt></i>:</span></td><td>the limit in bytes</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the previous limit of the dictionary or 0</td></tr></tbody></table></div></div>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionary</td></tr><tr><td><span class="term"><i><tt>limit</tt></i>:</span></td><td>the limit in bytes</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the previous limit of the dictionary or 0</td></tr></tbody></table></div></div>
|
||||
<hr/>
|
||||
<div class="refsect2" lang="en"><h3><a name="xmlDictSize"/>xmlDictSize ()</h3><pre class="programlisting">int xmlDictSize (<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br/>
|
||||
</pre><p>Query the number of elements installed in the hash @dict.</p>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the number of elements in the dictionnary or -1 in case of error</td></tr></tbody></table></div></div>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionary</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the number of elements in the dictionary or -1 in case of error</td></tr></tbody></table></div></div>
|
||||
<hr/>
|
||||
<div class="refsect2" lang="en"><h3><a name="xmlInitializeDict"/>xmlInitializeDict ()</h3><pre class="programlisting">int xmlInitializeDict (void)<br/>
|
||||
</pre><p>Do the dictionary mutex initialization. this function is deprecated</p>
|
||||
|
@ -300,7 +300,7 @@ void <a href="#xmlSetExternalEntityLoader">xmlSetExternalEntityLoader</a> (<a hr
|
||||
<a name="XML_PARSE_SAX1">XML_PARSE_SAX1</a> = 512 /* use the SAX1 interface internally */
|
||||
<a name="XML_PARSE_XINCLUDE">XML_PARSE_XINCLUDE</a> = 1024 /* Implement XInclude substitition */
|
||||
<a name="XML_PARSE_NONET">XML_PARSE_NONET</a> = 2048 /* Forbid network access */
|
||||
<a name="XML_PARSE_NODICT">XML_PARSE_NODICT</a> = 4096 /* Do not reuse the context dictionnary */
|
||||
<a name="XML_PARSE_NODICT">XML_PARSE_NODICT</a> = 4096 /* Do not reuse the context dictionary */
|
||||
<a name="XML_PARSE_NSCLEAN">XML_PARSE_NSCLEAN</a> = 8192 /* remove redundant namespaces declarations */
|
||||
<a name="XML_PARSE_NOCDATA">XML_PARSE_NOCDATA</a> = 16384 /* merge CDATA as text nodes */
|
||||
<a name="XML_PARSE_NOXINCNODE">XML_PARSE_NOXINCNODE</a> = 32768 /* do not generate XINCLUDE START/END nodes */
|
||||
|
@ -782,7 +782,7 @@ The content of this structure is not made public by the API.
|
||||
void * catalogs : document's own catalog
|
||||
int recovery : run in recovery mode
|
||||
int progressive : is this a progressive parsing
|
||||
<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict : dictionnary for the parser
|
||||
<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict : dictionary for the parser
|
||||
const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * * atts : array for the attributes callbacks
|
||||
int maxatts : the size of the array
|
||||
int docdict : * pre-interned strings *
|
||||
|
@ -200,7 +200,7 @@ The content of this structure is not made public by the API.
|
||||
<hr/>
|
||||
<div class="refsect2" lang="en"><h3><a name="xmlExpNewCtxt"/>xmlExpNewCtxt ()</h3><pre class="programlisting"><a href="libxml2-xmlregexp.html#xmlExpCtxtPtr">xmlExpCtxtPtr</a> xmlExpNewCtxt (int maxNodes, <br/> <a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br/>
|
||||
</pre><p>Creates a new context for manipulating expressions</p>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>maxNodes</tt></i>:</span></td><td>the maximum number of nodes</td></tr><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>optional dictionnary to use internally</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the context or NULL in case of error</td></tr></tbody></table></div></div>
|
||||
<div class="variablelist"><table border="0"><col align="left"/><tbody><tr><td><span class="term"><i><tt>maxNodes</tt></i>:</span></td><td>the maximum number of nodes</td></tr><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>optional dictionary to use internally</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the context or NULL in case of error</td></tr></tbody></table></div></div>
|
||||
<hr/>
|
||||
<div class="refsect2" lang="en"><h3><a name="xmlExpNewOr"/>xmlExpNewOr ()</h3><pre class="programlisting"><a href="libxml2-xmlregexp.html#xmlExpNodePtr">xmlExpNodePtr</a> xmlExpNewOr (<a href="libxml2-xmlregexp.html#xmlExpCtxtPtr">xmlExpCtxtPtr</a> ctxt, <br/> <a href="libxml2-xmlregexp.html#xmlExpNodePtr">xmlExpNodePtr</a> left, <br/> <a href="libxml2-xmlregexp.html#xmlExpNodePtr">xmlExpNodePtr</a> right)<br/>
|
||||
</pre><p>Get the atom associated to the choice @left | @right Note that @left and @right are consumed in the operation, to keep an handle on them use xmlExpRef() and use xmlExpFree() to release them, this is true even in case of failure (unless ctxt == NULL).</p>
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -33,26 +33,26 @@ The content of this structure is not made public by the API.
|
||||
</pre><p>Free the dictionary mutex. Do not call unless sure the library is not in use anymore !</p>
|
||||
<h3><a name="xmlDictCreate" id="xmlDictCreate"></a>Function: xmlDictCreate</h3><pre class="programlisting"><a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> xmlDictCreate (void)<br />
|
||||
</pre><p>Create a new dictionary</p>
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the newly created dictionnary, or NULL if an error occured.</td></tr></tbody></table></div><h3><a name="xmlDictCreateSub" id="xmlDictCreateSub"></a>Function: xmlDictCreateSub</h3><pre class="programlisting"><a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> xmlDictCreateSub (<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> sub)<br />
|
||||
</pre><p>Create a new dictionary, inheriting strings from the read-only dictionnary @sub. On lookup, strings are first searched in the new dictionnary, then in @sub, and if not found are created in the new dictionnary.</p>
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>sub</tt></i>:</span></td><td>an existing dictionnary</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the newly created dictionnary, or NULL if an error occured.</td></tr></tbody></table></div><h3><a name="xmlDictExists" id="xmlDictExists"></a>Function: xmlDictExists</h3><pre class="programlisting">const <a href="libxml-xmlstring.html#xmlChar">xmlChar</a> * xmlDictExists (<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br /> const <a href="libxml-xmlstring.html#xmlChar">xmlChar</a> * name, <br /> int len)<br />
|
||||
</pre><p>Check if the @name exists in the dictionnary @dict.</p>
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the name of the userdata</td></tr><tr><td><span class="term"><i><tt>len</tt></i>:</span></td><td>the length of the name, if -1 it is recomputed</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the internal copy of the name or NULL if not found.</td></tr></tbody></table></div><h3><a name="xmlDictFree" id="xmlDictFree"></a>Function: xmlDictFree</h3><pre class="programlisting">void xmlDictFree (<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br />
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the newly created dictionary, or NULL if an error occured.</td></tr></tbody></table></div><h3><a name="xmlDictCreateSub" id="xmlDictCreateSub"></a>Function: xmlDictCreateSub</h3><pre class="programlisting"><a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> xmlDictCreateSub (<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> sub)<br />
|
||||
</pre><p>Create a new dictionary, inheriting strings from the read-only dictionary @sub. On lookup, strings are first searched in the new dictionary, then in @sub, and if not found are created in the new dictionary.</p>
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>sub</tt></i>:</span></td><td>an existing dictionary</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the newly created dictionary, or NULL if an error occured.</td></tr></tbody></table></div><h3><a name="xmlDictExists" id="xmlDictExists"></a>Function: xmlDictExists</h3><pre class="programlisting">const <a href="libxml-xmlstring.html#xmlChar">xmlChar</a> * xmlDictExists (<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br /> const <a href="libxml-xmlstring.html#xmlChar">xmlChar</a> * name, <br /> int len)<br />
|
||||
</pre><p>Check if the @name exists in the dictionary @dict.</p>
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionary</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the name of the userdata</td></tr><tr><td><span class="term"><i><tt>len</tt></i>:</span></td><td>the length of the name, if -1 it is recomputed</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the internal copy of the name or NULL if not found.</td></tr></tbody></table></div><h3><a name="xmlDictFree" id="xmlDictFree"></a>Function: xmlDictFree</h3><pre class="programlisting">void xmlDictFree (<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br />
|
||||
</pre><p>Free the hash @dict and its contents. The userdata is deallocated with @f if provided.</p>
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr></tbody></table></div><h3><a name="xmlDictGetUsage" id="xmlDictGetUsage"></a>Function: xmlDictGetUsage</h3><pre class="programlisting">size_t xmlDictGetUsage (<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br />
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionary</td></tr></tbody></table></div><h3><a name="xmlDictGetUsage" id="xmlDictGetUsage"></a>Function: xmlDictGetUsage</h3><pre class="programlisting">size_t xmlDictGetUsage (<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br />
|
||||
</pre><p>Get how much memory is used by a dictionary for strings Added in 2.9.0</p>
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the amount of strings allocated</td></tr></tbody></table></div><h3><a name="xmlDictLookup" id="xmlDictLookup"></a>Function: xmlDictLookup</h3><pre class="programlisting">const <a href="libxml-xmlstring.html#xmlChar">xmlChar</a> * xmlDictLookup (<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br /> const <a href="libxml-xmlstring.html#xmlChar">xmlChar</a> * name, <br /> int len)<br />
|
||||
</pre><p>Add the @name to the dictionnary @dict if not present.</p>
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the name of the userdata</td></tr><tr><td><span class="term"><i><tt>len</tt></i>:</span></td><td>the length of the name, if -1 it is recomputed</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the internal copy of the name or NULL in case of internal error</td></tr></tbody></table></div><h3><a name="xmlDictOwns" id="xmlDictOwns"></a>Function: xmlDictOwns</h3><pre class="programlisting">int xmlDictOwns (<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br /> const <a href="libxml-xmlstring.html#xmlChar">xmlChar</a> * str)<br />
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionary</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the amount of strings allocated</td></tr></tbody></table></div><h3><a name="xmlDictLookup" id="xmlDictLookup"></a>Function: xmlDictLookup</h3><pre class="programlisting">const <a href="libxml-xmlstring.html#xmlChar">xmlChar</a> * xmlDictLookup (<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br /> const <a href="libxml-xmlstring.html#xmlChar">xmlChar</a> * name, <br /> int len)<br />
|
||||
</pre><p>Add the @name to the dictionary @dict if not present.</p>
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionary</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the name of the userdata</td></tr><tr><td><span class="term"><i><tt>len</tt></i>:</span></td><td>the length of the name, if -1 it is recomputed</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the internal copy of the name or NULL in case of internal error</td></tr></tbody></table></div><h3><a name="xmlDictOwns" id="xmlDictOwns"></a>Function: xmlDictOwns</h3><pre class="programlisting">int xmlDictOwns (<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br /> const <a href="libxml-xmlstring.html#xmlChar">xmlChar</a> * str)<br />
|
||||
</pre><p>check if a string is owned by the disctionary</p>
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>str</tt></i>:</span></td><td>the string</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>1 if true, 0 if false and -1 in case of error -1 in case of error</td></tr></tbody></table></div><h3><a name="xmlDictQLookup" id="xmlDictQLookup"></a>Function: xmlDictQLookup</h3><pre class="programlisting">const <a href="libxml-xmlstring.html#xmlChar">xmlChar</a> * xmlDictQLookup (<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br /> const <a href="libxml-xmlstring.html#xmlChar">xmlChar</a> * prefix, <br /> const <a href="libxml-xmlstring.html#xmlChar">xmlChar</a> * name)<br />
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionary</td></tr><tr><td><span class="term"><i><tt>str</tt></i>:</span></td><td>the string</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>1 if true, 0 if false and -1 in case of error -1 in case of error</td></tr></tbody></table></div><h3><a name="xmlDictQLookup" id="xmlDictQLookup"></a>Function: xmlDictQLookup</h3><pre class="programlisting">const <a href="libxml-xmlstring.html#xmlChar">xmlChar</a> * xmlDictQLookup (<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br /> const <a href="libxml-xmlstring.html#xmlChar">xmlChar</a> * prefix, <br /> const <a href="libxml-xmlstring.html#xmlChar">xmlChar</a> * name)<br />
|
||||
</pre><p>Add the QName @prefix:@name to the hash @dict if not present.</p>
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>prefix</tt></i>:</span></td><td>the prefix</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the name</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the internal copy of the QName or NULL in case of internal error</td></tr></tbody></table></div><h3><a name="xmlDictReference" id="xmlDictReference"></a>Function: xmlDictReference</h3><pre class="programlisting">int xmlDictReference (<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br />
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionary</td></tr><tr><td><span class="term"><i><tt>prefix</tt></i>:</span></td><td>the prefix</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the name</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the internal copy of the QName or NULL in case of internal error</td></tr></tbody></table></div><h3><a name="xmlDictReference" id="xmlDictReference"></a>Function: xmlDictReference</h3><pre class="programlisting">int xmlDictReference (<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br />
|
||||
</pre><p>Increment the <a href="libxml-SAX.html#reference">reference</a> counter of a dictionary</p>
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0 in case of success and -1 in case of error</td></tr></tbody></table></div><h3><a name="xmlDictSetLimit" id="xmlDictSetLimit"></a>Function: xmlDictSetLimit</h3><pre class="programlisting">size_t xmlDictSetLimit (<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br /> size_t limit)<br />
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionary</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0 in case of success and -1 in case of error</td></tr></tbody></table></div><h3><a name="xmlDictSetLimit" id="xmlDictSetLimit"></a>Function: xmlDictSetLimit</h3><pre class="programlisting">size_t xmlDictSetLimit (<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br /> size_t limit)<br />
|
||||
</pre><p>Set a size limit for the dictionary Added in 2.9.0</p>
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>limit</tt></i>:</span></td><td>the limit in bytes</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the previous limit of the dictionary or 0</td></tr></tbody></table></div><h3><a name="xmlDictSize" id="xmlDictSize"></a>Function: xmlDictSize</h3><pre class="programlisting">int xmlDictSize (<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br />
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionary</td></tr><tr><td><span class="term"><i><tt>limit</tt></i>:</span></td><td>the limit in bytes</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the previous limit of the dictionary or 0</td></tr></tbody></table></div><h3><a name="xmlDictSize" id="xmlDictSize"></a>Function: xmlDictSize</h3><pre class="programlisting">int xmlDictSize (<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br />
|
||||
</pre><p>Query the number of elements installed in the hash @dict.</p>
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionnary</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the number of elements in the dictionnary or -1 in case of error</td></tr></tbody></table></div><h3><a name="xmlInitializeDict" id="xmlInitializeDict"></a>Function: xmlInitializeDict</h3><pre class="programlisting">int xmlInitializeDict (void)<br />
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>the dictionary</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the number of elements in the dictionary or -1 in case of error</td></tr></tbody></table></div><h3><a name="xmlInitializeDict" id="xmlInitializeDict"></a>Function: xmlInitializeDict</h3><pre class="programlisting">int xmlInitializeDict (void)<br />
|
||||
</pre><p>Do the dictionary mutex initialization. this function is deprecated</p>
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>0 if initialization was already done, and 1 if that call led to the initialization</td></tr></tbody></table></div><p><a href="../bugs.html">Daniel Veillard</a></p></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></body></html>
|
||||
|
File diff suppressed because one or more lines are too long
@ -279,7 +279,7 @@ void <a href="#xmlParserInputDeallocate">xmlParserInputDeallocate</a> (<a href="
|
||||
<a name="XML_PARSE_SAX1" id="XML_PARSE_SAX1">XML_PARSE_SAX1</a> = 512 : use the SAX1 interface internally
|
||||
<a name="XML_PARSE_XINCLUDE" id="XML_PARSE_XINCLUDE">XML_PARSE_XINCLUDE</a> = 1024 : Implement XInclude substitition
|
||||
<a name="XML_PARSE_NONET" id="XML_PARSE_NONET">XML_PARSE_NONET</a> = 2048 : Forbid network access
|
||||
<a name="XML_PARSE_NODICT" id="XML_PARSE_NODICT">XML_PARSE_NODICT</a> = 4096 : Do not reuse the context dictionnary
|
||||
<a name="XML_PARSE_NODICT" id="XML_PARSE_NODICT">XML_PARSE_NODICT</a> = 4096 : Do not reuse the context dictionary
|
||||
<a name="XML_PARSE_NSCLEAN" id="XML_PARSE_NSCLEAN">XML_PARSE_NSCLEAN</a> = 8192 : remove redundant namespaces declarations
|
||||
<a name="XML_PARSE_NOCDATA" id="XML_PARSE_NOCDATA">XML_PARSE_NOCDATA</a> = 16384 : merge CDATA as text nodes
|
||||
<a name="XML_PARSE_NOXINCNODE" id="XML_PARSE_NOXINCNODE">XML_PARSE_NOXINCNODE</a> = 32768 : do not generate XINCLUDE START/END nodes
|
||||
|
@ -555,7 +555,7 @@ The content of this structure is not made public by the API.
|
||||
void * catalogs : document's own catalog
|
||||
int recovery : run in recovery mode
|
||||
int progressive : is this a progressive parsing
|
||||
<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> dict : dictionnary for the parser
|
||||
<a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> dict : dictionary for the parser
|
||||
const <a href="libxml-xmlstring.html#xmlChar">xmlChar</a> * * atts : array for the attributes callbacks
|
||||
int maxatts : the size of the array
|
||||
int docdict : * pre-interned strings *
|
||||
|
@ -101,7 +101,7 @@ The content of this structure is not made public by the API.
|
||||
</pre><p>Get the atom associated to this name from that context</p>
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the expression context</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the atom name</td></tr><tr><td><span class="term"><i><tt>len</tt></i>:</span></td><td>the atom name length in byte (or -1);</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the node or NULL in case of error</td></tr></tbody></table></div><h3><a name="xmlExpNewCtxt" id="xmlExpNewCtxt"></a>Function: xmlExpNewCtxt</h3><pre class="programlisting"><a href="libxml-xmlregexp.html#xmlExpCtxtPtr">xmlExpCtxtPtr</a> xmlExpNewCtxt (int maxNodes, <br /> <a href="libxml-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br />
|
||||
</pre><p>Creates a new context for manipulating expressions</p>
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>maxNodes</tt></i>:</span></td><td>the maximum number of nodes</td></tr><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>optional dictionnary to use internally</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the context or NULL in case of error</td></tr></tbody></table></div><h3><a name="xmlExpNewOr" id="xmlExpNewOr"></a>Function: xmlExpNewOr</h3><pre class="programlisting"><a href="libxml-xmlregexp.html#xmlExpNodePtr">xmlExpNodePtr</a> xmlExpNewOr (<a href="libxml-xmlregexp.html#xmlExpCtxtPtr">xmlExpCtxtPtr</a> ctxt, <br /> <a href="libxml-xmlregexp.html#xmlExpNodePtr">xmlExpNodePtr</a> left, <br /> <a href="libxml-xmlregexp.html#xmlExpNodePtr">xmlExpNodePtr</a> right)<br />
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>maxNodes</tt></i>:</span></td><td>the maximum number of nodes</td></tr><tr><td><span class="term"><i><tt>dict</tt></i>:</span></td><td>optional dictionary to use internally</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the context or NULL in case of error</td></tr></tbody></table></div><h3><a name="xmlExpNewOr" id="xmlExpNewOr"></a>Function: xmlExpNewOr</h3><pre class="programlisting"><a href="libxml-xmlregexp.html#xmlExpNodePtr">xmlExpNodePtr</a> xmlExpNewOr (<a href="libxml-xmlregexp.html#xmlExpCtxtPtr">xmlExpCtxtPtr</a> ctxt, <br /> <a href="libxml-xmlregexp.html#xmlExpNodePtr">xmlExpNodePtr</a> left, <br /> <a href="libxml-xmlregexp.html#xmlExpNodePtr">xmlExpNodePtr</a> right)<br />
|
||||
</pre><p>Get the atom associated to the choice @left | @right Note that @left and @right are consumed in the operation, to keep an handle on them use xmlExpRef() and use xmlExpFree() to release them, this is true even in case of failure (unless ctxt == NULL).</p>
|
||||
<div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the expression context</td></tr><tr><td><span class="term"><i><tt>left</tt></i>:</span></td><td>left expression</td></tr><tr><td><span class="term"><i><tt>right</tt></i>:</span></td><td>right expression</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the node or NULL in case of error</td></tr></tbody></table></div><h3><a name="xmlExpNewRange" id="xmlExpNewRange"></a>Function: xmlExpNewRange</h3><pre class="programlisting"><a href="libxml-xmlregexp.html#xmlExpNodePtr">xmlExpNodePtr</a> xmlExpNewRange (<a href="libxml-xmlregexp.html#xmlExpCtxtPtr">xmlExpCtxtPtr</a> ctxt, <br /> <a href="libxml-xmlregexp.html#xmlExpNodePtr">xmlExpNodePtr</a> subset, <br /> int min, <br /> int max)<br />
|
||||
</pre><p>Get the atom associated to the range (@subset){@min, @max} Note that @subset is consumed in the operation, to keep an handle on it use xmlExpRef() and use xmlExpFree() to release it, this is true even in case of failure (unless ctxt == NULL).</p>
|
||||
|
@ -367,7 +367,7 @@
|
||||
<exports symbol='xmlShell' type='function'/>
|
||||
</file>
|
||||
<file name='dict'>
|
||||
<summary>string dictionnary</summary>
|
||||
<summary>string dictionary</summary>
|
||||
<description>dictionary of reusable strings, just used to avoid allocation and freeing operations. </description>
|
||||
<author>Daniel Veillard </author>
|
||||
<exports symbol='xmlDict' type='typedef'/>
|
||||
@ -5142,7 +5142,7 @@ crash if you try to modify the tree)'/>
|
||||
<enum name='XML_PARSE_NOBASEFIX' file='parser' value='262144' type='xmlParserOption' info='do not fixup XINCLUDE xml:base uris'/>
|
||||
<enum name='XML_PARSE_NOBLANKS' file='parser' value='256' type='xmlParserOption' info='remove blank nodes'/>
|
||||
<enum name='XML_PARSE_NOCDATA' file='parser' value='16384' type='xmlParserOption' info='merge CDATA as text nodes'/>
|
||||
<enum name='XML_PARSE_NODICT' file='parser' value='4096' type='xmlParserOption' info='Do not reuse the context dictionnary'/>
|
||||
<enum name='XML_PARSE_NODICT' file='parser' value='4096' type='xmlParserOption' info='Do not reuse the context dictionary'/>
|
||||
<enum name='XML_PARSE_NOENT' file='parser' value='2' type='xmlParserOption' info='substitute entities'/>
|
||||
<enum name='XML_PARSE_NOERROR' file='parser' value='32' type='xmlParserOption' info='suppress error reports'/>
|
||||
<enum name='XML_PARSE_NONET' file='parser' value='2048' type='xmlParserOption' info='Forbid network access'/>
|
||||
@ -6410,7 +6410,7 @@ actually an xmlCharEncoding'/>
|
||||
<field name='catalogs' type='void *' info=' document's own catalog'/>
|
||||
<field name='recovery' type='int' info=' run in recovery mode'/>
|
||||
<field name='progressive' type='int' info=' is this a progressive parsing'/>
|
||||
<field name='dict' type='xmlDictPtr' info=' dictionnary for the parser'/>
|
||||
<field name='dict' type='xmlDictPtr' info=' dictionary for the parser'/>
|
||||
<field name='atts' type='const xmlChar * *' info=' array for the attributes callbacks'/>
|
||||
<field name='maxatts' type='int' info=' the size of the array'/>
|
||||
<field name='docdict' type='int' info='* pre-interned strings
|
||||
@ -9504,65 +9504,65 @@ Could we use @subtypes for this?'/>
|
||||
</function>
|
||||
<function name='xmlDictCreate' file='dict' module='dict'>
|
||||
<info>Create a new dictionary</info>
|
||||
<return type='xmlDictPtr' info='the newly created dictionnary, or NULL if an error occured.'/>
|
||||
<return type='xmlDictPtr' info='the newly created dictionary, or NULL if an error occured.'/>
|
||||
</function>
|
||||
<function name='xmlDictCreateSub' file='dict' module='dict'>
|
||||
<info>Create a new dictionary, inheriting strings from the read-only dictionnary @sub. On lookup, strings are first searched in the new dictionnary, then in @sub, and if not found are created in the new dictionnary.</info>
|
||||
<return type='xmlDictPtr' info='the newly created dictionnary, or NULL if an error occured.'/>
|
||||
<arg name='sub' type='xmlDictPtr' info='an existing dictionnary'/>
|
||||
<info>Create a new dictionary, inheriting strings from the read-only dictionary @sub. On lookup, strings are first searched in the new dictionary, then in @sub, and if not found are created in the new dictionary.</info>
|
||||
<return type='xmlDictPtr' info='the newly created dictionary, or NULL if an error occured.'/>
|
||||
<arg name='sub' type='xmlDictPtr' info='an existing dictionary'/>
|
||||
</function>
|
||||
<function name='xmlDictExists' file='dict' module='dict'>
|
||||
<info>Check if the @name exists in the dictionnary @dict.</info>
|
||||
<info>Check if the @name exists in the dictionary @dict.</info>
|
||||
<return type='const xmlChar *' info='the internal copy of the name or NULL if not found.'/>
|
||||
<arg name='dict' type='xmlDictPtr' info='the dictionnary'/>
|
||||
<arg name='dict' type='xmlDictPtr' info='the dictionary'/>
|
||||
<arg name='name' type='const xmlChar *' info='the name of the userdata'/>
|
||||
<arg name='len' type='int' info='the length of the name, if -1 it is recomputed'/>
|
||||
</function>
|
||||
<function name='xmlDictFree' file='dict' module='dict'>
|
||||
<info>Free the hash @dict and its contents. The userdata is deallocated with @f if provided.</info>
|
||||
<return type='void'/>
|
||||
<arg name='dict' type='xmlDictPtr' info='the dictionnary'/>
|
||||
<arg name='dict' type='xmlDictPtr' info='the dictionary'/>
|
||||
</function>
|
||||
<function name='xmlDictGetUsage' file='dict' module='dict'>
|
||||
<info>Get how much memory is used by a dictionary for strings Added in 2.9.0</info>
|
||||
<return type='size_t' info='the amount of strings allocated'/>
|
||||
<arg name='dict' type='xmlDictPtr' info='the dictionnary'/>
|
||||
<arg name='dict' type='xmlDictPtr' info='the dictionary'/>
|
||||
</function>
|
||||
<function name='xmlDictLookup' file='dict' module='dict'>
|
||||
<info>Add the @name to the dictionnary @dict if not present.</info>
|
||||
<info>Add the @name to the dictionary @dict if not present.</info>
|
||||
<return type='const xmlChar *' info='the internal copy of the name or NULL in case of internal error'/>
|
||||
<arg name='dict' type='xmlDictPtr' info='the dictionnary'/>
|
||||
<arg name='dict' type='xmlDictPtr' info='the dictionary'/>
|
||||
<arg name='name' type='const xmlChar *' info='the name of the userdata'/>
|
||||
<arg name='len' type='int' info='the length of the name, if -1 it is recomputed'/>
|
||||
</function>
|
||||
<function name='xmlDictOwns' file='dict' module='dict'>
|
||||
<info>check if a string is owned by the disctionary</info>
|
||||
<return type='int' info='1 if true, 0 if false and -1 in case of error -1 in case of error'/>
|
||||
<arg name='dict' type='xmlDictPtr' info='the dictionnary'/>
|
||||
<arg name='dict' type='xmlDictPtr' info='the dictionary'/>
|
||||
<arg name='str' type='const xmlChar *' info='the string'/>
|
||||
</function>
|
||||
<function name='xmlDictQLookup' file='dict' module='dict'>
|
||||
<info>Add the QName @prefix:@name to the hash @dict if not present.</info>
|
||||
<return type='const xmlChar *' info='the internal copy of the QName or NULL in case of internal error'/>
|
||||
<arg name='dict' type='xmlDictPtr' info='the dictionnary'/>
|
||||
<arg name='dict' type='xmlDictPtr' info='the dictionary'/>
|
||||
<arg name='prefix' type='const xmlChar *' info='the prefix'/>
|
||||
<arg name='name' type='const xmlChar *' info='the name'/>
|
||||
</function>
|
||||
<function name='xmlDictReference' file='dict' module='dict'>
|
||||
<info>Increment the reference counter of a dictionary</info>
|
||||
<return type='int' info='0 in case of success and -1 in case of error'/>
|
||||
<arg name='dict' type='xmlDictPtr' info='the dictionnary'/>
|
||||
<arg name='dict' type='xmlDictPtr' info='the dictionary'/>
|
||||
</function>
|
||||
<function name='xmlDictSetLimit' file='dict' module='dict'>
|
||||
<info>Set a size limit for the dictionary Added in 2.9.0</info>
|
||||
<return type='size_t' info='the previous limit of the dictionary or 0'/>
|
||||
<arg name='dict' type='xmlDictPtr' info='the dictionnary'/>
|
||||
<arg name='dict' type='xmlDictPtr' info='the dictionary'/>
|
||||
<arg name='limit' type='size_t' info='the limit in bytes'/>
|
||||
</function>
|
||||
<function name='xmlDictSize' file='dict' module='dict'>
|
||||
<info>Query the number of elements installed in the hash @dict.</info>
|
||||
<return type='int' info='the number of elements in the dictionnary or -1 in case of error'/>
|
||||
<arg name='dict' type='xmlDictPtr' info='the dictionnary'/>
|
||||
<return type='int' info='the number of elements in the dictionary or -1 in case of error'/>
|
||||
<arg name='dict' type='xmlDictPtr' info='the dictionary'/>
|
||||
</function>
|
||||
<function name='xmlDllMain' file='threads' module='threads'>
|
||||
<info></info>
|
||||
@ -9827,7 +9827,7 @@ Could we use @subtypes for this?'/>
|
||||
<info>Creates a new context for manipulating expressions</info>
|
||||
<return type='xmlExpCtxtPtr' info='the context or NULL in case of error'/>
|
||||
<arg name='maxNodes' type='int' info='the maximum number of nodes'/>
|
||||
<arg name='dict' type='xmlDictPtr' info='optional dictionnary to use internally'/>
|
||||
<arg name='dict' type='xmlDictPtr' info='optional dictionary to use internally'/>
|
||||
</function>
|
||||
<function name='xmlExpNewOr' file='xmlregexp' module='xmlregexp'>
|
||||
<cond>defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED)</cond>
|
||||
|
@ -21822,38 +21822,6 @@
|
||||
<word name='dictionaries'>
|
||||
<ref name='XML_MAX_NAME_LENGTH'/>
|
||||
</word>
|
||||
<word name='dictionary'>
|
||||
<ref name='XML_MAX_DICTIONARY_LIMIT'/>
|
||||
<ref name='_xmlParserCtxt'/>
|
||||
<ref name='_xmlXPathContext'/>
|
||||
<ref name='xmlDictCleanup'/>
|
||||
<ref name='xmlDictCreate'/>
|
||||
<ref name='xmlDictCreateSub'/>
|
||||
<ref name='xmlDictGetUsage'/>
|
||||
<ref name='xmlDictReference'/>
|
||||
<ref name='xmlDictSetLimit'/>
|
||||
<ref name='xmlHashCreateDict'/>
|
||||
<ref name='xmlInitializeDict'/>
|
||||
<ref name='xmlPatterncompile'/>
|
||||
<ref name='xmlStreamPush'/>
|
||||
<ref name='xmlStreamPushAttr'/>
|
||||
<ref name='xmlStreamPushNode'/>
|
||||
</word>
|
||||
<word name='dictionnary'>
|
||||
<ref name='_xmlParserCtxt'/>
|
||||
<ref name='xmlDictCreate'/>
|
||||
<ref name='xmlDictCreateSub'/>
|
||||
<ref name='xmlDictExists'/>
|
||||
<ref name='xmlDictFree'/>
|
||||
<ref name='xmlDictGetUsage'/>
|
||||
<ref name='xmlDictLookup'/>
|
||||
<ref name='xmlDictOwns'/>
|
||||
<ref name='xmlDictQLookup'/>
|
||||
<ref name='xmlDictReference'/>
|
||||
<ref name='xmlDictSetLimit'/>
|
||||
<ref name='xmlDictSize'/>
|
||||
<ref name='xmlExpNewCtxt'/>
|
||||
</word>
|
||||
<word name='did'>
|
||||
<ref name='XML_SCHEMAS_TYPE_BLOCK_DEFAULT'/>
|
||||
<ref name='xmlTextReaderGetRemainder'/>
|
||||
|
@ -3,10 +3,10 @@
|
||||
Summary: Library providing XML and HTML support
|
||||
Name: libxml2
|
||||
Version: @VERSION@
|
||||
Release: 1%{?dist}%{?extra_release}
|
||||
Release: 0rc2%{?dist}%{?extra_release}
|
||||
License: MIT
|
||||
Group: Development/Libraries
|
||||
Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
|
||||
Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}-rc2.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
BuildRequires: python-devel
|
||||
%if 0%{?with_python3}
|
||||
|
@ -226,7 +226,7 @@ else:
|
||||
setup (name = "libxml2-python",
|
||||
# On *nix, the version number is created from setup.py.in
|
||||
# On windows, it is set by configure.js
|
||||
version = "2.9.3",
|
||||
version = "2.9.4",
|
||||
description = descr,
|
||||
author = "Daniel Veillard",
|
||||
author_email = "veillard@redhat.com",
|
||||
|
101
testapi.c
101
testapi.c
@ -1479,7 +1479,7 @@ test_htmlCreateMemoryParserCtxt(void) {
|
||||
for (n_size = 0;n_size < gen_nb_int;n_size++) {
|
||||
mem_base = xmlMemBlocks();
|
||||
buffer = gen_const_char_ptr(n_buffer, 0);
|
||||
size = buffer ? strlen(buffer) : 0;
|
||||
size = gen_int(n_size, 1);
|
||||
|
||||
ret_val = htmlCreateMemoryParserCtxt((const char *)buffer, size);
|
||||
desret_htmlParserCtxtPtr(ret_val);
|
||||
@ -1544,7 +1544,7 @@ test_htmlCreatePushParserCtxt(void) {
|
||||
sax = gen_htmlSAXHandlerPtr(n_sax, 0);
|
||||
user_data = gen_userdata(n_user_data, 1);
|
||||
chunk = gen_const_char_ptr(n_chunk, 2);
|
||||
size = chunk ? strlen(chunk) : 0;
|
||||
size = gen_int(n_size, 3);
|
||||
filename = gen_fileoutput(n_filename, 4);
|
||||
enc = gen_xmlCharEncoding(n_enc, 5);
|
||||
|
||||
@ -1717,7 +1717,7 @@ test_htmlCtxtReadMemory(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
ctxt = gen_htmlParserCtxtPtr(n_ctxt, 0);
|
||||
buffer = gen_const_char_ptr(n_buffer, 1);
|
||||
size = buffer ? strlen(buffer) : 0;
|
||||
size = gen_int(n_size, 2);
|
||||
URL = gen_filepath(n_URL, 3);
|
||||
encoding = gen_const_char_ptr(n_encoding, 4);
|
||||
options = gen_int(n_options, 5);
|
||||
@ -2276,7 +2276,7 @@ test_htmlParseChunk(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
ctxt = gen_htmlParserCtxtPtr(n_ctxt, 0);
|
||||
chunk = gen_const_char_ptr(n_chunk, 1);
|
||||
size = chunk ? strlen(chunk) : 0;
|
||||
size = gen_int(n_size, 2);
|
||||
terminate = gen_int(n_terminate, 3);
|
||||
|
||||
ret_val = htmlParseChunk(ctxt, (const char *)chunk, size, terminate);
|
||||
@ -2617,7 +2617,7 @@ test_htmlReadMemory(void) {
|
||||
for (n_options = 0;n_options < gen_nb_int;n_options++) {
|
||||
mem_base = xmlMemBlocks();
|
||||
buffer = gen_const_char_ptr(n_buffer, 0);
|
||||
size = buffer ? strlen(buffer) : 0;
|
||||
size = gen_int(n_size, 1);
|
||||
URL = gen_filepath(n_URL, 2);
|
||||
encoding = gen_const_char_ptr(n_encoding, 3);
|
||||
options = gen_int(n_options, 4);
|
||||
@ -8220,7 +8220,7 @@ test_xmlDictExists(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
dict = gen_xmlDictPtr(n_dict, 0);
|
||||
name = gen_const_xmlChar_ptr(n_name, 1);
|
||||
len = name ? strlen((const char *)name) : 0;
|
||||
len = gen_int(n_len, 2);
|
||||
|
||||
ret_val = xmlDictExists(dict, (const xmlChar *)name, len);
|
||||
desret_const_xmlChar_ptr(ret_val);
|
||||
@ -8276,7 +8276,7 @@ test_xmlDictLookup(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
dict = gen_xmlDictPtr(n_dict, 0);
|
||||
name = gen_const_xmlChar_ptr(n_name, 1);
|
||||
len = name ? strlen((const char *)name) : 0;
|
||||
len = gen_int(n_len, 2);
|
||||
|
||||
ret_val = xmlDictLookup(dict, (const xmlChar *)name, len);
|
||||
desret_const_xmlChar_ptr(ret_val);
|
||||
@ -12725,7 +12725,7 @@ test_xmlCreatePushParserCtxt(void) {
|
||||
sax = gen_xmlSAXHandlerPtr(n_sax, 0);
|
||||
user_data = gen_userdata(n_user_data, 1);
|
||||
chunk = gen_const_char_ptr(n_chunk, 2);
|
||||
size = chunk ? strlen(chunk) : 0;
|
||||
size = gen_int(n_size, 3);
|
||||
filename = gen_fileoutput(n_filename, 4);
|
||||
|
||||
ret_val = xmlCreatePushParserCtxt(sax, user_data, (const char *)chunk, size, filename);
|
||||
@ -12901,7 +12901,7 @@ test_xmlCtxtReadMemory(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0);
|
||||
buffer = gen_const_char_ptr(n_buffer, 1);
|
||||
size = buffer ? strlen(buffer) : 0;
|
||||
size = gen_int(n_size, 2);
|
||||
URL = gen_filepath(n_URL, 3);
|
||||
encoding = gen_const_char_ptr(n_encoding, 4);
|
||||
options = gen_parseroptions(n_options, 5);
|
||||
@ -12995,7 +12995,7 @@ test_xmlCtxtResetPush(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0);
|
||||
chunk = gen_const_char_ptr(n_chunk, 1);
|
||||
size = chunk ? strlen(chunk) : 0;
|
||||
size = gen_int(n_size, 2);
|
||||
filename = gen_filepath(n_filename, 3);
|
||||
encoding = gen_const_char_ptr(n_encoding, 4);
|
||||
|
||||
@ -13707,7 +13707,7 @@ test_xmlParseChunk(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0);
|
||||
chunk = gen_const_char_ptr(n_chunk, 1);
|
||||
size = chunk ? strlen(chunk) : 0;
|
||||
size = gen_int(n_size, 2);
|
||||
terminate = gen_int(n_terminate, 3);
|
||||
|
||||
ret_val = xmlParseChunk(ctxt, (const char *)chunk, size, terminate);
|
||||
@ -14113,7 +14113,7 @@ test_xmlParseInNodeContext(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
node = gen_xmlNodePtr(n_node, 0);
|
||||
data = gen_const_char_ptr(n_data, 1);
|
||||
datalen = data ? strlen(data) : 0;
|
||||
datalen = gen_int(n_datalen, 2);
|
||||
options = gen_parseroptions(n_options, 3);
|
||||
lst = gen_xmlNodePtr_ptr(n_lst, 4);
|
||||
|
||||
@ -14165,7 +14165,7 @@ test_xmlParseMemory(void) {
|
||||
for (n_size = 0;n_size < gen_nb_int;n_size++) {
|
||||
mem_base = xmlMemBlocks();
|
||||
buffer = gen_const_char_ptr(n_buffer, 0);
|
||||
size = buffer ? strlen(buffer) : 0;
|
||||
size = gen_int(n_size, 1);
|
||||
|
||||
ret_val = xmlParseMemory((const char *)buffer, size);
|
||||
desret_xmlDocPtr(ret_val);
|
||||
@ -14574,7 +14574,7 @@ test_xmlReadMemory(void) {
|
||||
for (n_options = 0;n_options < gen_nb_parseroptions;n_options++) {
|
||||
mem_base = xmlMemBlocks();
|
||||
buffer = gen_const_char_ptr(n_buffer, 0);
|
||||
size = buffer ? strlen(buffer) : 0;
|
||||
size = gen_int(n_size, 1);
|
||||
URL = gen_filepath(n_URL, 2);
|
||||
encoding = gen_const_char_ptr(n_encoding, 3);
|
||||
options = gen_parseroptions(n_options, 4);
|
||||
@ -14699,7 +14699,7 @@ test_xmlRecoverMemory(void) {
|
||||
for (n_size = 0;n_size < gen_nb_int;n_size++) {
|
||||
mem_base = xmlMemBlocks();
|
||||
buffer = gen_const_char_ptr(n_buffer, 0);
|
||||
size = buffer ? strlen(buffer) : 0;
|
||||
size = gen_int(n_size, 1);
|
||||
|
||||
ret_val = xmlRecoverMemory((const char *)buffer, size);
|
||||
desret_xmlDocPtr(ret_val);
|
||||
@ -14999,7 +14999,7 @@ test_xmlSAXParseMemory(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
sax = gen_xmlSAXHandlerPtr(n_sax, 0);
|
||||
buffer = gen_const_char_ptr(n_buffer, 1);
|
||||
size = buffer ? strlen(buffer) : 0;
|
||||
size = gen_int(n_size, 2);
|
||||
recovery = gen_int(n_recovery, 3);
|
||||
|
||||
ret_val = xmlSAXParseMemory(sax, (const char *)buffer, size, recovery);
|
||||
@ -15059,7 +15059,7 @@ test_xmlSAXParseMemoryWithData(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
sax = gen_xmlSAXHandlerPtr(n_sax, 0);
|
||||
buffer = gen_const_char_ptr(n_buffer, 1);
|
||||
size = buffer ? strlen(buffer) : 0;
|
||||
size = gen_int(n_size, 2);
|
||||
recovery = gen_int(n_recovery, 3);
|
||||
data = gen_userdata(n_data, 4);
|
||||
|
||||
@ -15176,7 +15176,7 @@ test_xmlSAXUserParseMemory(void) {
|
||||
sax = gen_xmlSAXHandlerPtr(n_sax, 0);
|
||||
user_data = gen_userdata(n_user_data, 1);
|
||||
buffer = gen_const_char_ptr(n_buffer, 2);
|
||||
size = buffer ? strlen(buffer) : 0;
|
||||
size = gen_int(n_size, 3);
|
||||
|
||||
#ifdef LIBXML_SAX1_ENABLED
|
||||
if (sax == (xmlSAXHandlerPtr)&xmlDefaultSAXHandler) user_data = NULL;
|
||||
@ -15947,7 +15947,7 @@ test_xmlCreateMemoryParserCtxt(void) {
|
||||
for (n_size = 0;n_size < gen_nb_int;n_size++) {
|
||||
mem_base = xmlMemBlocks();
|
||||
buffer = gen_const_char_ptr(n_buffer, 0);
|
||||
size = buffer ? strlen(buffer) : 0;
|
||||
size = gen_int(n_size, 1);
|
||||
|
||||
ret_val = xmlCreateMemoryParserCtxt((const char *)buffer, size);
|
||||
desret_xmlParserCtxtPtr(ret_val);
|
||||
@ -17572,7 +17572,7 @@ test_xmlRelaxNGNewMemParserCtxt(void) {
|
||||
for (n_size = 0;n_size < gen_nb_int;n_size++) {
|
||||
mem_base = xmlMemBlocks();
|
||||
buffer = gen_const_char_ptr(n_buffer, 0);
|
||||
size = buffer ? strlen(buffer) : 0;
|
||||
size = gen_int(n_size, 1);
|
||||
|
||||
ret_val = xmlRelaxNGNewMemParserCtxt((const char *)buffer, size);
|
||||
desret_xmlRelaxNGParserCtxtPtr(ret_val);
|
||||
@ -18590,7 +18590,7 @@ test_xmlBufferAdd(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
buf = gen_xmlBufferPtr(n_buf, 0);
|
||||
str = gen_const_xmlChar_ptr(n_str, 1);
|
||||
len = str ? strlen((const char *)str) : 0;
|
||||
len = gen_int(n_len, 2);
|
||||
|
||||
ret_val = xmlBufferAdd(buf, (const xmlChar *)str, len);
|
||||
desret_int(ret_val);
|
||||
@ -18636,7 +18636,7 @@ test_xmlBufferAddHead(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
buf = gen_xmlBufferPtr(n_buf, 0);
|
||||
str = gen_const_xmlChar_ptr(n_str, 1);
|
||||
len = str ? strlen((const char *)str) : 0;
|
||||
len = gen_int(n_len, 2);
|
||||
|
||||
ret_val = xmlBufferAddHead(buf, (const xmlChar *)str, len);
|
||||
desret_int(ret_val);
|
||||
@ -19208,7 +19208,7 @@ test_xmlBuildQName(void) {
|
||||
ncname = gen_const_xmlChar_ptr(n_ncname, 0);
|
||||
prefix = gen_const_xmlChar_ptr(n_prefix, 1);
|
||||
memory = gen_xmlChar_ptr(n_memory, 2);
|
||||
len = memory ? strlen((const char *)memory) : 0;
|
||||
len = gen_int(n_len, 3);
|
||||
|
||||
ret_val = xmlBuildQName((const xmlChar *)ncname, (const xmlChar *)prefix, memory, len);
|
||||
if ((ret_val != NULL) && (ret_val != ncname) &&
|
||||
@ -20032,7 +20032,7 @@ test_xmlDocDumpFormatMemory(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
cur = gen_xmlDocPtr(n_cur, 0);
|
||||
mem = gen_xmlChar_ptr_ptr(n_mem, 1);
|
||||
size = NULL;
|
||||
size = gen_int_ptr(n_size, 2);
|
||||
format = gen_int(n_format, 3);
|
||||
|
||||
xmlDocDumpFormatMemory(cur, mem, size, format);
|
||||
@ -20088,7 +20088,7 @@ test_xmlDocDumpFormatMemoryEnc(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
out_doc = gen_xmlDocPtr(n_out_doc, 0);
|
||||
doc_txt_ptr = gen_xmlChar_ptr_ptr(n_doc_txt_ptr, 1);
|
||||
doc_txt_len = NULL;
|
||||
doc_txt_len = gen_int_ptr(n_doc_txt_len, 2);
|
||||
txt_encoding = gen_const_char_ptr(n_txt_encoding, 3);
|
||||
format = gen_int(n_format, 4);
|
||||
|
||||
@ -20142,7 +20142,7 @@ test_xmlDocDumpMemory(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
cur = gen_xmlDocPtr(n_cur, 0);
|
||||
mem = gen_xmlChar_ptr_ptr(n_mem, 1);
|
||||
size = NULL;
|
||||
size = gen_int_ptr(n_size, 2);
|
||||
|
||||
xmlDocDumpMemory(cur, mem, size);
|
||||
call_tests++;
|
||||
@ -20979,7 +20979,7 @@ test_xmlNewCDataBlock(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
doc = gen_xmlDocPtr(n_doc, 0);
|
||||
content = gen_const_xmlChar_ptr(n_content, 1);
|
||||
len = content ? strlen((const char *)content) : 0;
|
||||
len = gen_int(n_len, 2);
|
||||
|
||||
ret_val = xmlNewCDataBlock(doc, (const xmlChar *)content, len);
|
||||
desret_xmlNodePtr(ret_val);
|
||||
@ -21552,7 +21552,7 @@ test_xmlNewDocTextLen(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
doc = gen_xmlDocPtr(n_doc, 0);
|
||||
content = gen_const_xmlChar_ptr(n_content, 1);
|
||||
len = content ? strlen((const char *)content) : 0;
|
||||
len = gen_int(n_len, 2);
|
||||
|
||||
ret_val = xmlNewDocTextLen(doc, (const xmlChar *)content, len);
|
||||
desret_xmlNodePtr(ret_val);
|
||||
@ -22095,7 +22095,7 @@ test_xmlNewTextLen(void) {
|
||||
for (n_len = 0;n_len < gen_nb_int;n_len++) {
|
||||
mem_base = xmlMemBlocks();
|
||||
content = gen_const_xmlChar_ptr(n_content, 0);
|
||||
len = content ? strlen((const char *)content) : 0;
|
||||
len = gen_int(n_len, 1);
|
||||
|
||||
ret_val = xmlNewTextLen((const xmlChar *)content, len);
|
||||
desret_xmlNodePtr(ret_val);
|
||||
@ -22208,7 +22208,7 @@ test_xmlNodeAddContentLen(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
cur = gen_xmlNodePtr(n_cur, 0);
|
||||
content = gen_const_xmlChar_ptr(n_content, 1);
|
||||
len = content ? strlen((const char *)content) : 0;
|
||||
len = gen_int(n_len, 2);
|
||||
|
||||
xmlNodeAddContentLen(cur, (const xmlChar *)content, len);
|
||||
call_tests++;
|
||||
@ -22758,7 +22758,7 @@ test_xmlNodeSetContentLen(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
cur = gen_xmlNodePtr(n_cur, 0);
|
||||
content = gen_const_xmlChar_ptr(n_content, 1);
|
||||
len = content ? strlen((const char *)content) : 0;
|
||||
len = gen_int(n_len, 2);
|
||||
|
||||
xmlNodeSetContentLen(cur, (const xmlChar *)content, len);
|
||||
call_tests++;
|
||||
@ -23740,7 +23740,7 @@ test_xmlSplitQName3(void) {
|
||||
for (n_len = 0;n_len < gen_nb_int_ptr;n_len++) {
|
||||
mem_base = xmlMemBlocks();
|
||||
name = gen_const_xmlChar_ptr(n_name, 0);
|
||||
len = NULL;
|
||||
len = gen_int_ptr(n_len, 1);
|
||||
|
||||
ret_val = xmlSplitQName3((const xmlChar *)name, len);
|
||||
desret_const_xmlChar_ptr(ret_val);
|
||||
@ -23822,7 +23822,7 @@ test_xmlStringLenGetNodeList(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
doc = gen_const_xmlDoc_ptr(n_doc, 0);
|
||||
value = gen_const_xmlChar_ptr(n_value, 1);
|
||||
len = value ? strlen((const char *)value) : 0;
|
||||
len = gen_int(n_len, 2);
|
||||
|
||||
ret_val = xmlStringLenGetNodeList((const xmlDoc *)doc, (const xmlChar *)value, len);
|
||||
desret_xmlNodePtr(ret_val);
|
||||
@ -23868,7 +23868,7 @@ test_xmlTextConcat(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
node = gen_xmlNodePtr(n_node, 0);
|
||||
content = gen_const_xmlChar_ptr(n_content, 1);
|
||||
len = content ? strlen((const char *)content) : 0;
|
||||
len = gen_int(n_len, 2);
|
||||
|
||||
ret_val = xmlTextConcat(node, (const xmlChar *)content, len);
|
||||
desret_int(ret_val);
|
||||
@ -28659,8 +28659,8 @@ test_xmlOutputBufferWrite(void) {
|
||||
for (n_buf = 0;n_buf < gen_nb_const_char_ptr;n_buf++) {
|
||||
mem_base = xmlMemBlocks();
|
||||
out = gen_xmlOutputBufferPtr(n_out, 0);
|
||||
len = gen_int(n_len, 1);
|
||||
buf = gen_const_char_ptr(n_buf, 2);
|
||||
len = buf ? strlen(buf) : 0;
|
||||
|
||||
ret_val = xmlOutputBufferWrite(out, len, (const char *)buf);
|
||||
desret_int(ret_val);
|
||||
@ -28885,7 +28885,7 @@ test_xmlParserInputBufferCreateMem(void) {
|
||||
for (n_enc = 0;n_enc < gen_nb_xmlCharEncoding;n_enc++) {
|
||||
mem_base = xmlMemBlocks();
|
||||
mem = gen_const_char_ptr(n_mem, 0);
|
||||
size = mem ? strlen(mem) : 0;
|
||||
size = gen_int(n_size, 1);
|
||||
enc = gen_xmlCharEncoding(n_enc, 2);
|
||||
|
||||
ret_val = xmlParserInputBufferCreateMem((const char *)mem, size, enc);
|
||||
@ -28931,7 +28931,7 @@ test_xmlParserInputBufferCreateStatic(void) {
|
||||
for (n_enc = 0;n_enc < gen_nb_xmlCharEncoding;n_enc++) {
|
||||
mem_base = xmlMemBlocks();
|
||||
mem = gen_const_char_ptr(n_mem, 0);
|
||||
size = mem ? strlen(mem) : 0;
|
||||
size = gen_int(n_size, 1);
|
||||
enc = gen_xmlCharEncoding(n_enc, 2);
|
||||
|
||||
ret_val = xmlParserInputBufferCreateStatic((const char *)mem, size, enc);
|
||||
@ -29016,8 +29016,8 @@ test_xmlParserInputBufferPush(void) {
|
||||
for (n_buf = 0;n_buf < gen_nb_const_char_ptr;n_buf++) {
|
||||
mem_base = xmlMemBlocks();
|
||||
in = gen_xmlParserInputBufferPtr(n_in, 0);
|
||||
len = gen_int(n_len, 1);
|
||||
buf = gen_const_char_ptr(n_buf, 2);
|
||||
len = buf ? strlen(buf) : 0;
|
||||
|
||||
ret_val = xmlParserInputBufferPush(in, len, (const char *)buf);
|
||||
desret_int(ret_val);
|
||||
@ -30196,7 +30196,7 @@ test_xmlReaderForMemory(void) {
|
||||
for (n_options = 0;n_options < gen_nb_parseroptions;n_options++) {
|
||||
mem_base = xmlMemBlocks();
|
||||
buffer = gen_const_char_ptr(n_buffer, 0);
|
||||
size = buffer ? strlen(buffer) : 0;
|
||||
size = gen_int(n_size, 1);
|
||||
URL = gen_filepath(n_URL, 2);
|
||||
encoding = gen_const_char_ptr(n_encoding, 3);
|
||||
options = gen_parseroptions(n_options, 4);
|
||||
@ -30379,7 +30379,7 @@ test_xmlReaderNewMemory(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
reader = gen_xmlTextReaderPtr(n_reader, 0);
|
||||
buffer = gen_const_char_ptr(n_buffer, 1);
|
||||
size = buffer ? strlen(buffer) : 0;
|
||||
size = gen_int(n_size, 2);
|
||||
URL = gen_filepath(n_URL, 3);
|
||||
encoding = gen_const_char_ptr(n_encoding, 4);
|
||||
options = gen_parseroptions(n_options, 5);
|
||||
@ -34419,7 +34419,7 @@ test_xmlSchemaNewMemParserCtxt(void) {
|
||||
for (n_size = 0;n_size < gen_nb_int;n_size++) {
|
||||
mem_base = xmlMemBlocks();
|
||||
buffer = gen_const_char_ptr(n_buffer, 0);
|
||||
size = buffer ? strlen(buffer) : 0;
|
||||
size = gen_int(n_size, 1);
|
||||
|
||||
ret_val = xmlSchemaNewMemParserCtxt((const char *)buffer, size);
|
||||
desret_xmlSchemaParserCtxtPtr(ret_val);
|
||||
@ -36303,7 +36303,7 @@ test_xmlCharStrndup(void) {
|
||||
for (n_len = 0;n_len < gen_nb_int;n_len++) {
|
||||
mem_base = xmlMemBlocks();
|
||||
cur = gen_const_char_ptr(n_cur, 0);
|
||||
len = cur ? strlen(cur) : 0;
|
||||
len = gen_int(n_len, 1);
|
||||
|
||||
ret_val = xmlCharStrndup((const char *)cur, len);
|
||||
desret_xmlChar_ptr(ret_val);
|
||||
@ -36788,7 +36788,7 @@ test_xmlStrncatNew(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
str1 = gen_const_xmlChar_ptr(n_str1, 0);
|
||||
str2 = gen_const_xmlChar_ptr(n_str2, 1);
|
||||
len = str2 ? strlen((const char *)str2) : 0;
|
||||
len = gen_int(n_len, 2);
|
||||
|
||||
ret_val = xmlStrncatNew((const xmlChar *)str1, (const xmlChar *)str2, len);
|
||||
desret_xmlChar_ptr(ret_val);
|
||||
@ -36834,7 +36834,7 @@ test_xmlStrncmp(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
str1 = gen_const_xmlChar_ptr(n_str1, 0);
|
||||
str2 = gen_const_xmlChar_ptr(n_str2, 1);
|
||||
len = str2 ? strlen((const char *)str2) : 0;
|
||||
len = gen_int(n_len, 2);
|
||||
|
||||
ret_val = xmlStrncmp((const xmlChar *)str1, (const xmlChar *)str2, len);
|
||||
desret_int(ret_val);
|
||||
@ -36876,7 +36876,7 @@ test_xmlStrndup(void) {
|
||||
for (n_len = 0;n_len < gen_nb_int;n_len++) {
|
||||
mem_base = xmlMemBlocks();
|
||||
cur = gen_const_xmlChar_ptr(n_cur, 0);
|
||||
len = cur ? strlen((const char *)cur) : 0;
|
||||
len = gen_int(n_len, 1);
|
||||
|
||||
ret_val = xmlStrndup((const xmlChar *)cur, len);
|
||||
desret_xmlChar_ptr(ret_val);
|
||||
@ -36958,8 +36958,7 @@ test_xmlStrsub(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
str = gen_const_xmlChar_ptr(n_str, 0);
|
||||
start = gen_int(n_start, 1);
|
||||
len = str ? strlen((const char *)str) : 0;
|
||||
len = ((len > 0) && (len > start)) ? (len - start) : 0;
|
||||
len = gen_int(n_len, 2);
|
||||
|
||||
ret_val = xmlStrsub((const xmlChar *)str, start, len);
|
||||
desret_xmlChar_ptr(ret_val);
|
||||
@ -44576,8 +44575,7 @@ test_xmlTextWriterWriteBase64(void) {
|
||||
writer = gen_xmlTextWriterPtr(n_writer, 0);
|
||||
data = gen_const_char_ptr(n_data, 1);
|
||||
start = gen_int(n_start, 2);
|
||||
len = data ? strlen(data) : 0;
|
||||
len = ((len > 0) && (len > start)) ? (len - start) : 0;
|
||||
len = gen_int(n_len, 3);
|
||||
|
||||
ret_val = xmlTextWriterWriteBase64(writer, (const char *)data, start, len);
|
||||
desret_int(ret_val);
|
||||
@ -44632,8 +44630,7 @@ test_xmlTextWriterWriteBinHex(void) {
|
||||
writer = gen_xmlTextWriterPtr(n_writer, 0);
|
||||
data = gen_const_char_ptr(n_data, 1);
|
||||
start = gen_int(n_start, 2);
|
||||
len = data ? strlen(data) : 0;
|
||||
len = ((len > 0) && (len > start)) ? (len - start) : 0;
|
||||
len = gen_int(n_len, 3);
|
||||
|
||||
ret_val = xmlTextWriterWriteBinHex(writer, (const char *)data, start, len);
|
||||
desret_int(ret_val);
|
||||
@ -45563,7 +45560,7 @@ test_xmlTextWriterWriteRawLen(void) {
|
||||
mem_base = xmlMemBlocks();
|
||||
writer = gen_xmlTextWriterPtr(n_writer, 0);
|
||||
content = gen_const_xmlChar_ptr(n_content, 1);
|
||||
len = content ? strlen((const char *)content) : 0;
|
||||
len = gen_int(n_len, 2);
|
||||
|
||||
ret_val = xmlTextWriterWriteRawLen(writer, (const xmlChar *)content, len);
|
||||
desret_int(ret_val);
|
||||
|
Loading…
x
Reference in New Issue
Block a user