ReactOS
0.4.15-dev-4853-g3a72a52
|
#include "libxml.h"
#include <limits.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <stdint.h>
#include <libxml/tree.h>
#include <libxml/dict.h>
#include <libxml/xmlmemory.h>
#include <libxml/xmlerror.h>
#include <libxml/globals.h>
#include "elfgcchack.h"
Go to the source code of this file.
Classes | |
struct | _xmlDictEntry |
struct | _xmlDictStrings |
struct | _xmlDict |
Macros | |
#define | IN_LIBXML |
#define | DICT_RANDOMIZATION |
#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 |
Variables | |
static xmlRMutexPtr | xmlDictMutex = NULL |
static int | xmlDictInitialized = 0 |
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) |
size_t | xmlDictSetLimit (xmlDictPtr dict, size_t limit) |
size_t | xmlDictGetUsage (xmlDictPtr dict) |
typedef struct _xmlDictEntry xmlDictEntry |
typedef xmlDictEntry* xmlDictEntryPtr |
typedef struct _xmlDictStrings xmlDictStrings |
typedef xmlDictStrings* xmlDictStringsPtr |
__xmlInitializeDict:
This function is not public Do the dictionary mutex initialization. this function is not thread safe, initialization should normally be done once at setup when called from xmlOnceInit() we may also land in this code if thread support is not compiled in
Returns 0 if initialization was already done, and 1 if that call led to the initialization
Definition at line 176 of file dict.c.
Referenced by __xmlRandom(), xmlDictCreate(), xmlDictFree(), and xmlDictReference().
|
static |
Definition at line 306 of file dict.c.
Referenced by xmlDictQLookup().
|
static |
Definition at line 242 of file dict.c.
Referenced by xmlDictAddQString(), and xmlDictLookup().
xmlDictCleanup:
Free the dictionary mutex. Do not call unless sure the library is not in use anymore !
Definition at line 222 of file dict.c.
Referenced by xmlCleanupParser().
Definition at line 379 of file dict.c.
|
static |
Definition at line 414 of file dict.c.
Definition at line 451 of file dict.c.
|
static |
Definition at line 494 of file dict.c.
xmlDictPtr xmlDictCreate | ( | void | ) |
xmlDictCreate:
Create a new dictionary
Returns the newly created dictionary, or NULL if an error occurred.
Definition at line 575 of file dict.c.
Referenced by xmlDictCreateSub(), xmlInitParserCtxt(), and xsltNewStylesheetInternal().
xmlDictPtr xmlDictCreateSub | ( | xmlDictPtr | sub | ) |
xmlDictCreateSub: @sub: an existing dictionary
Create a new dictionary, inheriting strings from the read-only dictionary @sub. On lookup, strings are first searched in the new dictionary, then in @sub, and if not found are created in the new dictionary.
Returns the newly created dictionary, or NULL if an error occurred.
Definition at line 622 of file dict.c.
Referenced by xsltNewTransformContext().
Definition at line 1005 of file dict.c.
void xmlDictFree | ( | xmlDictPtr | dict | ) |
xmlDictFree: @dict: the dictionary
Free the hash @dict and its contents. The userdata is deallocated with @f if provided.
Definition at line 800 of file dict.c.
Referenced by xmlFreeParserCtxt(), xmlHashFree(), xmlParseBalancedChunkMemoryInternal(), xmlParseExternalEntityPrivate(), xmlParseInNodeContext(), xsltDocDefaultLoaderFunc(), xsltFreeStylesheet(), xsltFreeTransformContext(), and xsltParseStylesheetUser().
size_t xmlDictGetUsage | ( | xmlDictPtr | dict | ) |
xmlDictGetUsage: @dict: the dictionary
Get how much memory is used by a dictionary for strings Added in 2.9.0
Returns the amount of strings allocated
Definition at line 1283 of file dict.c.
|
static |
xmlDictGrow: @dict: the dictionary @size: the new size of the dictionary
resize the dictionary
Returns 0 in case of success, -1 in case of failure
Definition at line 667 of file dict.c.
Referenced by xmlDictLookup(), and xmlDictQLookup().
Definition at line 865 of file dict.c.
Referenced by xmlAddAttributeDecl(), xmlAddDefAttrs(), xmlAddID(), xmlCopyDocElementContent(), xmlDetectSAX2(), xmlDictQLookup(), xmlHashAddEntry3(), xmlHashUpdateEntry3(), xmlNewDocElementContent(), xmlParseBalancedChunkMemoryInternal(), xmlParseExternalEntityPrivate(), xmlParseInNodeContext(), xmlParseName(), xmlParseNameComplex(), xmlParseNCName(), xmlParseNCNameComplex(), xmlParseQName(), xmlParseReference(), xmlParseStartTag2(), xmlSAX2TextNode(), xsltAddTemplate(), xsltApplyAttributeSet(), xsltApplyStylesheetInternal(), xsltAttribute(), xsltAttributeComp(), xsltAttrListTemplateProcess(), xsltAttrTemplateProcess(), xsltElement(), xsltElementComp(), xsltEvalStaticAttrValueTemplate(), xsltGetCNsProp(), xsltGetQNameProperty(), xsltGetQNameURI2(), xsltNumberComp(), xsltParseStylesheetAttributeSet(), xsltParseStylesheetTemplate(), xsltParseTemplateContent(), xsltPreprocessStylesheet(), xsltProcessUserParamInternal(), xsltRegisterGlobalVariable(), xsltShallowCopyAttr(), xsltSortComp(), xsltSplitQName(), xsltStackLookup(), and xsltXPathVariableLookup().
int xmlDictOwns | ( | xmlDictPtr | dict, |
const xmlChar * | str | ||
) |
xmlDictOwns: @dict: the dictionary @str: the string
check if a string is owned by the dictionary
Returns 1 if true, 0 if false and -1 in case of error -1 in case of error
Definition at line 1218 of file dict.c.
Referenced by xmlFreeAttribute(), xmlFreeDocElementContent(), xmlHashAddEntry3(), xmlHashUpdateEntry3(), xmlParseEnumerationType(), xmlParseNotationType(), xmlSAX2ExternalSubset(), xmlSAX2Text(), xsltAttrListTemplateProcess(), xsltAttrTemplateProcess(), xsltCopyText(), xsltParseTemplateContent(), and xsltPreprocessStylesheet().
Definition at line 1113 of file dict.c.
Referenced by xmlSAX2StartElementNs(), xsltApplyStylesheetInternal(), and xsltDocumentElem().
int xmlDictReference | ( | xmlDictPtr | dict | ) |
xmlDictReference: @dict: the dictionary
Increment the reference counter of a dictionary
Returns 0 in case of success and -1 in case of error
Definition at line 645 of file dict.c.
Referenced by xmlDictCreateSub(), xmlHashCreateDict(), xmlParseBalancedChunkMemoryInternal(), xmlParseExternalEntityPrivate(), xmlSAX2StartDocument(), xsltApplyStylesheetInternal(), xsltCreateRVT(), xsltDocDefaultLoaderFunc(), xsltDocumentElem(), xsltLoadStylesheetPI(), and xsltParseStylesheetUser().
size_t xmlDictSetLimit | ( | xmlDictPtr | dict, |
size_t | limit | ||
) |
xmlDictSetLimit: @dict: the dictionary @limit: the limit in bytes
Set a size limit for the dictionary Added in 2.9.0
Returns the previous limit of the dictionary or 0
Definition at line 1263 of file dict.c.
Referenced by xmlCtxtUseOptionsInternal(), and xmlInitParserCtxt().
int xmlDictSize | ( | xmlDictPtr | dict | ) |
xmlInitializeDict:
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
Definition at line 160 of file dict.c.
Referenced by xmlInitParser().
|
static |
Definition at line 140 of file dict.c.
Referenced by __xmlInitializeDict(), __xmlRandom(), xmlDictCleanup(), xmlDictCreate(), xmlDictFree(), and xmlDictReference().
|
static |
Definition at line 135 of file dict.c.
Referenced by __xmlInitializeDict(), __xmlRandom(), xmlDictCleanup(), xmlDictFree(), and xmlDictReference().