ReactOS  0.4.15-dev-5459-gb85f005
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  */
32 
33 /*
34  * Constructor and destructor.
35  */
37  xmlDictCreate (void);
38 XMLPUBFUN size_t XMLCALL
40  size_t limit);
41 XMLPUBFUN size_t XMLCALL
47 XMLPUBFUN void XMLCALL
49 
50 /*
51  * Lookup of entry in the dictionary.
52  */
55  const xmlChar *name,
56  int len);
59  const xmlChar *name,
60  int len);
63  const xmlChar *prefix,
64  const xmlChar *name);
67  const xmlChar *str);
70 
71 /*
72  * Cleanup function
73  */
75 XMLPUBFUN void XMLCALL
76  xmlDictCleanup (void);
77 
78 #ifdef __cplusplus
79 }
80 #endif
81 #endif /* ! __XML_DICT_H__ */
XMLPUBFUN int XMLCALL xmlDictReference(xmlDictPtr dict)
Definition: dict.c:647
#define XML_DEPRECATED
Definition: xmlversion.h:494
XMLPUBFUN xmlDictPtr XMLCALL xmlDictCreate(void)
Definition: dict.c:577
XMLPUBFUN size_t XMLCALL xmlDictSetLimit(xmlDictPtr dict, size_t limit)
Definition: dict.c:1265
XMLPUBFUN xmlDictPtr XMLCALL xmlDictCreateSub(xmlDictPtr sub)
Definition: dict.c:624
#define XMLPUBFUN
Definition: xmlexports.h:61
GLint limit
Definition: glext.h:10326
struct _xmlDictEntry * dict
Definition: dict.c:114
const WCHAR * str
XMLPUBFUN size_t XMLCALL xmlDictGetUsage(xmlDictPtr dict)
Definition: dict.c:1285
Definition: dict.c:111
XMLPUBFUN const xmlChar *XMLCALL xmlDictExists(xmlDictPtr dict, const xmlChar *name, int len)
Definition: dict.c:1007
XMLPUBFUN int XMLCALL xmlDictSize(xmlDictPtr dict)
Definition: dict.c:1246
XML_DEPRECATED XMLPUBFUN int XMLCALL xmlInitializeDict(void)
Definition: dict.c:157
XML_DEPRECATED XMLPUBFUN void XMLCALL xmlDictCleanup(void)
Definition: dict.c:224
XMLPUBFUN const xmlChar *XMLCALL xmlDictLookup(xmlDictPtr dict, const xmlChar *name, int len)
Definition: dict.c:867
unsigned char xmlChar
Definition: xmlstring.h:28
XMLPUBFUN void XMLCALL xmlDictFree(xmlDictPtr dict)
Definition: dict.c:802
GLenum GLsizei len
Definition: glext.h:6722
XMLPUBFUN const xmlChar *XMLCALL xmlDictQLookup(xmlDictPtr dict, const xmlChar *prefix, const xmlChar *name)
Definition: dict.c:1115
xmlDict * xmlDictPtr
Definition: dict.h:25
XMLPUBFUN int XMLCALL xmlDictOwns(xmlDictPtr dict, const xmlChar *str)
Definition: dict.c:1220
#define XMLCALL
Definition: name.c:38