xref: /aosp_15_r20/external/libxml2/doc/devhelp/libxml2-dict.html (revision 7c5688314b92172186c154356a6374bf7684c3ca)
1*7c568831SAndroid Build Coastguard Worker<html>
2*7c568831SAndroid Build Coastguard Worker<head>
3*7c568831SAndroid Build Coastguard Worker<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4*7c568831SAndroid Build Coastguard Worker<title>dict: string dictionary</title>
5*7c568831SAndroid Build Coastguard Worker<meta name="generator" content="Libxml2 devhelp stylesheet">
6*7c568831SAndroid Build Coastguard Worker<link rel="start" href="index.html" title="libxml2 Reference Manual">
7*7c568831SAndroid Build Coastguard Worker<link rel="up" href="general.html" title="API">
8*7c568831SAndroid Build Coastguard Worker<link rel="stylesheet" href="style.css" type="text/css">
9*7c568831SAndroid Build Coastguard Worker<link rel="chapter" href="general.html" title="API">
10*7c568831SAndroid Build Coastguard Worker</head>
11*7c568831SAndroid Build Coastguard Worker<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
12*7c568831SAndroid Build Coastguard Worker<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
13*7c568831SAndroid Build Coastguard Worker<td><a accesskey="p" href="libxml2-debugXML.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
14*7c568831SAndroid Build Coastguard Worker<td><a accesskey="u" href="general.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
15*7c568831SAndroid Build Coastguard Worker<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
16*7c568831SAndroid Build Coastguard Worker<td><a accesskey="n" href="libxml2-encoding.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
17*7c568831SAndroid Build Coastguard Worker<th width="100%" align="center">libxml2 Reference Manual</th>
18*7c568831SAndroid Build Coastguard Worker</tr></table>
19*7c568831SAndroid Build Coastguard Worker<h2><span class="refentrytitle">dict</span></h2>
20*7c568831SAndroid Build Coastguard Worker<p>dict - string dictionary</p>
21*7c568831SAndroid Build Coastguard Worker<p>dictionary of reusable strings, just used to avoid allocation and freeing operations. </p>
22*7c568831SAndroid Build Coastguard Worker<p>Author(s): Daniel Veillard </p>
23*7c568831SAndroid Build Coastguard Worker<div class="refsynopsisdiv">
24*7c568831SAndroid Build Coastguard Worker<h2>Synopsis</h2>
25*7c568831SAndroid Build Coastguard Worker<pre class="synopsis">typedef struct _xmlDict <a href="#xmlDict">xmlDict</a>;
26*7c568831SAndroid Build Coastguard Workertypedef <a href="libxml2-dict.html#xmlDict">xmlDict</a> * <a href="#xmlDictPtr">xmlDictPtr</a>;
27*7c568831SAndroid Build Coastguard Workervoid	<a href="#xmlDictCleanup">xmlDictCleanup</a>			(void);
28*7c568831SAndroid Build Coastguard Worker<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a>	<a href="#xmlDictCreate">xmlDictCreate</a>		(void);
29*7c568831SAndroid Build Coastguard Worker<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a>	<a href="#xmlDictCreateSub">xmlDictCreateSub</a>	(<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> sub);
30*7c568831SAndroid Build Coastguard Workerconst <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> *	<a href="#xmlDictExists">xmlDictExists</a>		(<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br>					 const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name, <br>					 int len);
31*7c568831SAndroid Build Coastguard Workervoid	<a href="#xmlDictFree">xmlDictFree</a>			(<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict);
32*7c568831SAndroid Build Coastguard Workersize_t	<a href="#xmlDictGetUsage">xmlDictGetUsage</a>			(<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict);
33*7c568831SAndroid Build Coastguard Workerconst <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> *	<a href="#xmlDictLookup">xmlDictLookup</a>		(<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br>					 const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name, <br>					 int len);
34*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlDictOwns">xmlDictOwns</a>			(<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br>					 const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * str);
35*7c568831SAndroid Build Coastguard Workerconst <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> *	<a href="#xmlDictQLookup">xmlDictQLookup</a>		(<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);
36*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlDictReference">xmlDictReference</a>		(<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict);
37*7c568831SAndroid Build Coastguard Workersize_t	<a href="#xmlDictSetLimit">xmlDictSetLimit</a>			(<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br>					 size_t limit);
38*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlDictSize">xmlDictSize</a>			(<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict);
39*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlInitializeDict">xmlInitializeDict</a>		(void);
40*7c568831SAndroid Build Coastguard Worker</pre>
41*7c568831SAndroid Build Coastguard Worker</div>
42*7c568831SAndroid Build Coastguard Worker<div class="refsect1" lang="en"><h2>Description</h2></div>
43*7c568831SAndroid Build Coastguard Worker<div class="refsect1" lang="en">
44*7c568831SAndroid Build Coastguard Worker<h2>Details</h2>
45*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
46*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
47*7c568831SAndroid Build Coastguard Worker<h3>
48*7c568831SAndroid Build Coastguard Worker<a name="xmlDict">Structure </a>xmlDict</h3>
49*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">struct _xmlDict {
50*7c568831SAndroid Build Coastguard WorkerThe content of this structure is not made public by the API.
51*7c568831SAndroid Build Coastguard Worker} xmlDict;
52*7c568831SAndroid Build Coastguard Worker</pre>
53*7c568831SAndroid Build Coastguard Worker<p></p>
54*7c568831SAndroid Build Coastguard Worker</div>
55*7c568831SAndroid Build Coastguard Worker<hr>
56*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
57*7c568831SAndroid Build Coastguard Worker<h3>
58*7c568831SAndroid Build Coastguard Worker<a name="xmlDictPtr">Typedef </a>xmlDictPtr</h3>
59*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-dict.html#xmlDict">xmlDict</a> * xmlDictPtr;
60*7c568831SAndroid Build Coastguard Worker</pre>
61*7c568831SAndroid Build Coastguard Worker<p></p>
62*7c568831SAndroid Build Coastguard Worker</div>
63*7c568831SAndroid Build Coastguard Worker<hr>
64*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
65*7c568831SAndroid Build Coastguard Worker<h3>
66*7c568831SAndroid Build Coastguard Worker<a name="xmlDictCleanup"></a>xmlDictCleanup ()</h3>
67*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void	xmlDictCleanup			(void)<br>
68*7c568831SAndroid Build Coastguard Worker</pre>
69*7c568831SAndroid Build Coastguard Worker<p>DEPRECATED: This function is a no-op. Call <a href="libxml2-parser.html#xmlCleanupParser">xmlCleanupParser</a> to free global state but see the warnings there. <a href="libxml2-parser.html#xmlCleanupParser">xmlCleanupParser</a> should be only called once at program exit. In most cases, you don't have call cleanup functions at all.</p>
70*7c568831SAndroid Build Coastguard Worker</div>
71*7c568831SAndroid Build Coastguard Worker<hr>
72*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
73*7c568831SAndroid Build Coastguard Worker<h3>
74*7c568831SAndroid Build Coastguard Worker<a name="xmlDictCreate"></a>xmlDictCreate ()</h3>
75*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a>	xmlDictCreate		(void)<br>
76*7c568831SAndroid Build Coastguard Worker</pre>
77*7c568831SAndroid Build Coastguard Worker<p>Create a new dictionary</p>
78*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
79*7c568831SAndroid Build Coastguard Worker<col align="left">
80*7c568831SAndroid Build Coastguard Worker<tbody><tr>
81*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
82*7c568831SAndroid Build Coastguard Worker<td>the newly created dictionary, or NULL if an error occurred.</td>
83*7c568831SAndroid Build Coastguard Worker</tr></tbody>
84*7c568831SAndroid Build Coastguard Worker</table></div>
85*7c568831SAndroid Build Coastguard Worker</div>
86*7c568831SAndroid Build Coastguard Worker<hr>
87*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
88*7c568831SAndroid Build Coastguard Worker<h3>
89*7c568831SAndroid Build Coastguard Worker<a name="xmlDictCreateSub"></a>xmlDictCreateSub ()</h3>
90*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a>	xmlDictCreateSub	(<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> sub)<br>
91*7c568831SAndroid Build Coastguard Worker</pre>
92*7c568831SAndroid Build Coastguard Worker<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>
93*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
94*7c568831SAndroid Build Coastguard Worker<col align="left">
95*7c568831SAndroid Build Coastguard Worker<tbody>
96*7c568831SAndroid Build Coastguard Worker<tr>
97*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>sub</tt></i>:</span></td>
98*7c568831SAndroid Build Coastguard Worker<td>an existing dictionary</td>
99*7c568831SAndroid Build Coastguard Worker</tr>
100*7c568831SAndroid Build Coastguard Worker<tr>
101*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
102*7c568831SAndroid Build Coastguard Worker<td>the newly created dictionary, or NULL if an error occurred.</td>
103*7c568831SAndroid Build Coastguard Worker</tr>
104*7c568831SAndroid Build Coastguard Worker</tbody>
105*7c568831SAndroid Build Coastguard Worker</table></div>
106*7c568831SAndroid Build Coastguard Worker</div>
107*7c568831SAndroid Build Coastguard Worker<hr>
108*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
109*7c568831SAndroid Build Coastguard Worker<h3>
110*7c568831SAndroid Build Coastguard Worker<a name="xmlDictExists"></a>xmlDictExists ()</h3>
111*7c568831SAndroid Build Coastguard Worker<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>
112*7c568831SAndroid Build Coastguard Worker</pre>
113*7c568831SAndroid Build Coastguard Worker<p>Check if a string exists in the dictionary.</p>
114*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
115*7c568831SAndroid Build Coastguard Worker<col align="left">
116*7c568831SAndroid Build Coastguard Worker<tbody>
117*7c568831SAndroid Build Coastguard Worker<tr>
118*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>dict</tt></i>:</span></td>
119*7c568831SAndroid Build Coastguard Worker<td>the dictionary</td>
120*7c568831SAndroid Build Coastguard Worker</tr>
121*7c568831SAndroid Build Coastguard Worker<tr>
122*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>name</tt></i>:</span></td>
123*7c568831SAndroid Build Coastguard Worker<td>the name of the userdata</td>
124*7c568831SAndroid Build Coastguard Worker</tr>
125*7c568831SAndroid Build Coastguard Worker<tr>
126*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>len</tt></i>:</span></td>
127*7c568831SAndroid Build Coastguard Worker<td>the length of the name, if -1 it is recomputed</td>
128*7c568831SAndroid Build Coastguard Worker</tr>
129*7c568831SAndroid Build Coastguard Worker<tr>
130*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
131*7c568831SAndroid Build Coastguard Worker<td>the internal copy of the name or NULL if not found.</td>
132*7c568831SAndroid Build Coastguard Worker</tr>
133*7c568831SAndroid Build Coastguard Worker</tbody>
134*7c568831SAndroid Build Coastguard Worker</table></div>
135*7c568831SAndroid Build Coastguard Worker</div>
136*7c568831SAndroid Build Coastguard Worker<hr>
137*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
138*7c568831SAndroid Build Coastguard Worker<h3>
139*7c568831SAndroid Build Coastguard Worker<a name="xmlDictFree"></a>xmlDictFree ()</h3>
140*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void	xmlDictFree			(<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br>
141*7c568831SAndroid Build Coastguard Worker</pre>
142*7c568831SAndroid Build Coastguard Worker<p>Free the hash @dict and its contents. The userdata is deallocated with @f if provided.</p>
143*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
144*7c568831SAndroid Build Coastguard Worker<col align="left">
145*7c568831SAndroid Build Coastguard Worker<tbody><tr>
146*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>dict</tt></i>:</span></td>
147*7c568831SAndroid Build Coastguard Worker<td>the dictionary</td>
148*7c568831SAndroid Build Coastguard Worker</tr></tbody>
149*7c568831SAndroid Build Coastguard Worker</table></div>
150*7c568831SAndroid Build Coastguard Worker</div>
151*7c568831SAndroid Build Coastguard Worker<hr>
152*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
153*7c568831SAndroid Build Coastguard Worker<h3>
154*7c568831SAndroid Build Coastguard Worker<a name="xmlDictGetUsage"></a>xmlDictGetUsage ()</h3>
155*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">size_t	xmlDictGetUsage			(<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br>
156*7c568831SAndroid Build Coastguard Worker</pre>
157*7c568831SAndroid Build Coastguard Worker<p>Get how much memory is used by a dictionary for strings Added in 2.9.0</p>
158*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
159*7c568831SAndroid Build Coastguard Worker<col align="left">
160*7c568831SAndroid Build Coastguard Worker<tbody>
161*7c568831SAndroid Build Coastguard Worker<tr>
162*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>dict</tt></i>:</span></td>
163*7c568831SAndroid Build Coastguard Worker<td>the dictionary</td>
164*7c568831SAndroid Build Coastguard Worker</tr>
165*7c568831SAndroid Build Coastguard Worker<tr>
166*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
167*7c568831SAndroid Build Coastguard Worker<td>the amount of strings allocated</td>
168*7c568831SAndroid Build Coastguard Worker</tr>
169*7c568831SAndroid Build Coastguard Worker</tbody>
170*7c568831SAndroid Build Coastguard Worker</table></div>
171*7c568831SAndroid Build Coastguard Worker</div>
172*7c568831SAndroid Build Coastguard Worker<hr>
173*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
174*7c568831SAndroid Build Coastguard Worker<h3>
175*7c568831SAndroid Build Coastguard Worker<a name="xmlDictLookup"></a>xmlDictLookup ()</h3>
176*7c568831SAndroid Build Coastguard Worker<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>
177*7c568831SAndroid Build Coastguard Worker</pre>
178*7c568831SAndroid Build Coastguard Worker<p>Lookup a string and add it to the dictionary if it wasn't found.</p>
179*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
180*7c568831SAndroid Build Coastguard Worker<col align="left">
181*7c568831SAndroid Build Coastguard Worker<tbody>
182*7c568831SAndroid Build Coastguard Worker<tr>
183*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>dict</tt></i>:</span></td>
184*7c568831SAndroid Build Coastguard Worker<td>dictionary</td>
185*7c568831SAndroid Build Coastguard Worker</tr>
186*7c568831SAndroid Build Coastguard Worker<tr>
187*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>name</tt></i>:</span></td>
188*7c568831SAndroid Build Coastguard Worker<td>string key</td>
189*7c568831SAndroid Build Coastguard Worker</tr>
190*7c568831SAndroid Build Coastguard Worker<tr>
191*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>len</tt></i>:</span></td>
192*7c568831SAndroid Build Coastguard Worker<td>length of the key, if -1 it is recomputed</td>
193*7c568831SAndroid Build Coastguard Worker</tr>
194*7c568831SAndroid Build Coastguard Worker<tr>
195*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
196*7c568831SAndroid Build Coastguard Worker<td>the interned copy of the string or NULL if a memory allocation failed.</td>
197*7c568831SAndroid Build Coastguard Worker</tr>
198*7c568831SAndroid Build Coastguard Worker</tbody>
199*7c568831SAndroid Build Coastguard Worker</table></div>
200*7c568831SAndroid Build Coastguard Worker</div>
201*7c568831SAndroid Build Coastguard Worker<hr>
202*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
203*7c568831SAndroid Build Coastguard Worker<h3>
204*7c568831SAndroid Build Coastguard Worker<a name="xmlDictOwns"></a>xmlDictOwns ()</h3>
205*7c568831SAndroid Build Coastguard Worker<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>
206*7c568831SAndroid Build Coastguard Worker</pre>
207*7c568831SAndroid Build Coastguard Worker<p>check if a string is owned by the dictionary</p>
208*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
209*7c568831SAndroid Build Coastguard Worker<col align="left">
210*7c568831SAndroid Build Coastguard Worker<tbody>
211*7c568831SAndroid Build Coastguard Worker<tr>
212*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>dict</tt></i>:</span></td>
213*7c568831SAndroid Build Coastguard Worker<td>the dictionary</td>
214*7c568831SAndroid Build Coastguard Worker</tr>
215*7c568831SAndroid Build Coastguard Worker<tr>
216*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>str</tt></i>:</span></td>
217*7c568831SAndroid Build Coastguard Worker<td>the string</td>
218*7c568831SAndroid Build Coastguard Worker</tr>
219*7c568831SAndroid Build Coastguard Worker<tr>
220*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
221*7c568831SAndroid Build Coastguard Worker<td>1 if true, 0 if false and -1 in case of error -1 in case of error</td>
222*7c568831SAndroid Build Coastguard Worker</tr>
223*7c568831SAndroid Build Coastguard Worker</tbody>
224*7c568831SAndroid Build Coastguard Worker</table></div>
225*7c568831SAndroid Build Coastguard Worker</div>
226*7c568831SAndroid Build Coastguard Worker<hr>
227*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
228*7c568831SAndroid Build Coastguard Worker<h3>
229*7c568831SAndroid Build Coastguard Worker<a name="xmlDictQLookup"></a>xmlDictQLookup ()</h3>
230*7c568831SAndroid Build Coastguard Worker<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>
231*7c568831SAndroid Build Coastguard Worker</pre>
232*7c568831SAndroid Build Coastguard Worker<p>Lookup the QName @prefix:@name and add it to the dictionary if it wasn't found.</p>
233*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
234*7c568831SAndroid Build Coastguard Worker<col align="left">
235*7c568831SAndroid Build Coastguard Worker<tbody>
236*7c568831SAndroid Build Coastguard Worker<tr>
237*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>dict</tt></i>:</span></td>
238*7c568831SAndroid Build Coastguard Worker<td>the dictionary</td>
239*7c568831SAndroid Build Coastguard Worker</tr>
240*7c568831SAndroid Build Coastguard Worker<tr>
241*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>prefix</tt></i>:</span></td>
242*7c568831SAndroid Build Coastguard Worker<td>the prefix</td>
243*7c568831SAndroid Build Coastguard Worker</tr>
244*7c568831SAndroid Build Coastguard Worker<tr>
245*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>name</tt></i>:</span></td>
246*7c568831SAndroid Build Coastguard Worker<td>the name</td>
247*7c568831SAndroid Build Coastguard Worker</tr>
248*7c568831SAndroid Build Coastguard Worker<tr>
249*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
250*7c568831SAndroid Build Coastguard Worker<td>the interned copy of the string or NULL if a memory allocation failed.</td>
251*7c568831SAndroid Build Coastguard Worker</tr>
252*7c568831SAndroid Build Coastguard Worker</tbody>
253*7c568831SAndroid Build Coastguard Worker</table></div>
254*7c568831SAndroid Build Coastguard Worker</div>
255*7c568831SAndroid Build Coastguard Worker<hr>
256*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
257*7c568831SAndroid Build Coastguard Worker<h3>
258*7c568831SAndroid Build Coastguard Worker<a name="xmlDictReference"></a>xmlDictReference ()</h3>
259*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlDictReference		(<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br>
260*7c568831SAndroid Build Coastguard Worker</pre>
261*7c568831SAndroid Build Coastguard Worker<p>Increment the <a href="libxml2-SAX.html#reference">reference</a> counter of a dictionary</p>
262*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
263*7c568831SAndroid Build Coastguard Worker<col align="left">
264*7c568831SAndroid Build Coastguard Worker<tbody>
265*7c568831SAndroid Build Coastguard Worker<tr>
266*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>dict</tt></i>:</span></td>
267*7c568831SAndroid Build Coastguard Worker<td>the dictionary</td>
268*7c568831SAndroid Build Coastguard Worker</tr>
269*7c568831SAndroid Build Coastguard Worker<tr>
270*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
271*7c568831SAndroid Build Coastguard Worker<td>0 in case of success and -1 in case of error</td>
272*7c568831SAndroid Build Coastguard Worker</tr>
273*7c568831SAndroid Build Coastguard Worker</tbody>
274*7c568831SAndroid Build Coastguard Worker</table></div>
275*7c568831SAndroid Build Coastguard Worker</div>
276*7c568831SAndroid Build Coastguard Worker<hr>
277*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
278*7c568831SAndroid Build Coastguard Worker<h3>
279*7c568831SAndroid Build Coastguard Worker<a name="xmlDictSetLimit"></a>xmlDictSetLimit ()</h3>
280*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">size_t	xmlDictSetLimit			(<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict, <br>					 size_t limit)<br>
281*7c568831SAndroid Build Coastguard Worker</pre>
282*7c568831SAndroid Build Coastguard Worker<p>Set a size limit for the dictionary Added in 2.9.0</p>
283*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
284*7c568831SAndroid Build Coastguard Worker<col align="left">
285*7c568831SAndroid Build Coastguard Worker<tbody>
286*7c568831SAndroid Build Coastguard Worker<tr>
287*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>dict</tt></i>:</span></td>
288*7c568831SAndroid Build Coastguard Worker<td>the dictionary</td>
289*7c568831SAndroid Build Coastguard Worker</tr>
290*7c568831SAndroid Build Coastguard Worker<tr>
291*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>limit</tt></i>:</span></td>
292*7c568831SAndroid Build Coastguard Worker<td>the limit in bytes</td>
293*7c568831SAndroid Build Coastguard Worker</tr>
294*7c568831SAndroid Build Coastguard Worker<tr>
295*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
296*7c568831SAndroid Build Coastguard Worker<td>the previous limit of the dictionary or 0</td>
297*7c568831SAndroid Build Coastguard Worker</tr>
298*7c568831SAndroid Build Coastguard Worker</tbody>
299*7c568831SAndroid Build Coastguard Worker</table></div>
300*7c568831SAndroid Build Coastguard Worker</div>
301*7c568831SAndroid Build Coastguard Worker<hr>
302*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
303*7c568831SAndroid Build Coastguard Worker<h3>
304*7c568831SAndroid Build Coastguard Worker<a name="xmlDictSize"></a>xmlDictSize ()</h3>
305*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlDictSize			(<a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict)<br>
306*7c568831SAndroid Build Coastguard Worker</pre>
307*7c568831SAndroid Build Coastguard Worker<p>Query the number of elements installed in the hash @dict.</p>
308*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
309*7c568831SAndroid Build Coastguard Worker<col align="left">
310*7c568831SAndroid Build Coastguard Worker<tbody>
311*7c568831SAndroid Build Coastguard Worker<tr>
312*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>dict</tt></i>:</span></td>
313*7c568831SAndroid Build Coastguard Worker<td>the dictionary</td>
314*7c568831SAndroid Build Coastguard Worker</tr>
315*7c568831SAndroid Build Coastguard Worker<tr>
316*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
317*7c568831SAndroid Build Coastguard Worker<td>the number of elements in the dictionary or -1 in case of error</td>
318*7c568831SAndroid Build Coastguard Worker</tr>
319*7c568831SAndroid Build Coastguard Worker</tbody>
320*7c568831SAndroid Build Coastguard Worker</table></div>
321*7c568831SAndroid Build Coastguard Worker</div>
322*7c568831SAndroid Build Coastguard Worker<hr>
323*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
324*7c568831SAndroid Build Coastguard Worker<h3>
325*7c568831SAndroid Build Coastguard Worker<a name="xmlInitializeDict"></a>xmlInitializeDict ()</h3>
326*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlInitializeDict		(void)<br>
327*7c568831SAndroid Build Coastguard Worker</pre>
328*7c568831SAndroid Build Coastguard Worker<p>DEPRECATED: Alias for <a href="libxml2-parser.html#xmlInitParser">xmlInitParser</a>.</p>
329*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
330*7c568831SAndroid Build Coastguard Worker<col align="left">
331*7c568831SAndroid Build Coastguard Worker<tbody><tr>
332*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
333*7c568831SAndroid Build Coastguard Worker<td>0.</td>
334*7c568831SAndroid Build Coastguard Worker</tr></tbody>
335*7c568831SAndroid Build Coastguard Worker</table></div>
336*7c568831SAndroid Build Coastguard Worker</div>
337*7c568831SAndroid Build Coastguard Worker<hr>
338*7c568831SAndroid Build Coastguard Worker</div>
339*7c568831SAndroid Build Coastguard Worker</div>
340*7c568831SAndroid Build Coastguard Worker</body>
341*7c568831SAndroid Build Coastguard Worker</html>
342