--- embedaddon/libxml2/doc/devhelp/libxml2-dict.html 2012/02/21 23:37:59 1.1.1.1 +++ embedaddon/libxml2/doc/devhelp/libxml2-dict.html 2014/06/15 19:53:35 1.1.1.3 @@ -45,12 +45,15 @@
typedef struct _xmlDict xmlDict; typedef xmlDict * xmlDictPtr; +size_t xmlDictGetUsage (xmlDictPtr dict); int xmlDictReference (xmlDictPtr dict); void xmlDictCleanup (void); int xmlDictSize (xmlDictPtr dict); const xmlChar * xmlDictExists (xmlDictPtr dict,
const xmlChar * name,
int len); +size_t xmlDictSetLimit (xmlDictPtr dict,
size_t limit); int xmlDictOwns (xmlDictPtr dict,
const xmlChar * str); const xmlChar * xmlDictQLookup (xmlDictPtr dict,
const xmlChar * prefix,
const xmlChar * name); +int xmlInitializeDict (void); xmlDictPtr xmlDictCreateSub (xmlDictPtr sub); void xmlDictFree (xmlDictPtr dict); const xmlChar * xmlDictLookup (xmlDictPtr dict,
const xmlChar * name,
int len); @@ -74,7 +77,7 @@ The content of this structure is not made public by th
xmlDictCleanup ()
void xmlDictCleanup (void)
-Free the dictionary mutex.
+Free the dictionary mutex. Do not call unless sure the library is not in use anymore !
xmlDictCreate ()
xmlDictPtr xmlDictCreate (void)
@@ -93,6 +96,10 @@ The content of this structure is not made public by thFree the hash @dict and its contents. The userdata is deallocated with @f if provided.
dict: the dictionnary
++xmlDictGetUsage ()
size_t xmlDictGetUsage (xmlDictPtr dict)
+Get how much memory is used by a dictionary for strings Added in 2.9.0
+
dict: the dictionnary Returns: the amount of strings allocated
@@ -109,9 +116,17 @@ The content of this structure is not made public by thxmlDictLookup ()
const xmlChar * xmlDictLookup (xmlDictPtr dict,
const xmlChar * name,
int len)
Add the @name to the dictionnary @dict if not present.
dict: the dictionnary name: the name of the userdata len: the length of the name, if -1 it is recomputed Returns: the internal copy of the name or NULL in case of internal error
Increment the reference counter of a dictionary
dict: | the dictionnary |
Returns: | 0 in case of success and -1 in case of error |
size_t xmlDictSetLimit (xmlDictPtr dict,
size_t limit)
+
Set a size limit for the dictionary Added in 2.9.0
+dict: | the dictionnary |
limit: | the limit in bytes |
Returns: | the previous limit of the dictionary or 0 |
int xmlDictSize (xmlDictPtr dict)
Query the number of elements installed in the hash @dict.
dict: | the dictionnary |
Returns: | the number of elements in the dictionnary or -1 in case of error |
int xmlInitializeDict (void)
+
Do the dictionary mutex initialization. this function is deprecated
+Returns: | 0 if initialization was already done, and 1 if that call led to the initialization |