Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Macros | Typedefs | Functions
xmlparse.cc File Reference
#include <stddef.h>
#include <string.h>
#include <assert.h>
#include "ascii.h"
#include "expat.h"
#include "internal.h"
#include "xmltok.h"
#include "xmlrole.h"
Include dependency graph for xmlparse.cc:

Go to the source code of this file.

Classes

struct  NAMED
 
struct  HASH_TABLE
 
struct  HASH_TABLE_ITER
 
struct  binding
 
struct  prefix
 
struct  TAG_NAME
 
struct  tag
 
struct  ENTITY
 
struct  CONTENT_SCAFFOLD
 
struct  block
 
struct  STRING_POOL
 
struct  attribute_id
 
struct  DEFAULT_ATTRIBUTE
 
struct  NS_ATT
 
struct  ELEMENT_TYPE
 
struct  DTD
 
struct  open_internal_entity
 
struct  XML_ParserStruct
 

Macros

#define XML_BUILDING_EXPAT   1
 
#define XML_ENCODE_MAX   XML_UTF8_ENCODE_MAX
 
#define XmlConvert   XmlUtf8Convert
 
#define XmlGetInternalEncoding   XmlGetUtf8InternalEncoding
 
#define XmlGetInternalEncodingNS   XmlGetUtf8InternalEncodingNS
 
#define XmlEncode   XmlUtf8Encode
 
#define MUST_CONVERT(enc, s)   (!(enc)->isUtf8)
 
#define XmlInitEncodingNS   XmlInitEncoding
 
#define XmlInitUnknownEncodingNS   XmlInitUnknownEncoding
 
#define XmlGetInternalEncodingNS   XmlGetInternalEncoding
 
#define XmlParseXmlDeclNS   XmlParseXmlDecl
 
#define XML_T(x)   x
 
#define XML_L(x)   x
 
#define ROUND_UP(n, sz)   (((n) + ((sz) - 1)) & ~((sz) - 1))
 
#define CHAR_HASH(h, c)   (((h) * 0xF4243) ^ (unsigned char)(c))
 
#define SECOND_HASH(hash, mask, power)   ((((hash) & ~(mask)) >> ((power) - 1)) & ((mask) >> 2))
 
#define PROBE_STEP(hash, mask, power)   ((unsigned char)((SECOND_HASH(hash, mask, power)) | 1))
 
#define INIT_TAG_BUF_SIZE   32 /* must be a multiple of sizeof(XML_Char) */
 
#define INIT_DATA_BUF_SIZE   1024
 
#define INIT_ATTS_SIZE   16
 
#define INIT_ATTS_VERSION   0xFFFFFFFF
 
#define INIT_BLOCK_SIZE   1024
 
#define INIT_BUFFER_SIZE   1024
 
#define EXPAND_SPARE   24
 
#define INIT_SCAFFOLD_ELEMENTS   32
 
#define poolStart(pool)   ((pool)->start)
 
#define poolEnd(pool)   ((pool)->ptr)
 
#define poolLength(pool)   ((pool)->ptr - (pool)->start)
 
#define poolChop(pool)   ((void)--(pool->ptr))
 
#define poolLastChar(pool)   (((pool)->ptr)[-1])
 
#define poolDiscard(pool)   ((pool)->ptr = (pool)->start)
 
#define poolFinish(pool)   ((pool)->start = (pool)->ptr)
 
#define poolAppendChar(pool, c)
 
#define MALLOC(s)   (parser->m_mem.malloc_fcn((s)))
 
#define REALLOC(p, s)   (parser->m_mem.realloc_fcn((p),(s)))
 
#define FREE(p)   (parser->m_mem.free_fcn((p)))
 
#define userData   (parser->m_userData)
 
#define handlerArg   (parser->m_handlerArg)
 
#define startElementHandler   (parser->m_startElementHandler)
 
#define endElementHandler   (parser->m_endElementHandler)
 
#define characterDataHandler   (parser->m_characterDataHandler)
 
#define processingInstructionHandler   (parser->m_processingInstructionHandler)
 
#define commentHandler   (parser->m_commentHandler)
 
#define startCdataSectionHandler   (parser->m_startCdataSectionHandler)
 
#define endCdataSectionHandler   (parser->m_endCdataSectionHandler)
 
#define defaultHandler   (parser->m_defaultHandler)
 
#define startDoctypeDeclHandler   (parser->m_startDoctypeDeclHandler)
 
#define endDoctypeDeclHandler   (parser->m_endDoctypeDeclHandler)
 
#define unparsedEntityDeclHandler   (parser->m_unparsedEntityDeclHandler)
 
#define notationDeclHandler   (parser->m_notationDeclHandler)
 
#define startNamespaceDeclHandler   (parser->m_startNamespaceDeclHandler)
 
#define endNamespaceDeclHandler   (parser->m_endNamespaceDeclHandler)
 
#define notStandaloneHandler   (parser->m_notStandaloneHandler)
 
#define externalEntityRefHandler   (parser->m_externalEntityRefHandler)
 
#define externalEntityRefHandlerArg   (parser->m_externalEntityRefHandlerArg)
 
#define internalEntityRefHandler   (parser->m_internalEntityRefHandler)
 
#define skippedEntityHandler   (parser->m_skippedEntityHandler)
 
#define unknownEncodingHandler   (parser->m_unknownEncodingHandler)
 
#define elementDeclHandler   (parser->m_elementDeclHandler)
 
#define attlistDeclHandler   (parser->m_attlistDeclHandler)
 
#define entityDeclHandler   (parser->m_entityDeclHandler)
 
