ReactOS  0.4.15-dev-1206-g731eddf
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 #include <stddef.h>
15 #include <libxml/xmlversion.h>
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 /*
22  * The dictionary.
23  */
24 typedef struct _xmlDict xmlDict;
26 
27 /*
28  * Initializer
29  */
31 
32 /*
33  * Constructor and destructor.
34  */
36  xmlDictCreate (void);
37 XMLPUBFUN size_t XMLCALL
39  size_t limit);
40 XMLPUBFUN size_t XMLCALL
46 XMLPUBFUN void XMLCALL
48 
49 /*
50  * Lookup of entry in the dictionary.
51  */
54  const xmlChar *name,
55  int len);
58  const xmlChar *name,
59  int len);
62  const xmlChar *prefix,
63  const xmlChar *name);
66  const xmlChar *str);
69 
70 /*
71  * Cleanup function
72  */
73 XMLPUBFUN void XMLCALL
74  xmlDictCleanup (void);
75 
76 #ifdef __cplusplus
77 }
78 #endif
79 #endif /* ! __XML_DICT_H__ */
XMLPUBFUN int XMLCALL xmlDictReference(xmlDictPtr dict)
Definition: dict.c:645
XMLPUBFUN xmlDictPtr XMLCALL xmlDictCreate(void)
Definition: dict.c:575
XMLPUBFUN size_t XMLCALL xmlDictSetLimit(xmlDictPtr dict, size_t limit)
Definition: dict.c:1263
XMLPUBFUN xmlDictPtr XMLCALL xmlDictCreateSub(xmlDictPtr sub)
Definition: dict.c:622
#define XMLPUBFUN
Definition: xmlexports.h:30
GLint limit
Definition: glext.h:10326
struct _xmlDictEntry * dict
Definition: dict.c:119
const WCHAR * str
XMLPUBFUN size_t XMLCALL xmlDictGetUsage(xmlDictPtr dict)
Definition: dict.c:1283
Definition: dict.c:116
XMLPUBFUN const xmlChar *XMLCALL xmlDictExists(xmlDictPtr dict, const xmlChar *name, int len)
Definition: dict.c:1005
XMLPUBFUN int XMLCALL xmlDictSize(xmlDictPtr dict)
Definition: dict.c:1244
XMLPUBFUN const xmlChar *XMLCALL xmlDictLookup(xmlDictPtr dict, const xmlChar *name, int len)
Definition: dict.c:865
unsigned char xmlChar
Definition: xmlstring.h:28
XMLPUBFUN void XMLCALL xmlDictFree(xmlDictPtr dict)
Definition: dict.c:800
GLenum GLsizei len
Definition: glext.h:6722
XMLPUBFUN const xmlChar *XMLCALL xmlDictQLookup(xmlDictPtr dict, const xmlChar *prefix, const xmlChar *name)
Definition: dict.c:1113
xmlDict * xmlDictPtr
Definition: dict.h:25
XMLPUBFUN int XMLCALL xmlDictOwns(xmlDictPtr dict, const xmlChar *str)
Definition: dict.c:1218
#define XMLCALL
Definition: name.c:38
XMLPUBFUN int XMLCALL xmlInitializeDict(void)
Definition: dict.c:160
XMLPUBFUN void XMLCALL xmlDictCleanup(void)
Definition: dict.c:222