ReactOS
0.4.15-dev-4853-g3a72a52
|
Go to the source code of this file.
Typedefs | |
typedef struct _xmlDict | xmlDict |
typedef xmlDict * | xmlDictPtr |
Functions | |
XMLPUBFUN int XMLCALL | xmlInitializeDict (void) |
XMLPUBFUN xmlDictPtr XMLCALL | xmlDictCreate (void) |
XMLPUBFUN size_t XMLCALL | xmlDictSetLimit (xmlDictPtr dict, size_t limit) |
XMLPUBFUN size_t XMLCALL | xmlDictGetUsage (xmlDictPtr dict) |
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 |
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().
XMLPUBFUN xmlDictPtr XMLCALL 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().
XMLPUBFUN xmlDictPtr XMLCALL 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.
XMLPUBFUN void XMLCALL 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().
XMLPUBFUN size_t XMLCALL 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.
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().
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().
XMLPUBFUN const xmlChar* XMLCALL xmlDictQLookup | ( | xmlDictPtr | dict, |
const xmlChar * | prefix, | ||
const xmlChar * | name | ||
) |
Definition at line 1113 of file dict.c.
Referenced by xmlSAX2StartElementNs(), xsltApplyStylesheetInternal(), and xsltDocumentElem().
XMLPUBFUN int XMLCALL 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().
XMLPUBFUN size_t XMLCALL 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().
XMLPUBFUN int XMLCALL 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().