#define xmlDeclHandler   (parser->m_xmlDeclHandler)
 
#define encoding   (parser->m_encoding)
 
#define initEncoding   (parser->m_initEncoding)
 
#define internalEncoding   (parser->m_internalEncoding)
 
#define unknownEncodingMem   (parser->m_unknownEncodingMem)
 
#define unknownEncodingData   (parser->m_unknownEncodingData)
 
#define unknownEncodingHandlerData   (parser->m_unknownEncodingHandlerData)
 
#define unknownEncodingRelease   (parser->m_unknownEncodingRelease)
 
#define protocolEncodingName   (parser->m_protocolEncodingName)
 
#define ns   (parser->m_ns)
 
#define ns_triplets   (parser->m_ns_triplets)
 
#define prologState   (parser->m_prologState)
 
#define processor   (parser->m_processor)
 
#define errorCode   (parser->m_errorCode)
 
#define eventPtr   (parser->m_eventPtr)
 
#define eventEndPtr   (parser->m_eventEndPtr)
 
#define positionPtr   (parser->m_positionPtr)
 
#define position   (parser->m_position)
 
#define openInternalEntities   (parser->m_openInternalEntities)
 
#define freeInternalEntities   (parser->m_freeInternalEntities)
 
#define defaultExpandInternalEntities   (parser->m_defaultExpandInternalEntities)
 
#define tagLevel   (parser->m_tagLevel)
 
#define buffer   (parser->m_buffer)
 
#define bufferPtr   (parser->m_bufferPtr)
 
#define bufferEnd   (parser->m_bufferEnd)
 
#define parseEndByteIndex   (parser->m_parseEndByteIndex)
 
#define parseEndPtr   (parser->m_parseEndPtr)
 
#define bufferLim   (parser->m_bufferLim)
 
#define dataBuf   (parser->m_dataBuf)
 
#define dataBufEnd   (parser->m_dataBufEnd)
 
#define _dtd   (parser->m_dtd)
 
#define curBase   (parser->m_curBase)
 
#define declEntity   (parser->m_declEntity)
 
#define doctypeName   (parser->m_doctypeName)
 
#define doctypeSysid   (parser->m_doctypeSysid)
 
#define doctypePubid   (parser->m_doctypePubid)
 
#define declAttributeType   (parser->m_declAttributeType)
 
#define declNotationName   (parser->m_declNotationName)
 
#define declNotationPublicId   (parser->m_declNotationPublicId)
 
#define declElementType   (parser->m_declElementType)
 
#define declAttributeId   (parser->m_declAttributeId)
 
#define declAttributeIsCdata   (parser->m_declAttributeIsCdata)
 
#define declAttributeIsId   (parser->m_declAttributeIsId)
 
#define freeTagList   (parser->m_freeTagList)
 
#define freeBindingList   (parser->m_freeBindingList)
 
#define inheritedBindings   (parser->m_inheritedBindings)
 
#define tagStack   (parser->m_tagStack)
 
#define atts   (parser->m_atts)
 
#define attsSize   (parser->m_attsSize)
 
#define nSpecifiedAtts   (parser->m_nSpecifiedAtts)
 
#define idAttIndex   (parser->m_idAttIndex)
 
#define nsAtts   (parser->m_nsAtts)
 
#define nsAttsVersion   (parser->m_nsAttsVersion)
 
#define nsAttsPower   (parser->m_nsAttsPower)
 
#define tempPool   (parser->m_tempPool)
 
#define temp2Pool   (parser->m_temp2Pool)
 
#define groupConnector   (parser->m_groupConnector)
 
#define groupSize   (parser->m_groupSize)
 
#define namespaceSeparator   (parser->m_namespaceSeparator)
 
#define parentParser   (parser->m_parentParser)
 
#define ps_parsing   (parser->m_parsingStatus.parsing)
 
#define ps_finalBuffer   (parser->m_parsingStatus.finalBuffer)
 
#define V1(a, b, c)   XML_L(#a)XML_L(".")XML_L(#b)XML_L(".")XML_L(#c)
 
#define V2(a, b, c)   XML_L("expat_")V1(a,b,c)
 
#define CONTEXT_SEP   XML_T(ASCII_FF)
 
#define INIT_POWER   6
 

Typedefs

typedef char ICHAR
 
typedef const XML_CharKEY
 
typedef struct binding BINDING
 
typedef struct prefix PREFIX
 
typedef struct tag TAG
 
typedef struct block BLOCK
 
typedef struct attribute_id ATTRIBUTE_ID
 
typedef struct open_internal_entity OPEN_INTERNAL_ENTITY
 

Functions

enum XML_Error PTRCALL Processor (XML_Parser parser, const char *start, const char *end, const char **endPtr)
 
XML_Parser XMLCALL XML_ParserCreate (const XML_Char *encodingName)
 
XML_Parser XMLCALL XML_ParserCreateNS (const XML_Char *encodingName, XML_Char nsSep)
 
XML_Parser XMLCALL XML_ParserCreate_MM (const XML_Char *encodingName, const XML_Memory_Handling_Suite *memsuite, const XML_Char *nameSep)
 
XML_Bool XMLCALL XML_ParserReset (XML_Parser parser, const XML_Char *encodingName)
 
enum XML_Status XMLCALL XML_SetEncoding (XML_Parser parser, const XML_Char *encodingName)
 
XML_Parser XMLCALL XML_ExternalEntityParserCreate (XML_Parser oldParser, const XML_Char *context, const XML_Char *encodingName)
 
void XMLCALL XML_ParserFree (XML_Parser parser)
 
