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
;
28 * Constructor and destructor.
30 XMLPUBFUN xmlDictPtr XMLCALL
32 XMLPUBFUN xmlDictPtr XMLCALL
33 xmlDictCreateSub(xmlDictPtr sub
);
35 xmlDictReference(xmlDictPtr dict
);
36 XMLPUBFUN
void XMLCALL
37 xmlDictFree (xmlDictPtr dict
);
40 * Lookup of entry in the dictionnary.
42 XMLPUBFUN
const xmlChar
* XMLCALL
43 xmlDictLookup (xmlDictPtr dict
,
46 XMLPUBFUN
const xmlChar
* XMLCALL
47 xmlDictExists (xmlDictPtr dict
,
50 XMLPUBFUN
const xmlChar
* XMLCALL
51 xmlDictQLookup (xmlDictPtr dict
,
52 const xmlChar
*prefix
,
55 xmlDictOwns (xmlDictPtr dict
,
58 xmlDictSize (xmlDictPtr dict
);
63 XMLPUBFUN
void XMLCALL
64 xmlDictCleanup (void);
69 #endif /* ! __XML_DICT_H__ */