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__
14 #include <libxml/xmlversion.h>
15 #include <libxml/tree.h>
24 typedef struct _xmlDict xmlDict;
25 typedef xmlDict *xmlDictPtr;
30 XMLPUBFUN int XMLCALL xmlInitializeDict(void);
33 * Constructor and destructor.
35 XMLPUBFUN xmlDictPtr XMLCALL
37 XMLPUBFUN xmlDictPtr XMLCALL
38 xmlDictCreateSub(xmlDictPtr sub);
40 xmlDictReference(xmlDictPtr dict);
41 XMLPUBFUN void XMLCALL
42 xmlDictFree (xmlDictPtr dict);
45 * Lookup of entry in the dictionnary.
47 XMLPUBFUN const xmlChar * XMLCALL
48 xmlDictLookup (xmlDictPtr dict,
51 XMLPUBFUN const xmlChar * XMLCALL
52 xmlDictExists (xmlDictPtr dict,
55 XMLPUBFUN const xmlChar * XMLCALL
56 xmlDictQLookup (xmlDictPtr dict,
57 const xmlChar *prefix,
60 xmlDictOwns (xmlDictPtr dict,
63 xmlDictSize (xmlDictPtr dict);
68 XMLPUBFUN void XMLCALL
69 xmlDictCleanup (void);
74 #endif /* ! __XML_DICT_H__ */