void XMLCALL XML_UseParserAsHandlerArg (XML_Parser parser)
 
enum XML_Error XMLCALL XML_UseForeignDTD (XML_Parser parser, XML_Bool useDTD)
 
void XMLCALL XML_SetReturnNSTriplet (XML_Parser parser, int do_nst)
 
void XMLCALL XML_SetUserData (XML_Parser parser, void *p)
 
enum XML_Status XMLCALL XML_SetBase (XML_Parser parser, const XML_Char *p)
 
const XML_Char *XMLCALL XML_GetBase (XML_Parser parser)
 
int XMLCALL XML_GetSpecifiedAttributeCount (XML_Parser parser)
 
int XMLCALL XML_GetIdAttributeIndex (XML_Parser parser)
 
void XMLCALL XML_SetElementHandler (XML_Parser parser, XML_StartElementHandler start, XML_EndElementHandler end)
 
void XMLCALL XML_SetStartElementHandler (XML_Parser parser, XML_StartElementHandler start)
 
void XMLCALL XML_SetEndElementHandler (XML_Parser parser, XML_EndElementHandler end)
 
void XMLCALL XML_SetCharacterDataHandler (XML_Parser parser, XML_CharacterDataHandler handler)
 
void XMLCALL XML_SetProcessingInstructionHandler (XML_Parser parser, XML_ProcessingInstructionHandler handler)
 
void XMLCALL XML_SetCommentHandler (XML_Parser parser, XML_CommentHandler handler)
 
void XMLCALL XML_SetCdataSectionHandler (XML_Parser parser, XML_StartCdataSectionHandler start, XML_EndCdataSectionHandler end)
 
void XMLCALL XML_SetStartCdataSectionHandler (XML_Parser parser, XML_StartCdataSectionHandler start)
 
void XMLCALL XML_SetEndCdataSectionHandler (XML_Parser parser, XML_EndCdataSectionHandler end)
 
void XMLCALL XML_SetDefaultHandler (XML_Parser parser, XML_DefaultHandler handler)
 
void XMLCALL XML_SetDefaultHandlerExpand (XML_Parser parser, XML_DefaultHandler handler)
 
void XMLCALL XML_SetDoctypeDeclHandler (XML_Parser parser, XML_StartDoctypeDeclHandler start, XML_EndDoctypeDeclHandler end)
 
void XMLCALL XML_SetStartDoctypeDeclHandler (XML_Parser parser, XML_StartDoctypeDeclHandler start)
 
void XMLCALL XML_SetEndDoctypeDeclHandler (XML_Parser parser, XML_EndDoctypeDeclHandler end)
 
void XMLCALL XML_SetUnparsedEntityDeclHandler (XML_Parser parser, XML_UnparsedEntityDeclHandler handler)
 
void XMLCALL XML_SetNotationDeclHandler (XML_Parser parser, XML_NotationDeclHandler handler)
 
void XMLCALL XML_SetNamespaceDeclHandler (XML_Parser parser, XML_StartNamespaceDeclHandler start, XML_EndNamespaceDeclHandler end)
 
void XMLCALL XML_SetStartNamespaceDeclHandler (XML_Parser parser, XML_StartNamespaceDeclHandler start)
 
void XMLCALL XML_SetEndNamespaceDeclHandler (XML_Parser parser, XML_EndNamespaceDeclHandler end)
 
void XMLCALL XML_SetNotStandaloneHandler (XML_Parser parser, XML_NotStandaloneHandler handler)
 
void XMLCALL XML_SetExternalEntityRefHandler (XML_Parser parser, XML_ExternalEntityRefHandler handler)
 
void XMLCALL XML_SetExternalEntityRefHandlerArg (XML_Parser parser, void *arg)
 
void XMLCALL XML_SetSkippedEntityHandler (XML_Parser parser, XML_SkippedEntityHandler handler)
 
void XMLCALL XML_SetUnknownEncodingHandler (XML_Parser parser, XML_UnknownEncodingHandler handler, void *data)
 
void XMLCALL XML_SetElementDeclHandler (XML_Parser parser, XML_ElementDeclHandler eldecl)
 
void XMLCALL XML_SetAttlistDeclHandler (XML_Parser parser, XML_AttlistDeclHandler attdecl)
 
void XMLCALL XML_SetEntityDeclHandler (XML_Parser parser, XML_EntityDeclHandler handler)
 
void XMLCALL XML_SetXmlDeclHandler (XML_Parser parser, XML_XmlDeclHandler handler)
 
int XMLCALL XML_SetParamEntityParsing (XML_Parser parser, enum XML_ParamEntityParsing peParsing)
 
enum XML_Status XMLCALL XML_Parse (XML_Parser parser, const char *s, int len, int isFinal)
 
enum XML_Status XMLCALL XML_ParseBuffer (XML_Parser parser, int len, int isFinal)
 
void *XMLCALL XML_GetBuffer (XML_Parser parser, int len)
 
enum XML_Status XMLCALL XML_StopParser (XML_Parser parser, XML_Bool resumable)
 
enum XML_Status XMLCALL XML_ResumeParser (XML_Parser parser)
 
void XMLCALL XML_GetParsingStatus (XML_Parser parser, XML_ParsingStatus *status)
 
enum XML_Error XMLCALL XML_GetErrorCode (XML_Parser parser)
 
XML_Index XMLCALL XML_GetCurrentByteIndex (XML_Parser parser)
 
int XMLCALL XML_GetCurrentByteCount (XML_Parser parser)
 
const char *XMLCALL XML_GetInputContext (XML_Parser parser, int *offset, int *size)
 
