http://swpat.ffii.org/Action against software patents http://www.gnome.org/Gnome2 Logo http://www.w3.org/StatusW3C Logo http://www.redhat.com/Red Hat Logo http://xmlsoft.org/Made with Libxml2 Logo 
Module dict from libxml2
API Menu ../index.htmlMain Menu ../docs.htmlDeveloper Menu ../examples/index.htmlCode Examples index.htmlAPI Menu libxml-parser.htmlParser API libxml-tree.htmlTree API libxml-xmlreader.htmlReader API ../guidelines.htmlXML Guidelines ../ChangeLog.htmlChangeLog API Indexes ../APIchunk0.htmlAlphabetic ../APIconstructors.htmlConstructors ../APIfunctions.htmlFunctions/Types ../APIfiles.htmlModules ../APIsymbols.htmlSymbols Related links http://mail.gnome.org/archives/xml/Mail archive http://xmlsoft.org/XSLT/XSLT libxslt http://phd.cs.unibo.it/gdome2/DOM gdome2 http://www.aleksey.com/xmlsec/XML-DSig xmlsec ftp://xmlsoft.org/FTP http://www.zlatkovic.com/projects/libxml/Windows binaries http://www.blastwave.org/packages.php/libxml2Solaris binaries http://www.explain.com.au/oss/libxml2xslt.htmlMacOsX binaries http://libxmlplusplus.sourceforge.net/C++ bindings http://www.zend.com/php5/articles/php5-xmlphp.php#Heading4PHP bindings http://sourceforge.net/projects/libxml2-pas/Pascal bindings http://rubyforge.org/projects/xml-tools/Ruby bindings http://tclxml.sourceforge.net/Tcl bindings http://bugzilla.gnome.org/buglist.cgi?product=libxml2Bug Tracker libxml-debugXML.htmlPrev libxml-debugXML.htmldebugXML index.htmlUp index.htmlAPI documentation ../index.htmlHome ../index.htmlThe XML C parser and toolkit of Gnome libxml-encoding.htmlencoding libxml-encoding.htmlNext dictionary of reusable strings, just used to avoid allocation and freeing operations. 
Table of Contents
Structure #xmlDictxmlDict struct _xmlDict
The content of this structure is not made public by the API.
Typedef libxml-dict.html#xmlDictxmlDict  * xmlDictPtr void	#xmlDictCleanupxmlDictCleanup 			(void) libxml-dict.html#xmlDictPtrxmlDictPtr 	#xmlDictCreatexmlDictCreate 		(void) libxml-dict.html#xmlDictPtrxmlDictPtr 	#xmlDictCreateSubxmlDictCreateSub 	( libxml-dict.html#xmlDictPtrxmlDictPtr  sub)const libxml-xmlstring.html#xmlCharxmlChar  *	#xmlDictExistsxmlDictExists 		( libxml-dict.html#xmlDictPtrxmlDictPtr  dict, 					 const libxml-xmlstring.html#xmlCharxmlChar  * name, 					 int len)void	#xmlDictFreexmlDictFree 			( libxml-dict.html#xmlDictPtrxmlDictPtr  dict)const libxml-xmlstring.html#xmlCharxmlChar  *	#xmlDictLookupxmlDictLookup 		( libxml-dict.html#xmlDictPtrxmlDictPtr  dict, 					 const libxml-xmlstring.html#xmlCharxmlChar  * name, 					 int len)int	#xmlDictOwnsxmlDictOwns 			( libxml-dict.html#xmlDictPtrxmlDictPtr  dict, 					 const libxml-xmlstring.html#xmlCharxmlChar  * str)const libxml-xmlstring.html#xmlCharxmlChar  *	#xmlDictQLookupxmlDictQLookup 		( libxml-dict.html#xmlDictPtrxmlDictPtr  dict, 					 const libxml-xmlstring.html#xmlCharxmlChar  * prefix, 					 const libxml-xmlstring.html#xmlCharxmlChar  * name)int	#xmlDictReferencexmlDictReference 		( libxml-dict.html#xmlDictPtrxmlDictPtr  dict)int	#xmlDictSizexmlDictSize 			( libxml-dict.html#xmlDictPtrxmlDictPtr  dict)Description
Structure xmlDict 
Structure xmlDictstruct _xmlDict {
The content of this structure is not made public by the API.
}
Function: xmlDictCleanup
void	xmlDictCleanup			(void)Free the dictionary mutex.
Function: xmlDictCreate
libxml-dict.html#xmlDictPtrxmlDictPtr 	xmlDictCreate		(void)Create a new dictionary
Returns: the newly created dictionnary, or NULL if an error occured. Function: xmlDictCreateSub
libxml-dict.html#xmlDictPtrxmlDictPtr 	xmlDictCreateSub	( libxml-dict.html#xmlDictPtrxmlDictPtr  sub)Create a new dictionary, inheriting strings from the read-only dictionnary @sub. On lookup, strings are first searched in the new dictionnary, then in @sub, and if not found are created in the new dictionnary.
sub: an existing dictionnary Returns: the newly created dictionnary, or NULL if an error occured. Function: xmlDictExists
const libxml-xmlstring.html#xmlCharxmlChar  *	xmlDictExists		( libxml-dict.html#xmlDictPtrxmlDictPtr  dict, 					 const libxml-xmlstring.html#xmlCharxmlChar  * name, 					 int len)Check if the @name exists in the dictionnary @dict.
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 if not found. Function: xmlDictFree
void	xmlDictFree			( libxml-dict.html#xmlDictPtrxmlDictPtr  dict)Free the hash @dict and its contents. The userdata is deallocated with @f if provided.
dict: the dictionnary Function: xmlDictLookup
const libxml-xmlstring.html#xmlCharxmlChar  *	xmlDictLookup		( libxml-dict.html#xmlDictPtrxmlDictPtr  dict, 					 const libxml-xmlstring.html#xmlCharxmlChar  * 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 Function: xmlDictOwns
int	xmlDictOwns			( libxml-dict.html#xmlDictPtrxmlDictPtr  dict, 					 const libxml-xmlstring.html#xmlCharxmlChar  * str)check if a string is owned by the disctionary
dict: the dictionnary str: the string Returns: 1 if true, 0 if false and -1 in case of error -1 in case of error Function: xmlDictQLookup
const libxml-xmlstring.html#xmlCharxmlChar  *	xmlDictQLookup		( libxml-dict.html#xmlDictPtrxmlDictPtr  dict, 					 const libxml-xmlstring.html#xmlCharxmlChar  * prefix, 					 const libxml-xmlstring.html#xmlCharxmlChar  * name)Add the QName @prefix:@name to the hash @dict if not present.
dict: the dictionnary prefix: the prefix name: the name Returns: the internal copy of the QName or NULL in case of internal error Function: xmlDictReference
int	xmlDictReference		( libxml-dict.html#xmlDictPtrxmlDictPtr  dict)Increment the libxml-SAX.html#referencereference  counter of a dictionary
dict: the dictionnary Returns: 0 in case of success and -1 in case of error Function: xmlDictSize
int	xmlDictSize			( libxml-dict.html#xmlDictPtrxmlDictPtr  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 ../bugs.htmlDaniel Veillard 
