dict.h

00001 /*
00002 
00003  * Summary: string dictionnary
00004 
00005  * Description: dictionary of reusable strings, just used to avoid allocation
00006 
00007  *         and freeing operations.
00008 
00009  *
00010 
00011  * Copy: See Copyright for the status of this software.
00012 
00013  *
00014 
00015  * Author: Daniel Veillard
00016 
00017  */
00018 
00019 
00020 
00021 #ifndef __XML_DICT_H__
00022 
00023 #define __XML_DICT_H__
00024 
00025 
00026 
00027 #include <libxml/xmlversion.h>
00028 
00029 #include <libxml/tree.h>
00030 
00031 
00032 
00033 #ifdef __cplusplus
00034 
00035 extern "C" {
00036 
00037 #endif
00038 
00039 
00040 
00041 /*
00042 
00043  * The dictionnary.
00044 
00045  */
00046 
00047 typedef struct _xmlDict xmlDict;
00048 
00049 typedef xmlDict *xmlDictPtr;
00050 
00051 
00052 
00053 /*
00054 
00055  * Constructor and destructor.
00056 
00057  */
00058 
00059 XMLPUBFUN xmlDictPtr XMLCALL
00060 
00061                         xmlDictCreate   (void);
00062 
00063 XMLPUBFUN xmlDictPtr XMLCALL
00064 
00065                         xmlDictCreateSub(xmlDictPtr sub);
00066 
00067 XMLPUBFUN int XMLCALL
00068 
00069                         xmlDictReference(xmlDictPtr dict);
00070 
00071 XMLPUBFUN void XMLCALL                  
00072 
00073                         xmlDictFree     (xmlDictPtr dict);
00074 
00075 
00076 
00077 /*
00078 
00079  * Lookup of entry in the dictionnary.
00080 
00081  */
00082 
00083 XMLPUBFUN const xmlChar * XMLCALL               
00084 
00085                         xmlDictLookup   (xmlDictPtr dict,
00086 
00087                                          const xmlChar *name,
00088 
00089                                          int len);
00090 
00091 XMLPUBFUN const xmlChar * XMLCALL               
00092 
00093                         xmlDictExists   (xmlDictPtr dict,
00094 
00095                                          const xmlChar *name,
00096 
00097                                          int len);
00098 
00099 XMLPUBFUN const xmlChar * XMLCALL               
00100 
00101                         xmlDictQLookup  (xmlDictPtr dict,
00102 
00103                                          const xmlChar *prefix,
00104 
00105                                          const xmlChar *name);
00106 
00107 XMLPUBFUN int XMLCALL
00108 
00109                         xmlDictOwns     (xmlDictPtr dict,
00110 
00111                                          const xmlChar *str);
00112 
00113 XMLPUBFUN int XMLCALL                   
00114 
00115                         xmlDictSize     (xmlDictPtr dict);
00116 
00117 
00118 
00119 /*
00120 
00121  * Cleanup function
00122 
00123  */
00124 
00125 XMLPUBFUN void XMLCALL
00126 
00127                         xmlDictCleanup  (void);
00128 
00129 
00130 
00131 #ifdef __cplusplus
00132 
00133 }
00134 
00135 #endif
00136 
00137 #endif /* ! __XML_DICT_H__ */
00138 

Generated on Wed Jul 26 13:30:46 2006 for XSB by  doxygen 1.4.5