XML_Size XMLCALL XML_GetCurrentLineNumber (XML_Parser parser)
 
XML_Size XMLCALL XML_GetCurrentColumnNumber (XML_Parser parser)
 
void XMLCALL XML_FreeContentModel (XML_Parser parser, XML_Content *model)
 
void *XMLCALL XML_MemMalloc (XML_Parser parser, size_t size)
 
void *XMLCALL XML_MemRealloc (XML_Parser parser, void *ptr, size_t size)
 
void XMLCALL XML_MemFree (XML_Parser parser, void *ptr)
 
void XMLCALL XML_DefaultCurrent (XML_Parser parser)
 
const XML_LChar *XMLCALL XML_ErrorString (enum XML_Error code)
 
const XML_LChar *XMLCALL XML_ExpatVersion (void)
 
XML_Expat_Version XMLCALL XML_ExpatVersionInfo (void)
 
const XML_Feature *XMLCALL XML_GetFeatureList (void)
 

Macro Definition Documentation

#define _dtd   (parser->m_dtd)

Definition at line 619 of file xmlparse.cc.

#define attlistDeclHandler   (parser->m_attlistDeclHandler)

Definition at line 585 of file xmlparse.cc.

#define atts   (parser->m_atts)

Definition at line 636 of file xmlparse.cc.

#define attsSize   (parser->m_attsSize)

Definition at line 637 of file xmlparse.cc.

#define buffer   (parser->m_buffer)

Definition at line 611 of file xmlparse.cc.

#define bufferEnd   (parser->m_bufferEnd)

Definition at line 613 of file xmlparse.cc.

#define bufferLim   (parser->m_bufferLim)

Definition at line 616 of file xmlparse.cc.

#define bufferPtr   (parser->m_bufferPtr)

Definition at line 612 of file xmlparse.cc.

#define CHAR_HASH (   h,
  c 
)    (((h) * 0xF4243) ^ (unsigned char)(c))

Definition at line 111 of file xmlparse.cc.

#define characterDataHandler   (parser->m_characterDataHandler)

Definition at line 559 of file xmlparse.cc.

#define commentHandler   (parser->m_commentHandler)

Definition at line 562 of file xmlparse.cc.

#define CONTEXT_SEP   XML_T(ASCII_FF)

Definition at line 5378 of file xmlparse.cc.

#define curBase   (parser->m_curBase)

Definition at line 620 of file xmlparse.cc.

#define dataBuf   (parser->m_dataBuf)

Definition at line 617 of file xmlparse.cc.

#define dataBufEnd   (parser->m_dataBufEnd)

Definition at line 618 of file xmlparse.cc.

#define declAttributeId   (parser->m_declAttributeId)

Definition at line 629 of file xmlparse.cc.

#define declAttributeIsCdata   (parser->m_declAttributeIsCdata)

Definition at line 630 of file xmlparse.cc.

#define declAttributeIsId   (parser->m_declAttributeIsId)

Definition at line 631 of file xmlparse.cc.

#define declAttributeType   (parser->m_declAttributeType)

Definition at line 625 of file xmlparse.cc.

#define declElementType   (parser->m_declElementType)

Definition at line 628 of file xmlparse.cc.

#define declEntity   (parser->m_declEntity)

Definition at line 621 of file xmlparse.cc.

#define declNotationName   (parser->m_declNotationName)

Definition at line 626 of file xmlparse.cc.

#define declNotationPublicId   (parser->m_declNotationPublicId)

Definition at line 627 of file xmlparse.cc.

#define defaultExpandInternalEntities   (parser->m_defaultExpandInternalEntities)

Definition at line 608 of file xmlparse.cc.

#define defaultHandler   (parser->m_defaultHandler)

Definition at line 566 of file xmlparse.cc.

#define doctypeName   (parser->m_doctypeName)

Definition at line 622 of file xmlparse.cc.

#define doctypePubid   (parser->m_doctypePubid)

Definition at line 624 of file xmlparse.cc.

#define doctypeSysid   (parser->m_doctypeSysid)

Definition at line 623 of file xmlparse.cc.

#define elementDeclHandler   (parser->m_elementDeclHandler)

Definition at line 584 of file xmlparse.cc.

#define encoding   (parser->m_encoding)

Definition at line 588 of file xmlparse.cc.

#define endCdataSectionHandler   (parser->m_endCdataSectionHandler)

Definition at line 565 of file xmlparse.cc.

#define endDoctypeDeclHandler   (parser->m_endDoctypeDeclHandler)

Definition at line 568 of file xmlparse.cc.

#define endElementHandler   (parser->m_endElementHandler)

Definition at line 558 of file xmlparse.cc.

#define endNamespaceDeclHandler   (parser->m_endNamespaceDeclHandler)

Definition at line 574 of file xmlparse.cc.

#define entityDeclHandler   (parser->m_entityDeclHandler)

Definition at line 586 of file xmlparse.cc.

#define errorCode   (parser->m_errorCode)

Definition at line 601 of file xmlparse.cc.

#define eventEndPtr   (parser->m_eventEndPtr)

Definition at line 603 of file xmlparse.cc.

#define eventPtr   (parser->m_eventPtr)

Definition at line 602 of file xmlparse.cc.

#define EXPAND_SPARE   24

Definition at line 140 of file xmlparse.cc.

#define externalEntityRefHandler   (parser->m_externalEntityRefHandler)

Definition at line 576 of file xmlparse.cc.

#define externalEntityRefHandlerArg   (parser->m_externalEntityRefHandlerArg)

Definition at line 578 of file xmlparse.cc.

#define FREE (   p)    (parser->m_mem.free_fcn((p)))

