2 * Summary: string dictionnary
3 * Description: dictionary of reusable strings, just used to avoid allocation
4 * and freeing operations.
6 * Copy: See Copyright for the status of this software.
8 * Author: Daniel Veillard
11 #ifndef __XML_DICT_H__
12 #define __XML_DICT_H__
15 #include <libxml/xmlversion.h>
16 #include <libxml/tree.h>
25 typedef struct _xmlDict xmlDict
;
26 typedef xmlDict
*xmlDictPtr
;
31 XMLPUBFUN
int XMLCALL
xmlInitializeDict(void);
34 * Constructor and destructor.
36 XMLPUBFUN xmlDictPtr XMLCALL
38 XMLPUBFUN
size_t XMLCALL
39 xmlDictSetLimit (xmlDictPtr dict
,
41 XMLPUBFUN
size_t XMLCALL
42 xmlDictGetUsage (xmlDictPtr dict
);
43 XMLPUBFUN xmlDictPtr XMLCALL
44 xmlDictCreateSub(xmlDictPtr sub
);
46 xmlDictReference(xmlDictPtr dict
);
47 XMLPUBFUN
void XMLCALL
48 xmlDictFree (xmlDictPtr dict
);
51 * Lookup of entry in the dictionnary.
53 XMLPUBFUN
const xmlChar
* XMLCALL
54 xmlDictLookup (xmlDictPtr dict
,
57 XMLPUBFUN
const xmlChar
* XMLCALL
58 xmlDictExists (xmlDictPtr dict
,
61 XMLPUBFUN
const xmlChar
* XMLCALL
62 xmlDictQLookup (xmlDictPtr dict
,
63 const xmlChar
*prefix
,
66 xmlDictOwns (xmlDictPtr dict
,
69 xmlDictSize (xmlDictPtr dict
);
74 XMLPUBFUN
void XMLCALL
75 xmlDictCleanup (void);
80 #endif /* ! __XML_DICT_H__ */