2 * Summary: string dictionary
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 #define __XML_EXTERNC extern "C"
23 __XML_EXTERNC typedef struct _xmlDict xmlDict;
24 __XML_EXTERNC typedef xmlDict *xmlDictPtr;
27 #include <libxml/xmlversion.h>
28 #include <libxml/tree.h>
37 XMLPUBFUN int XMLCALL xmlInitializeDict(void);
40 * Constructor and destructor.
42 XMLPUBFUN xmlDictPtr XMLCALL
44 XMLPUBFUN size_t XMLCALL
45 xmlDictSetLimit (xmlDictPtr dict,
47 XMLPUBFUN size_t XMLCALL
48 xmlDictGetUsage (xmlDictPtr dict);
49 XMLPUBFUN xmlDictPtr XMLCALL
50 xmlDictCreateSub(xmlDictPtr sub);
52 xmlDictReference(xmlDictPtr dict);
53 XMLPUBFUN void XMLCALL
54 xmlDictFree (xmlDictPtr dict);
57 * Lookup of entry in the dictionary.
59 XMLPUBFUN const xmlChar * XMLCALL
60 xmlDictLookup (xmlDictPtr dict,
63 XMLPUBFUN const xmlChar * XMLCALL
64 xmlDictExists (xmlDictPtr dict,
67 XMLPUBFUN const xmlChar * XMLCALL
68 xmlDictQLookup (xmlDictPtr dict,
69 const xmlChar *prefix,
72 xmlDictOwns (xmlDictPtr dict,
75 xmlDictSize (xmlDictPtr dict);
80 XMLPUBFUN void XMLCALL
81 xmlDictCleanup (void);
86 #endif /* ! __XML_DICT_H__ */