Definition at line 553 of file xmlparse.cc.

#define freeBindingList   (parser->m_freeBindingList)

Definition at line 633 of file xmlparse.cc.

#define freeInternalEntities   (parser->m_freeInternalEntities)

Definition at line 607 of file xmlparse.cc.

#define freeTagList   (parser->m_freeTagList)

Definition at line 632 of file xmlparse.cc.

#define groupConnector   (parser->m_groupConnector)

Definition at line 645 of file xmlparse.cc.

#define groupSize   (parser->m_groupSize)

Definition at line 646 of file xmlparse.cc.

#define handlerArg   (parser->m_handlerArg)

Definition at line 556 of file xmlparse.cc.

#define idAttIndex   (parser->m_idAttIndex)

Definition at line 639 of file xmlparse.cc.

#define inheritedBindings   (parser->m_inheritedBindings)

Definition at line 634 of file xmlparse.cc.

#define INIT_ATTS_SIZE   16

Definition at line 135 of file xmlparse.cc.

#define INIT_ATTS_VERSION   0xFFFFFFFF

Definition at line 136 of file xmlparse.cc.

#define INIT_BLOCK_SIZE   1024

Definition at line 137 of file xmlparse.cc.

#define INIT_BUFFER_SIZE   1024

Definition at line 138 of file xmlparse.cc.

#define INIT_DATA_BUF_SIZE   1024

Definition at line 134 of file xmlparse.cc.

#define INIT_POWER   6

Definition at line 5834 of file xmlparse.cc.

#define INIT_SCAFFOLD_ELEMENTS   32

Definition at line 213 of file xmlparse.cc.

#define INIT_TAG_BUF_SIZE   32 /* must be a multiple of sizeof(XML_Char) */

Definition at line 133 of file xmlparse.cc.

#define initEncoding   (parser->m_initEncoding)

Definition at line 589 of file xmlparse.cc.

#define internalEncoding   (parser->m_internalEncoding)

Definition at line 590 of file xmlparse.cc.

#define internalEntityRefHandler   (parser->m_internalEntityRefHandler)

Definition at line 580 of file xmlparse.cc.

#define MALLOC (   s)    (parser->m_mem.malloc_fcn((s)))

Definition at line 551 of file xmlparse.cc.

#define MUST_CONVERT (   enc,
  s 
)    (!(enc)->isUtf8)

Definition at line 41 of file xmlparse.cc.

#define namespaceSeparator   (parser->m_namespaceSeparator)

Definition at line 647 of file xmlparse.cc.

#define notationDeclHandler   (parser->m_notationDeclHandler)

Definition at line 571 of file xmlparse.cc.

#define notStandaloneHandler   (parser->m_notStandaloneHandler)

Definition at line 575 of file xmlparse.cc.

#define ns   (parser->m_ns)

Definition at line 597 of file xmlparse.cc.

#define ns_triplets   (parser->m_ns_triplets)

Definition at line 598 of file xmlparse.cc.

#define nsAtts   (parser->m_nsAtts)

Definition at line 640 of file xmlparse.cc.

#define nsAttsPower   (parser->m_nsAttsPower)

Definition at line 642 of file xmlparse.cc.

#define nsAttsVersion   (parser->m_nsAttsVersion)

Definition at line 641 of file xmlparse.cc.

#define nSpecifiedAtts   (parser->m_nSpecifiedAtts)

Definition at line 638 of file xmlparse.cc.

#define openInternalEntities   (parser->m_openInternalEntities)

Definition at line 606 of file xmlparse.cc.

#define parentParser   (parser->m_parentParser)

Definition at line 648 of file xmlparse.cc.

#define parseEndByteIndex   (parser->m_parseEndByteIndex)

Definition at line 614 of file xmlparse.cc.

#define parseEndPtr   (parser->m_parseEndPtr)

Definition at line 615 of file xmlparse.cc.

#define poolAppendChar (   pool,
  c 
)
Value:
(((pool)->ptr == (pool)->end && !poolGrow(pool)) \
? 0 \
: ((*((pool)->ptr)++ = c), 1))

Definition at line 447 of file xmlparse.cc.

#define poolChop (   pool)    ((void)--(pool->ptr))

Definition at line 443 of file xmlparse.cc.

#define poolDiscard (   pool)    ((pool)->ptr = (pool)->start)

Definition at line 445 of file xmlparse.cc.

#define poolEnd (   pool)    ((pool)->ptr)

Definition at line 441 of file xmlparse.cc.

#define poolFinish (   pool)    ((pool)->start = (pool)->ptr)

Definition at line 446 of file xmlparse.cc.

#define poolLastChar (   pool)    (((pool)->ptr)[-1])

Definition at line 444 of file xmlparse.cc.

#define poolLength (   pool)    ((pool)->ptr - (pool)->start)

Definition at line 442 of file xmlparse.cc.

#define poolStart (   pool)    ((pool)->start)

Definition at line 440 of file xmlparse.cc.

#define position   (parser->m_position)

Definition at line 605 of file xmlparse.cc.

#define positionPtr   (parser->m_positionPtr)

Definition at line 604 of file xmlparse.cc.

#define PROBE_STEP (   hash,
  mask,
  power 
)    ((unsigned char)((SECOND_HASH(hash, mask, power)) | 1))

Definition at line 125 of file xmlparse.cc.

#define processingInstructionHandler   (parser->m_processingInstructionHandler)

Definition at line 560 of file xmlparse.cc.

#define processor   (parser->m_processor)

Definition at line 600 of file xmlparse.cc.

#define prologState   (parser->m_prologState)

