VirtualBox

source: vbox/trunk/src/libs/libxml2-2.13.2/include/libxml/dict.h@ 107935

Last change on this file since 107935 was 105420, checked in by vboxsync, 7 months ago

libxml2-2.12.6: Applied and adjusted our libxml2 changes to 2.12.6. bugref:10730

  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
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#include <libxml/xmlstring.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22/*
23 * The dictionary.
24 */
25typedef struct _xmlDict xmlDict;
26typedef xmlDict *xmlDictPtr;
27
28/*
29 * Initializer
30 */
31XML_DEPRECATED
32XMLPUBFUN int xmlInitializeDict(void);
33
34/*
35 * Constructor and destructor.
36 */
37XMLPUBFUN xmlDictPtr
38 xmlDictCreate (void);
39XMLPUBFUN size_t
40 xmlDictSetLimit (xmlDictPtr dict,
41 size_t limit);
42XMLPUBFUN size_t
43 xmlDictGetUsage (xmlDictPtr dict);
44XMLPUBFUN xmlDictPtr
45 xmlDictCreateSub(xmlDictPtr sub);
46XMLPUBFUN int
47 xmlDictReference(xmlDictPtr dict);
48XMLPUBFUN void
49 xmlDictFree (xmlDictPtr dict);
50
51/*
52 * Lookup of entry in the dictionary.
53 */
54XMLPUBFUN const xmlChar *
55 xmlDictLookup (xmlDictPtr dict,
56 const xmlChar *name,
57 int len);
58XMLPUBFUN const xmlChar *
59 xmlDictExists (xmlDictPtr dict,
60 const xmlChar *name,
61 int len);
62XMLPUBFUN const xmlChar *
63 xmlDictQLookup (xmlDictPtr dict,
64 const xmlChar *prefix,
65 const xmlChar *name);
66XMLPUBFUN int
67 xmlDictOwns (xmlDictPtr dict,
68 const xmlChar *str);
69XMLPUBFUN int
70 xmlDictSize (xmlDictPtr dict);
71
72/*
73 * Cleanup function
74 */
75XML_DEPRECATED
76XMLPUBFUN void
77 xmlDictCleanup (void);
78
79#ifdef __cplusplus
80}
81#endif
82#endif /* ! __XML_DICT_H__ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette