ReactOS  0.4.13-dev-656-g74bcf30
dict.h
Go to the documentation of this file.
1 /*
2  * Summary: string dictionary
3  * Description: dictionary of reusable strings, just used to avoid allocation
4  * and freeing operations.
5  *
6  * Copy: See Copyright for the status of this software.
7  *
8  * Author: Daniel Veillard
9  */
10 
11 #ifndef __XML_DICT_H__
12 #define __XML_DICT_H__
13 
14 #ifdef __cplusplus
15 #define __XML_EXTERNC extern "C"
16 #else
17 #define __XML_EXTERNC
18 #endif
19 
20 /*
21  * The dictionary.
22  */
25 
26 #include <limits.h>
27 #include <libxml/xmlversion.h>
28 #include <libxml/tree.h>
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 /*
35  * Initializer
36  */
38 
39 /*
40  * Constructor and destructor.
41  */
43  xmlDictCreate (void);
44 XMLPUBFUN size_t XMLCALL
46  size_t limit);
47 XMLPUBFUN size_t XMLCALL
53 XMLPUBFUN void XMLCALL
55 
56 /*
57  * Lookup of entry in the dictionary.
58  */
61  const xmlChar *name,
62  int len);
65  const xmlChar *name,
66  int len);
69  const xmlChar *prefix,
70  const xmlChar *name);
73  const xmlChar *str);
76 
77 /*
78  * Cleanup function
79  */
80 XMLPUBFUN void XMLCALL
81  xmlDictCleanup (void);
82 
83 #ifdef __cplusplus
84 }
85 #endif
86 #endif /* ! __XML_DICT_H__ */
XMLPUBFUN int XMLCALL xmlDictReference(xmlDictPtr dict)
Definition: dict.c:638
#define __XML_EXTERNC
Definition: dict.h:17
XMLPUBFUN xmlDictPtr XMLCALL xmlDictCreate(void)
Definition: dict.c:568
XMLPUBFUN size_t XMLCALL xmlDictSetLimit(xmlDictPtr dict, size_t limit)
Definition: dict.c:1256
XMLPUBFUN xmlDictPtr XMLCALL xmlDictCreateSub(xmlDictPtr sub)
Definition: dict.c:615
#define XMLPUBFUN
Definition: xmlexports.h:30
GLint limit
Definition: glext.h:10326
struct _xmlDictEntry * dict
Definition: dict.c:118
const WCHAR * str
XMLPUBFUN size_t XMLCALL xmlDictGetUsage(xmlDictPtr dict)
Definition: dict.c:1276
Definition: dict.c:115
XMLPUBFUN const xmlChar *XMLCALL xmlDictExists(xmlDictPtr dict, const xmlChar *name, int len)
Definition: dict.c:998
XMLPUBFUN int XMLCALL xmlDictSize(xmlDictPtr dict)
Definition: dict.c:1237
XMLPUBFUN const xmlChar *XMLCALL xmlDictLookup(xmlDictPtr dict, const xmlChar *name, int len)
Definition: dict.c:858
unsigned char xmlChar
Definition: xmlstring.h:28
XMLPUBFUN void XMLCALL xmlDictFree(xmlDictPtr dict)
Definition: dict.c:793
GLenum GLsizei len
Definition: glext.h:6722
XMLPUBFUN const xmlChar *XMLCALL xmlDictQLookup(xmlDictPtr dict, const xmlChar *prefix, const xmlChar *name)
Definition: dict.c:1106
__XML_EXTERNC typedef xmlDict * xmlDictPtr
Definition: dict.h:24
XMLPUBFUN int XMLCALL xmlDictOwns(xmlDictPtr dict, const xmlChar *str)
Definition: dict.c:1211
typedef__XML_EXTERNC struct _xmlDict xmlDict
Definition: dict.h:23
#define XMLCALL
Definition: name.c:36
XMLPUBFUN int XMLCALL xmlInitializeDict(void)
Definition: dict.c:159
XMLPUBFUN void XMLCALL xmlDictCleanup(void)
Definition: dict.c:221