Definition at line 599 of file xmlparse.cc.

#define protocolEncodingName   (parser->m_protocolEncodingName)

Definition at line 596 of file xmlparse.cc.

#define ps_finalBuffer   (parser->m_parsingStatus.finalBuffer)

Definition at line 650 of file xmlparse.cc.

#define ps_parsing   (parser->m_parsingStatus.parsing)

Definition at line 649 of file xmlparse.cc.

#define REALLOC (   p,
  s 
)    (parser->m_mem.realloc_fcn((p),(s)))

Definition at line 552 of file xmlparse.cc.

#define ROUND_UP (   n,
  sz 
)    (((n) + ((sz) - 1)) & ~((sz) - 1))

Definition at line 74 of file xmlparse.cc.

#define SECOND_HASH (   hash,
  mask,
  power 
)    ((((hash) & ~(mask)) >> ((power) - 1)) & ((mask) >> 2))

Definition at line 123 of file xmlparse.cc.

#define skippedEntityHandler   (parser->m_skippedEntityHandler)

Definition at line 582 of file xmlparse.cc.

#define startCdataSectionHandler   (parser->m_startCdataSectionHandler)

Definition at line 563 of file xmlparse.cc.

#define startDoctypeDeclHandler   (parser->m_startDoctypeDeclHandler)

Definition at line 567 of file xmlparse.cc.

#define startElementHandler   (parser->m_startElementHandler)

Definition at line 557 of file xmlparse.cc.

#define startNamespaceDeclHandler   (parser->m_startNamespaceDeclHandler)

Definition at line 572 of file xmlparse.cc.

#define tagLevel   (parser->m_tagLevel)

Definition at line 610 of file xmlparse.cc.

#define tagStack   (parser->m_tagStack)

Definition at line 635 of file xmlparse.cc.

#define temp2Pool   (parser->m_temp2Pool)

Definition at line 644 of file xmlparse.cc.

#define tempPool   (parser->m_tempPool)

Definition at line 643 of file xmlparse.cc.

#define unknownEncodingData   (parser->m_unknownEncodingData)

Definition at line 592 of file xmlparse.cc.

#define unknownEncodingHandler   (parser->m_unknownEncodingHandler)

Definition at line 583 of file xmlparse.cc.

#define unknownEncodingHandlerData   (parser->m_unknownEncodingHandlerData)

Definition at line 593 of file xmlparse.cc.

#define unknownEncodingMem   (parser->m_unknownEncodingMem)

Definition at line 591 of file xmlparse.cc.

#define unknownEncodingRelease   (parser->m_unknownEncodingRelease)

Definition at line 595 of file xmlparse.cc.

#define unparsedEntityDeclHandler   (parser->m_unparsedEntityDeclHandler)

Definition at line 569 of file xmlparse.cc.

#define userData   (parser->m_userData)

Definition at line 555 of file xmlparse.cc.

#define V1 (   a,
  b,
  c 
)    XML_L(#a)XML_L(".")XML_L(#b)XML_L(".")XML_L(#c)
#define V2 (   a,
  b,
  c 
)    XML_L("expat_")V1(a,b,c)
#define XML_BUILDING_EXPAT   1

Definition at line 9 of file xmlparse.cc.

#define XML_ENCODE_MAX   XML_UTF8_ENCODE_MAX

Definition at line 36 of file xmlparse.cc.

#define XML_L (   x)    x

Definition at line 69 of file xmlparse.cc.

#define XML_T (   x)    x

Definition at line 68 of file xmlparse.cc.

#define XmlConvert   XmlUtf8Convert

Definition at line 37 of file xmlparse.cc.

#define xmlDeclHandler   (parser->m_xmlDeclHandler)

Definition at line 587 of file xmlparse.cc.

#define XmlEncode   XmlUtf8Encode

Definition at line 40 of file xmlparse.cc.

#define XmlGetInternalEncoding   XmlGetUtf8InternalEncoding

Definition at line 38 of file xmlparse.cc.

#define XmlGetInternalEncodingNS   XmlGetUtf8InternalEncodingNS

Definition at line 51 of file xmlparse.cc.

#define XmlGetInternalEncodingNS   XmlGetInternalEncoding

Definition at line 51 of file xmlparse.cc.

#define XmlInitEncodingNS   XmlInitEncoding

Definition at line 48 of file xmlparse.cc.

#define XmlInitUnknownEncodingNS   XmlInitUnknownEncoding

Definition at line 49 of file xmlparse.cc.

#define XmlParseXmlDeclNS   XmlParseXmlDecl

Definition at line 52 of file xmlparse.cc.

Typedef Documentation

typedef struct attribute_id ATTRIBUTE_ID
typedef struct binding BINDING
typedef struct block BLOCK
typedef char ICHAR

Definition at line 42 of file xmlparse.cc.

typedef const XML_Char* KEY

Definition at line 89 of file xmlparse.cc.

typedef struct prefix PREFIX
typedef struct tag TAG

Function Documentation

enum XML_Error PTRCALL Processor ( XML_Parser  parser,
const char *  start,
const char *  end,
const char **  endPtr 
)
void XMLCALL XML_DefaultCurrent ( XML_Parser  parser)

Definition at line 1834 of file xmlparse.cc.

const XML_LChar* XMLCALL XML_ErrorString ( enum XML_Error  code)

Definition at line 1848 of file xmlparse.cc.

Here is the caller graph for this function:

const XML_LChar* XMLCALL XML_ExpatVersion ( void  )

Definition at line 1899 of file xmlparse.cc.

XML_Expat_Version XMLCALL XML_ExpatVersionInfo ( void  )

