Eneboo - Documentación para desarrolladores
|
#include "libxml.h"
#include <string.h>
#include <libxml/tree.h>
#include <libxml/dict.h>
#include <libxml/xmlmemory.h>
#include <libxml/xmlerror.h>
#include <libxml/globals.h>
#include "elfgcchack.h"
Clases | |
struct | _xmlDictEntry |
struct | _xmlDictStrings |
struct | _xmlDict |
'defines' | |
#define | IN_LIBXML |
#define | MAX_HASH_LEN 3 |
#define | MIN_DICT_SIZE 128 |
#define | MAX_DICT_HASH 8 * 2048 |
#define | WITH_BIG_KEY |
#define | xmlDictComputeKey(dict, name, len) |
#define | xmlDictComputeQKey(dict, prefix, plen, name, len) |
'typedefs' | |
typedef struct _xmlDictEntry | xmlDictEntry |
typedef xmlDictEntry * | xmlDictEntryPtr |
typedef struct _xmlDictStrings | xmlDictStrings |
typedef xmlDictStrings * | xmlDictStringsPtr |
Funciones | |
void | xmlDictCleanup (void) |
xmlDictPtr | xmlDictCreate (void) |
xmlDictPtr | xmlDictCreateSub (xmlDictPtr sub) |
int | xmlDictReference (xmlDictPtr dict) |
void | xmlDictFree (xmlDictPtr dict) |
to the dictionnary @dict if not present. | |
Returns the internal copy of the name or NULL in case of internal error | |
const xmlChar * | xmlDictLookup (xmlDictPtr dict, const xmlChar *name, int len) |
exists in the dictionnary @dict. | |
Returns the internal copy of the name or NULL if not found. | |
const xmlChar * | xmlDictExists (xmlDictPtr dict, const xmlChar *name, int len) |
to the hash @dict if not present. | |
Returns the internal copy of the QName or NULL in case of internal error | |
#define | bottom_dict |
const xmlChar * | xmlDictQLookup (xmlDictPtr dict, const xmlChar *prefix, const xmlChar *name) |
int | xmlDictOwns (xmlDictPtr dict, const xmlChar *str) |
int | xmlDictSize (xmlDictPtr dict) |
#define bottom_dict |
#define IN_LIBXML |
#define MAX_DICT_HASH 8 * 2048 |
#define MAX_HASH_LEN 3 |
#define MIN_DICT_SIZE 128 |
#define WITH_BIG_KEY |
(((prefix) == NULL) ? \ (xmlDictComputeKey(dict, name, len)) : \ (((dict)->size == MIN_DICT_SIZE) ? \ xmlDictComputeFastQKey(prefix, plen, name, len) : \ xmlDictComputeBigQKey(prefix, plen, name, len)))
typedef struct _xmlDictEntry xmlDictEntry |
typedef xmlDictEntry* xmlDictEntryPtr |
typedef struct _xmlDictStrings xmlDictStrings |
typedef xmlDictStrings* xmlDictStringsPtr |
void xmlDictCleanup | ( | void | ) |
xmlDictCleanup:
Free the dictionary mutex.
xmlDictPtr xmlDictCreate | ( | void | ) |
xmlDictCreate:
Create a new dictionary
Returns the newly created dictionnary, or NULL if an error occured.
xmlDictPtr 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.
const xmlChar* xmlDictExists | ( | xmlDictPtr | dict, |
const xmlChar * | name, | ||
int | len | ||
) |
void xmlDictFree | ( | xmlDictPtr | dict | ) |
xmlDictFree: : the dictionnary
Free the hash and its contents. The userdata is deallocated with if provided.
const xmlChar* xmlDictLookup | ( | xmlDictPtr | dict, |
const xmlChar * | name, | ||
int | len | ||
) |
int 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
const xmlChar* xmlDictQLookup | ( | xmlDictPtr | dict, |
const xmlChar * | prefix, | ||
const xmlChar * | name | ||
) |
int 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
int 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