2 * Summary: string dictionnary
3 * Description: dictionary of reusable strings, just used to avoid allocation
4 * and freeing operations.
6 * Copy: See Copyright for the status of this software.
8 * Author: Daniel Veillard
9 * Portion Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
20 #include "libxml2_xmlstring.h"
26 typedef struct _xmlDictStrings xmlDictStrings;
27 typedef xmlDictStrings* xmlDictStringsPtr;
29 struct _xmlDictStrings {
30 xmlDictStringsPtr next;
39 * An entry in the dictionnary
41 typedef struct _xmlDictEntry xmlDictEntry;
42 typedef xmlDictEntry* xmlDictEntryPtr;
43 struct _xmlDictEntry {
52 typedef struct _xmlDict xmlDict;
53 typedef xmlDict* xmlDictPtr;
56 * The entire dictionnary
64 xmlDictStringsPtr strings;
70 * Constructor and destructor.
72 XMLPUBFUN xmlDictPtr XMLCALL
75 XMLPUBFUN xmlDictPtr XMLCALL xmlDictCreateSub(xmlDictPtr sub);
78 xmlDictReference(xmlDictPtr dict);
79 XMLPUBFUN void XMLCALL
80 xmlDictFree (xmlDictPtr dict);
83 * Lookup of entry in the dictionnary.
85 XMLPUBFUN const xmlChar* XMLCALL
86 xmlDictLookup (xmlDictPtr dict,
90 XMLPUBFUN const xmlChar * XMLCALL
91 xmlDictQLookup (xmlDictPtr dict,
92 const xmlChar *prefix,
95 #ifndef XMLENGINE_EXCLUDE_UNUSED
97 xmlDictSize (xmlDictPtr dict);
98 #endif /* ifndef XMLENGINE_EXCLUDE_UNUSED */
100 XMLPUBFUN int XMLCALL
101 xmlDictOwns (xmlDictPtr dict,
106 #endif /* XML_DICT_H */