Eneboo - Documentación para desarrolladores
|
Ir al código fuente de este archivo.
'typedefs' | |
typedef struct _xmlDict | xmlDict |
typedef xmlDict * | xmlDictPtr |
Funciones | |
XMLPUBFUN xmlDictPtr XMLCALL | xmlDictCreate (void) |
XMLPUBFUN xmlDictPtr XMLCALL | xmlDictCreateSub (xmlDictPtr sub) |
XMLPUBFUN int XMLCALL | xmlDictReference (xmlDictPtr dict) |
XMLPUBFUN void XMLCALL | xmlDictFree (xmlDictPtr dict) |
XMLPUBFUN const xmlChar *XMLCALL | xmlDictLookup (xmlDictPtr dict, const xmlChar *name, int len) |
XMLPUBFUN const xmlChar *XMLCALL | xmlDictExists (xmlDictPtr dict, const xmlChar *name, int len) |
XMLPUBFUN const xmlChar *XMLCALL | xmlDictQLookup (xmlDictPtr dict, const xmlChar *prefix, const xmlChar *name) |
XMLPUBFUN int XMLCALL | xmlDictOwns (xmlDictPtr dict, const xmlChar *str) |
XMLPUBFUN int XMLCALL | xmlDictSize (xmlDictPtr dict) |
XMLPUBFUN void XMLCALL | xmlDictCleanup (void) |
typedef xmlDict* xmlDictPtr |
XMLPUBFUN void XMLCALL xmlDictCleanup | ( | void | ) |
xmlDictCleanup:
Free the dictionary mutex.
XMLPUBFUN xmlDictPtr XMLCALL xmlDictCreate | ( | void | ) |
xmlDictCreate:
Create a new dictionary
Returns the newly created dictionnary, or NULL if an error occured.
XMLPUBFUN xmlDictPtr XMLCALL xmlDictCreateSub | ( | xmlDictPtr | sub | ) |
xmlDictCreateSub: : an existing dictionnary
Create a new dictionary, inheriting strings from the read-only dictionnary . On lookup, strings are first searched in the new dictionnary, then in , and if not found are created in the new dictionnary.
Returns the newly created dictionnary, or NULL if an error occured.
XMLPUBFUN const xmlChar* XMLCALL xmlDictExists | ( | xmlDictPtr | dict, |
const xmlChar * | name, | ||
int | len | ||
) |
XMLPUBFUN void XMLCALL xmlDictFree | ( | xmlDictPtr | dict | ) |
xmlDictFree: : the dictionnary
Free the hash and its contents. The userdata is deallocated with if provided.
XMLPUBFUN const xmlChar* XMLCALL xmlDictLookup | ( | xmlDictPtr | dict, |
const xmlChar * | name, | ||
int | len | ||
) |
XMLPUBFUN int XMLCALL xmlDictOwns | ( | xmlDictPtr | dict, |
const xmlChar * | str | ||
) |
xmlDictOwns: : the dictionnary : the string
check if a string is owned by the disctionary
Returns 1 if true, 0 if false and -1 in case of error -1 in case of error
XMLPUBFUN const xmlChar* XMLCALL xmlDictQLookup | ( | xmlDictPtr | dict, |
const xmlChar * | prefix, | ||
const xmlChar * | name | ||
) |
XMLPUBFUN int XMLCALL xmlDictReference | ( | xmlDictPtr | dict | ) |
xmlDictReference: : the dictionnary
Increment the reference counter of a dictionary
Returns 0 in case of success and -1 in case of error
XMLPUBFUN int XMLCALL xmlDictSize | ( | xmlDictPtr | dict | ) |
xmlDictSize: : the dictionnary
Query the number of elements installed in the hash .
Returns the number of elements in the dictionnary or -1 in case of error