Definition at line 1919 of file xmlparse.cc.

XML_Parser XMLCALL XML_ExternalEntityParserCreate ( XML_Parser  oldParser,
const XML_Char context,
const XML_Char encodingName 
)

Definition at line 939 of file xmlparse.cc.

Here is the call graph for this function:

void XMLCALL XML_FreeContentModel ( XML_Parser  parser,
XML_Content model 
)

Definition at line 1810 of file xmlparse.cc.

const XML_Char* XMLCALL XML_GetBase ( XML_Parser  parser)

Definition at line 1196 of file xmlparse.cc.

void* XMLCALL XML_GetBuffer ( XML_Parser  parser,
int  len 
)

Definition at line 1601 of file xmlparse.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

int XMLCALL XML_GetCurrentByteCount ( XML_Parser  parser)

Definition at line 1769 of file xmlparse.cc.

XML_Index XMLCALL XML_GetCurrentByteIndex ( XML_Parser  parser)

Definition at line 1761 of file xmlparse.cc.

XML_Size XMLCALL XML_GetCurrentColumnNumber ( XML_Parser  parser)

Definition at line 1800 of file xmlparse.cc.

Here is the caller graph for this function:

XML_Size XMLCALL XML_GetCurrentLineNumber ( XML_Parser  parser)

Definition at line 1790 of file xmlparse.cc.

Here is the caller graph for this function:

enum XML_Error XMLCALL XML_GetErrorCode ( XML_Parser  parser)

Definition at line 1755 of file xmlparse.cc.

Here is the caller graph for this function:

const XML_Feature* XMLCALL XML_GetFeatureList ( void  )

Definition at line 1931 of file xmlparse.cc.

Here is the call graph for this function:

int XMLCALL XML_GetIdAttributeIndex ( XML_Parser  parser)

Definition at line 1208 of file xmlparse.cc.

const char* XMLCALL XML_GetInputContext ( XML_Parser  parser,
int offset,
int size 
)

Definition at line 1777 of file xmlparse.cc.

Here is the call graph for this function:

void XMLCALL XML_GetParsingStatus ( XML_Parser  parser,
XML_ParsingStatus status 
)

Definition at line 1748 of file xmlparse.cc.

int XMLCALL XML_GetSpecifiedAttributeCount ( XML_Parser  parser)

Definition at line 1202 of file xmlparse.cc.

void XMLCALL XML_MemFree ( XML_Parser  parser,
void ptr 
)

Definition at line 1828 of file xmlparse.cc.

void* XMLCALL XML_MemMalloc ( XML_Parser  parser,
size_t  size 
)

Definition at line 1816 of file xmlparse.cc.

void* XMLCALL XML_MemRealloc ( XML_Parser  parser,
void ptr,
size_t  size 
)

Definition at line 1822 of file xmlparse.cc.

enum XML_Status XMLCALL XML_Parse ( XML_Parser  parser,
const char *  s,
int  len,
int  isFinal 
)

Definition at line 1430 of file xmlparse.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

enum XML_Status XMLCALL XML_ParseBuffer ( XML_Parser  parser,
int  len,
int  isFinal 
)

Definition at line 1550 of file xmlparse.cc.

Here is the caller graph for this function:

XML_Parser XMLCALL XML_ParserCreate ( const XML_Char encodingName)

Definition at line 658 of file xmlparse.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

XML_Parser XMLCALL XML_ParserCreate_MM ( const XML_Char encodingName,
const XML_Memory_Handling_Suite memsuite,
const XML_Char nameSep 
)

Definition at line 681 of file xmlparse.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

XML_Parser XMLCALL XML_ParserCreateNS ( const XML_Char encodingName,
XML_Char  nsSep 
)

Definition at line 664 of file xmlparse.cc.

Here is the call graph for this function:

void XMLCALL XML_ParserFree ( XML_Parser  parser)

Definition at line 1082 of file xmlparse.cc.

Here is the caller graph for this function:

XML_Bool XMLCALL XML_ParserReset ( XML_Parser  parser,
const XML_Char encodingName 
)

Definition at line 884 of file xmlparse.cc.

enum XML_Status XMLCALL XML_ResumeParser ( XML_Parser  parser)

Definition at line 1710 of file xmlparse.cc.

void XMLCALL XML_SetAttlistDeclHandler ( XML_Parser  parser,
XML_AttlistDeclHandler  attdecl 
)

Definition at line 1395 of file xmlparse.cc.

enum XML_Status XMLCALL XML_SetBase ( XML_Parser  parser,
const XML_Char p 
)

Definition at line 1182 of file xmlparse.cc.

void XMLCALL XML_SetCdataSectionHandler ( XML_Parser  parser,
XML_StartCdataSectionHandler  start,
XML_EndCdataSectionHandler  end 
)

Definition at line 1256 of file xmlparse.cc.

void XMLCALL XML_SetCharacterDataHandler ( XML_Parser  parser,
XML_CharacterDataHandler  handler 
)

Definition at line 1235 of file xmlparse.cc.

Here is the caller graph for this function:

void XMLCALL XML_SetCommentHandler ( XML_Parser  parser,
XML_CommentHandler  handler 
)

Definition at line 1249 of file xmlparse.cc.

void XMLCALL XML_SetDefaultHandler ( XML_Parser  parser,
XML_DefaultHandler  handler 
)

Definition at line 1277 of file xmlparse.cc.

void XMLCALL XML_SetDefaultHandlerExpand ( XML_Parser  parser,
XML_DefaultHandler  handler 
)

Definition at line 1285 of file xmlparse.cc.

