Path: blob/master/venv/Lib/site-packages/lxml/includes/libxml/dict.h
811 views
/*1* Summary: string dictionary2* Description: dictionary of reusable strings, just used to avoid allocation3* and freeing operations.4*5* Copy: See Copyright for the status of this software.6*7* Author: Daniel Veillard8*/910#ifndef __XML_DICT_H__11#define __XML_DICT_H__1213#ifdef __cplusplus14#define __XML_EXTERNC extern "C"15#else16#define __XML_EXTERNC17#endif1819/*20* The dictionary.21*/22__XML_EXTERNC typedef struct _xmlDict xmlDict;23__XML_EXTERNC typedef xmlDict *xmlDictPtr;2425#include <limits.h>26#include <libxml/xmlversion.h>27#include <libxml/tree.h>2829#ifdef __cplusplus30extern "C" {31#endif3233/*34* Initializer35*/36XMLPUBFUN int XMLCALL xmlInitializeDict(void);3738/*39* Constructor and destructor.40*/41XMLPUBFUN xmlDictPtr XMLCALL42xmlDictCreate (void);43XMLPUBFUN size_t XMLCALL44xmlDictSetLimit (xmlDictPtr dict,45size_t limit);46XMLPUBFUN size_t XMLCALL47xmlDictGetUsage (xmlDictPtr dict);48XMLPUBFUN xmlDictPtr XMLCALL49xmlDictCreateSub(xmlDictPtr sub);50XMLPUBFUN int XMLCALL51xmlDictReference(xmlDictPtr dict);52XMLPUBFUN void XMLCALL53xmlDictFree (xmlDictPtr dict);5455/*56* Lookup of entry in the dictionary.57*/58XMLPUBFUN const xmlChar * XMLCALL59xmlDictLookup (xmlDictPtr dict,60const xmlChar *name,61int len);62XMLPUBFUN const xmlChar * XMLCALL63xmlDictExists (xmlDictPtr dict,64const xmlChar *name,65int len);66XMLPUBFUN const xmlChar * XMLCALL67xmlDictQLookup (xmlDictPtr dict,68const xmlChar *prefix,69const xmlChar *name);70XMLPUBFUN int XMLCALL71xmlDictOwns (xmlDictPtr dict,72const xmlChar *str);73XMLPUBFUN int XMLCALL74xmlDictSize (xmlDictPtr dict);7576/*77* Cleanup function78*/79XMLPUBFUN void XMLCALL80xmlDictCleanup (void);8182#ifdef __cplusplus83}84#endif85#endif /* ! __XML_DICT_H__ */868788