void XMLCALL XML_SetDoctypeDeclHandler ( XML_Parser  parser,
XML_StartDoctypeDeclHandler  start,
XML_EndDoctypeDeclHandler  end 
)

Definition at line 1293 of file xmlparse.cc.

void XMLCALL XML_SetElementDeclHandler ( XML_Parser  parser,
XML_ElementDeclHandler  eldecl 
)

Definition at line 1388 of file xmlparse.cc.

void XMLCALL XML_SetElementHandler ( XML_Parser  parser,
XML_StartElementHandler  start,
XML_EndElementHandler  end 
)

Definition at line 1214 of file xmlparse.cc.

Here is the caller graph for this function:

enum XML_Status XMLCALL XML_SetEncoding ( XML_Parser  parser,
const XML_Char encodingName 
)

Definition at line 920 of file xmlparse.cc.

void XMLCALL XML_SetEndCdataSectionHandler ( XML_Parser  parser,
XML_EndCdataSectionHandler  end 
)

Definition at line 1271 of file xmlparse.cc.

void XMLCALL XML_SetEndDoctypeDeclHandler ( XML_Parser  parser,
XML_EndDoctypeDeclHandler  end 
)

Definition at line 1308 of file xmlparse.cc.

void XMLCALL XML_SetEndElementHandler ( XML_Parser  parser,
XML_EndElementHandler  end 
)

Definition at line 1229 of file xmlparse.cc.

void XMLCALL XML_SetEndNamespaceDeclHandler ( XML_Parser  parser,
XML_EndNamespaceDeclHandler  end 
)

Definition at line 1343 of file xmlparse.cc.

void XMLCALL XML_SetEntityDeclHandler ( XML_Parser  parser,
XML_EntityDeclHandler  handler 
)

Definition at line 1402 of file xmlparse.cc.

void XMLCALL XML_SetExternalEntityRefHandler ( XML_Parser  parser,
XML_ExternalEntityRefHandler  handler 
)

Definition at line 1356 of file xmlparse.cc.

void XMLCALL XML_SetExternalEntityRefHandlerArg ( XML_Parser  parser,
void arg 
)

Definition at line 1363 of file xmlparse.cc.

void XMLCALL XML_SetNamespaceDeclHandler ( XML_Parser  parser,
XML_StartNamespaceDeclHandler  start,
XML_EndNamespaceDeclHandler  end 
)

Definition at line 1328 of file xmlparse.cc.

void XMLCALL XML_SetNotationDeclHandler ( XML_Parser  parser,
XML_NotationDeclHandler  handler 
)

Definition at line 1321 of file xmlparse.cc.

void XMLCALL XML_SetNotStandaloneHandler ( XML_Parser  parser,
XML_NotStandaloneHandler  handler 
)

Definition at line 1349 of file xmlparse.cc.

int XMLCALL XML_SetParamEntityParsing ( XML_Parser  parser,
enum XML_ParamEntityParsing  peParsing 
)

Definition at line 1415 of file xmlparse.cc.

void XMLCALL XML_SetProcessingInstructionHandler ( XML_Parser  parser,
XML_ProcessingInstructionHandler  handler 
)

Definition at line 1242 of file xmlparse.cc.

void XMLCALL XML_SetReturnNSTriplet ( XML_Parser  parser,
int  do_nst 
)

Definition at line 1164 of file xmlparse.cc.

void XMLCALL XML_SetSkippedEntityHandler ( XML_Parser  parser,
XML_SkippedEntityHandler  handler 
)

Definition at line 1372 of file xmlparse.cc.

void XMLCALL XML_SetStartCdataSectionHandler ( XML_Parser  parser,
XML_StartCdataSectionHandler  start 
)

Definition at line 1265 of file xmlparse.cc.

void XMLCALL XML_SetStartDoctypeDeclHandler ( XML_Parser  parser,
XML_StartDoctypeDeclHandler  start 
)

Definition at line 1302 of file xmlparse.cc.

void XMLCALL XML_SetStartElementHandler ( XML_Parser  parser,
XML_StartElementHandler  start 
)

Definition at line 1223 of file xmlparse.cc.

void XMLCALL XML_SetStartNamespaceDeclHandler ( XML_Parser  parser,
XML_StartNamespaceDeclHandler  start 
)

Definition at line 1337 of file xmlparse.cc.

void XMLCALL XML_SetUnknownEncodingHandler ( XML_Parser  parser,
XML_UnknownEncodingHandler  handler,
void data 
)

Definition at line 1379 of file xmlparse.cc.

void XMLCALL XML_SetUnparsedEntityDeclHandler ( XML_Parser  parser,
XML_UnparsedEntityDeclHandler  handler 
)

Definition at line 1314 of file xmlparse.cc.

void XMLCALL XML_SetUserData ( XML_Parser  parser,
void p 
)

Definition at line 1173 of file xmlparse.cc.

Here is the caller graph for this function:

void XMLCALL XML_SetXmlDeclHandler ( XML_Parser  parser,
XML_XmlDeclHandler  handler 
)

Definition at line 1409 of file xmlparse.cc.

enum XML_Status XMLCALL XML_StopParser ( XML_Parser  parser,
XML_Bool  resumable 
)

Definition at line 1680 of file xmlparse.cc.

enum XML_Error XMLCALL XML_UseForeignDTD ( XML_Parser  parser,
XML_Bool  useDTD 
)

Definition at line 1150 of file xmlparse.cc.

void XMLCALL XML_UseParserAsHandlerArg ( XML_Parser  parser)

Definition at line 1144 of file xmlparse.cc.