Geant4  10.00.p01
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_Char * KEY
 
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)
 
static enum XML_Error handleUnknownEncoding (XML_Parser parser, const XML_Char *encodingName)
 
static enum XML_Error processXmlDecl (XML_Parser parser, int isGeneralTextEntity, const char *s, const char *next)
 
static enum XML_Error initializeEncoding (XML_Parser parser)
 
static enum XML_Error doProlog (XML_Parser parser, const ENCODING *enc, const char *s, const char *end, int tok, const char *next, const char **nextPtr, XML_Bool haveMore)
 
static enum XML_Error processInternalEntity (XML_Parser parser, ENTITY *entity, XML_Bool betweenDecl)
 
static enum XML_Error doContent (XML_Parser parser, int startTagLevel, const ENCODING *enc, const char *start, const char *end, const char **endPtr, XML_Bool haveMore)
 
static enum XML_Error doCdataSection (XML_Parser parser, const ENCODING *, const char **startPtr, const char *end, const char **nextPtr, XML_Bool haveMore)
 
static enum XML_Error storeAtts (XML_Parser parser, const ENCODING *, const char *s, TAG_NAME *tagNamePtr, BINDING **bindingsPtr)
 
static enum XML_Error addBinding (XML_Parser parser, PREFIX *prefix, const ATTRIBUTE_ID *attId, const XML_Char *uri, BINDING **bindingsPtr)
 
static int defineAttribute (ELEMENT_TYPE *type, ATTRIBUTE_ID *, XML_Bool isCdata, XML_Bool isId, const XML_Char *dfltValue, XML_Parser parser)
 
static enum XML_Error storeAttributeValue (XML_Parser parser, const ENCODING *, XML_Bool isCdata, const char *, const char *, STRING_POOL *)
 
static enum XML_Error appendAttributeValue (XML_Parser parser, const ENCODING *, XML_Bool isCdata, const char *, const char *, STRING_POOL *)
 
static ATTRIBUTE_IDgetAttributeId (XML_Parser parser, const ENCODING *enc, const char *start, const char *end)
 
static int setElementTypePrefix (XML_Parser parser, ELEMENT_TYPE *)
 
static enum XML_Error storeEntityValue (XML_Parser parser, const ENCODING *enc, const char *start, const char *end)
 
static int reportProcessingInstruction (XML_Parser parser, const ENCODING *enc, const char *start, const char *end)
 
static int reportComment (XML_Parser parser, const ENCODING *enc, const char *start, const char *end)
 
static void reportDefault (XML_Parser parser, const ENCODING *enc, const char *start, const char *end)
 
static const XML_Char * getContext (XML_Parser parser)
 
static XML_Bool setContext (XML_Parser parser, const XML_Char *context)
 
static void FASTCALL normalizePublicId (XML_Char *s)
 
static DTDdtdCreate (const XML_Memory_Handling_Suite *ms)
 
static void dtdReset (DTD *p, const XML_Memory_Handling_Suite *ms)
 
static void dtdDestroy (DTD *p, XML_Bool isDocEntity, const XML_Memory_Handling_Suite *ms)
 
static int dtdCopy (DTD *newDtd, const DTD *oldDtd, const XML_Memory_Handling_Suite *ms)
 
static int copyEntityTable (HASH_TABLE *, STRING_POOL *, const HASH_TABLE *)
 
static NAMEDlookup (HASH_TABLE *table, KEY name, size_t createSize)
 
static void FASTCALL hashTableInit (HASH_TABLE *, const XML_Memory_Handling_Suite *ms)
 
static void FASTCALL hashTableClear (HASH_TABLE *)
 
static void FASTCALL hashTableDestroy (HASH_TABLE *)
 
static void FASTCALL hashTableIterInit (HASH_TABLE_ITER *, const HASH_TABLE *)
 
static NAMED *FASTCALL hashTableIterNext (HASH_TABLE_ITER *)
 
static void FASTCALL poolInit (STRING_POOL *, const XML_Memory_Handling_Suite *ms)
 
static void FASTCALL poolClear (STRING_POOL *)
 
static void FASTCALL poolDestroy (STRING_POOL *)
 
static XML_Char * poolAppend (STRING_POOL *pool, const ENCODING *enc, const char *ptr, const char *end)
 
static XML_Char * poolStoreString (STRING_POOL *pool, const ENCODING *enc, const char *ptr, const char *end)
 
static XML_Bool FASTCALL poolGrow (STRING_POOL *pool)
 
static const XML_Char *FASTCALL poolCopyString (STRING_POOL *pool, const XML_Char *s)
 
static const XML_Char * poolCopyStringN (STRING_POOL *pool, const XML_Char *s, int n)
 
static const XML_Char *FASTCALL poolAppendString (STRING_POOL *pool, const XML_Char *s)
 
static int FASTCALL nextScaffoldPart (XML_Parser parser)
 
static XML_Content * build_model (XML_Parser parser)
 
static ELEMENT_TYPEgetElementType (XML_Parser parser, const ENCODING *enc, const char *ptr, const char *end)
 
static XML_Parser parserCreate (const XML_Char *encodingName, const XML_Memory_Handling_Suite *memsuite, const XML_Char *nameSep, DTD *dtd)
 
static void parserInit (XML_Parser parser, const XML_Char *encodingName)
 
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)
 
static void FASTCALL moveToFreeBindingList (XML_Parser parser, BINDING *bindings)
 
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)
 
static void FASTCALL destroyBindings (BINDING *bindings, XML_Parser parser)
 
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)
 
static XML_Bool storeRawNames (XML_Parser parser)
 
static enum XML_Error PTRCALL contentProcessor (XML_Parser parser, const char *start, const char *end, const char **endPtr)
 
static enum XML_Error PTRCALL externalEntityInitProcessor (XML_Parser parser, const char *start, const char *end, const char **endPtr)
 
static enum XML_Error PTRCALL externalEntityInitProcessor2 (XML_Parser parser, const char *start, const char *end, const char **endPtr)
 
static enum XML_Error PTRCALL externalEntityInitProcessor3 (XML_Parser parser, const char *start, const char *end, const char **endPtr)
 
static enum XML_Error PTRCALL externalEntityContentProcessor (XML_Parser parser, const char *start, const char *end, const char **endPtr)
 
static enum XML_Error PTRCALL cdataSectionProcessor (XML_Parser parser, const char *start, const char *end, const char **endPtr)
 
static enum XML_Error PTRCALL prologInitProcessor (XML_Parser parser, const char *s, const char *end, const char **nextPtr)
 
static enum XML_Error PTRCALL prologProcessor (XML_Parser parser, const char *s, const char *end, const char **nextPtr)
 
static enum XML_Error PTRCALL epilogProcessor (XML_Parser parser, const char *s, const char *end, const char **nextPtr)
 
static enum XML_Error PTRCALL internalEntityProcessor (XML_Parser parser, const char *s, const char *end, const char **nextPtr)
 
static enum XML_Error PTRCALL errorProcessor (XML_Parser parser, const char *s, const char *end, const char **nextPtr)
 
static void FASTCALL normalizeLines (XML_Char *s)
 
static XML_Bool FASTCALL keyeq (KEY s1, KEY s2)
 
static unsigned long FASTCALL hash (KEY s)
 
static void build_node (XML_Parser parser, int src_node, XML_Content *dest, XML_Content **contpos, XML_Char **strpos)
 

Variables

static Processor prologProcessor
 
static Processor prologInitProcessor
 
static Processor contentProcessor
 
static Processor cdataSectionProcessor
 
static Processor epilogProcessor
 
static Processor errorProcessor
 
static Processor externalEntityInitProcessor
 
static Processor externalEntityInitProcessor2
 
static Processor externalEntityInitProcessor3
 
static Processor externalEntityContentProcessor
 
static Processor internalEntityProcessor
 
static const XML_Char implicitContext []
 

Macro Definition Documentation

#define attlistDeclHandler   (parser->m_attlistDeclHandler)
#define atts   (parser->m_atts)

Definition at line 636 of file xmlparse.cc.

Referenced by doContent(), parserCreate(), storeAtts(), and XML_ParserFree().

#define attsSize   (parser->m_attsSize)

Definition at line 637 of file xmlparse.cc.

Referenced by parserCreate(), and storeAtts().

#define bufferEnd   (parser->m_bufferEnd)
#define bufferLim   (parser->m_bufferLim)

Definition at line 616 of file xmlparse.cc.

Referenced by parserCreate(), XML_GetBuffer(), and XML_Parse().

#define bufferPtr   (parser->m_bufferPtr)

Definition at line 612 of file xmlparse.cc.

Referenced by parserInit(), XML_GetBuffer(), XML_Parse(), XML_ParseBuffer(), and XML_ResumeParser().

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

Definition at line 111 of file xmlparse.cc.

Referenced by hash(), and storeAtts().

#define characterDataHandler   (parser->m_characterDataHandler)
#define commentHandler   (parser->m_commentHandler)
#define CONTEXT_SEP   XML_T(ASCII_FF)

Definition at line 5378 of file xmlparse.cc.

Referenced by getContext(), and setContext().

#define curBase   (parser->m_curBase)

Definition at line 620 of file xmlparse.cc.

Referenced by doProlog(), parserInit(), XML_GetBase(), and XML_SetBase().

#define dataBuf   (parser->m_dataBuf)

Definition at line 617 of file xmlparse.cc.

Referenced by doCdataSection(), doContent(), parserCreate(), reportDefault(), and XML_ParserFree().

#define dataBufEnd   (parser->m_dataBufEnd)

Definition at line 618 of file xmlparse.cc.

Referenced by doCdataSection(), doContent(), parserCreate(), and reportDefault().

#define declAttributeId   (parser->m_declAttributeId)

Definition at line 629 of file xmlparse.cc.

Referenced by doProlog(), and parserInit().

#define declAttributeIsCdata   (parser->m_declAttributeIsCdata)

Definition at line 630 of file xmlparse.cc.

Referenced by doProlog(), and parserInit().

#define declAttributeIsId   (parser->m_declAttributeIsId)

Definition at line 631 of file xmlparse.cc.

Referenced by doProlog(), and parserInit().

#define declAttributeType   (parser->m_declAttributeType)

Definition at line 625 of file xmlparse.cc.

Referenced by doProlog(), and parserInit().

#define declElementType   (parser->m_declElementType)

Definition at line 628 of file xmlparse.cc.

Referenced by doProlog(), parserInit(), and XML_ExternalEntityParserCreate().

#define declEntity   (parser->m_declEntity)

Definition at line 621 of file xmlparse.cc.

Referenced by doProlog(), and parserInit().

#define declNotationName   (parser->m_declNotationName)

Definition at line 626 of file xmlparse.cc.

Referenced by doProlog(), and parserInit().

#define declNotationPublicId   (parser->m_declNotationPublicId)

Definition at line 627 of file xmlparse.cc.

Referenced by doProlog(), and parserInit().

#define defaultExpandInternalEntities   (parser->m_defaultExpandInternalEntities)
#define doctypeName   (parser->m_doctypeName)

Definition at line 622 of file xmlparse.cc.

Referenced by doProlog(), and parserInit().

#define doctypePubid   (parser->m_doctypePubid)

Definition at line 624 of file xmlparse.cc.

Referenced by doProlog(), and parserInit().

#define doctypeSysid   (parser->m_doctypeSysid)

Definition at line 623 of file xmlparse.cc.

Referenced by doProlog(), and parserInit().

#define elementDeclHandler   (parser->m_elementDeclHandler)
#define endCdataSectionHandler   (parser->m_endCdataSectionHandler)
#define endDoctypeDeclHandler   (parser->m_endDoctypeDeclHandler)
#define endElementHandler   (parser->m_endElementHandler)
#define endNamespaceDeclHandler   (parser->m_endNamespaceDeclHandler)
#define entityDeclHandler   (parser->m_entityDeclHandler)
#define errorCode   (parser->m_errorCode)
#define EXPAND_SPARE   24

Definition at line 140 of file xmlparse.cc.

Referenced by addBinding(), and storeAtts().

#define externalEntityRefHandler   (parser->m_externalEntityRefHandler)
#define externalEntityRefHandlerArg   (parser->m_externalEntityRefHandlerArg)
#define FREE (   p)    (parser->m_mem.free_fcn((p)))
#define freeBindingList   (parser->m_freeBindingList)
#define freeInternalEntities   (parser->m_freeInternalEntities)
#define freeTagList   (parser->m_freeTagList)

Definition at line 632 of file xmlparse.cc.

Referenced by doContent(), parserCreate(), XML_ParserFree(), and XML_ParserReset().

#define groupConnector   (parser->m_groupConnector)

Definition at line 645 of file xmlparse.cc.

Referenced by doProlog(), parserCreate(), and XML_ParserFree().

#define groupSize   (parser->m_groupSize)

Definition at line 646 of file xmlparse.cc.

Referenced by doProlog(), nextScaffoldPart(), and parserCreate().

#define idAttIndex   (parser->m_idAttIndex)

Definition at line 639 of file xmlparse.cc.

Referenced by storeAtts(), and XML_GetIdAttributeIndex().

#define inheritedBindings   (parser->m_inheritedBindings)

Definition at line 634 of file xmlparse.cc.

Referenced by parserInit(), setContext(), XML_ParserFree(), and XML_ParserReset().

#define INIT_ATTS_SIZE   16

Definition at line 135 of file xmlparse.cc.

Referenced by parserCreate(), and storeAtts().

#define INIT_ATTS_VERSION   0xFFFFFFFF

Definition at line 136 of file xmlparse.cc.

Referenced by storeAtts().

#define INIT_BLOCK_SIZE   1024

Definition at line 137 of file xmlparse.cc.

Referenced by poolGrow().

#define INIT_BUFFER_SIZE   1024

Definition at line 138 of file xmlparse.cc.

Referenced by XML_GetBuffer().

#define INIT_DATA_BUF_SIZE   1024

Definition at line 134 of file xmlparse.cc.

Referenced by parserCreate().

#define INIT_POWER   6

Definition at line 5834 of file xmlparse.cc.

Referenced by lookup().

#define INIT_SCAFFOLD_ELEMENTS   32

Definition at line 213 of file xmlparse.cc.

Referenced by nextScaffoldPart().

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

Definition at line 133 of file xmlparse.cc.

Referenced by doContent().

#define initEncoding   (parser->m_initEncoding)

Definition at line 589 of file xmlparse.cc.

Referenced by initializeEncoding(), and parserInit().

#define internalEncoding   (parser->m_internalEncoding)
#define internalEntityRefHandler   (parser->m_internalEntityRefHandler)

Definition at line 580 of file xmlparse.cc.

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

Definition at line 41 of file xmlparse.cc.

Referenced by doCdataSection(), doContent(), and reportDefault().

#define namespaceSeparator   (parser->m_namespaceSeparator)
#define notationDeclHandler   (parser->m_notationDeclHandler)
#define notStandaloneHandler   (parser->m_notStandaloneHandler)
#define ns   (parser->m_ns)

Definition at line 597 of file xmlparse.cc.

Referenced by G4RadioactiveDecay::AddDecayRateTable(), G4VITRestProcess::AtRestGetPhysicalInteractionLength(), G4AntiNeutronAnnihilationAtRest::AtRestGetPhysicalInteractionLength(), G4VRestContinuousProcess::AtRestGetPhysicalInteractionLength(), G4VRestProcess::AtRestGetPhysicalInteractionLength(), G4VITRestDiscreteProcess::AtRestGetPhysicalInteractionLength(), G4VRestDiscreteProcess::AtRestGetPhysicalInteractionLength(), G4VRestContinuousDiscreteProcess::AtRestGetPhysicalInteractionLength(), G4ErrorSurfaceTrajState::BuildErrorMatrix(), G4ParticleChangeForDecay::CheckIt(), G4ParticleChange::CheckIt(), G4FastStep::CheckIt(), G4VParticleChange::CheckSecondary(), OpNoviceDetectorConstruction::Construct(), G4ShortLivedConstructor::ConstructMesons(), G4NeutronTrackingCut::ConstructProcess(), Run::CountSteps0(), Run::CountSteps1(), WLSMaterials::CreateMaterials(), G4UnknownDecay::DecayIt(), G4Decay::DecayIt(), G4RadioactiveDecay::DecayIt(), LXeDetectorConstruction::DefineMaterials(), G4BcMesonMinus::Definition(), G4BcMesonPlus::Definition(), G4EtaPrime::Definition(), G4Upsilon::Definition(), G4XicPlus::Definition(), G4XicZero::Definition(), G4AntiOmegaMinus::Definition(), G4XiZero::Definition(), G4AntiBMesonZero::Definition(), G4AntiBsMesonZero::Definition(), G4AntiDMesonZero::Definition(), G4AntiOmegacZero::Definition(), G4AntiSigmacPlus::Definition(), G4AntiSigmacPlusPlus::Definition(), G4BMesonMinus::Definition(), G4BMesonPlus::Definition(), G4AntiSigmacZero::Definition(), G4BMesonZero::Definition(), G4BsMesonZero::Definition(), G4AntiSigmaMinus::Definition(), G4MuonMinus::Definition(), G4AntiXiZero::Definition(), G4PionZero::Definition(), G4DMesonMinus::Definition(), G4PionMinus::Definition(), G4DMesonPlus::Definition(), G4AntiSigmaPlus::Definition(), G4DMesonZero::Definition(), G4KaonMinus::Definition(), G4DsMesonMinus::Definition(), G4DsMesonPlus::Definition(), G4Eta::Definition(), G4AntiSigmaZero::Definition(), G4JPsi::Definition(), G4AntiXicZero::Definition(), G4KaonPlus::Definition(), G4KaonZeroLong::Definition(), G4KaonZeroShort::Definition(), G4AntiXicPlus::Definition(), G4PionPlus::Definition(), G4AntiXiMinus::Definition(), G4Lambda::Definition(), G4MuonPlus::Definition(), G4TauMinus::Definition(), G4TauPlus::Definition(), G4LambdacPlus::Definition(), G4OmegabMinus::Definition(), G4AntiOmegabMinus::Definition(), G4OmegacZero::Definition(), G4OmegaMinus::Definition(), G4AntiLambda::Definition(), G4SigmacPlus::Definition(), G4AntiLambdacPlus::Definition(), G4SigmaZero::Definition(), G4SigmacPlusPlus::Definition(), G4SigmacZero::Definition(), G4SigmaMinus::Definition(), G4SigmaPlus::Definition(), G4XiMinus::Definition(), G4AntiSigmabMinus::Definition(), G4AntiSigmabPlus::Definition(), G4AntiSigmabZero::Definition(), G4Etac::Definition(), G4AntiXibMinus::Definition(), G4AntiXibZero::Definition(), G4SigmabMinus::Definition(), G4SigmabPlus::Definition(), G4XibMinus::Definition(), G4SigmabZero::Definition(), G4XibZero::Definition(), G4AntiLambdab::Definition(), G4Lambdab::Definition(), doContent(), G4IsotopeProperty::DumpInfo(), G4ParticleChangeForDecay::DumpInfo(), G4ParticleChange::DumpInfo(), G4FastStep::DumpInfo(), G4ParticleDefinition::DumpTable(), RE01EventAction::EndOfEventAction(), G4NuclideTable::FillHardCodeList(), G4IsomerTable::FillIsotopeList(), G4ParticleGunMessenger::G4ParticleGunMessenger(), G4HtmlPPReporter::GenerateIndex(), G4NuclideTable::GenerateNuclide(), MedicalBeam::GeneratePrimaries(), getAttributeId(), G4NuclideTable::GetIsotope(), G4Decay::GetMeanLifeTime(), G4RadioactiveDecay::GetMeanLifeTime(), handleUnknownEncoding(), initializeEncoding(), OpNovicePrimaryGeneratorAction::OpNovicePrimaryGeneratorAction(), parserCreate(), G4OpWLS::PostStepDoIt(), G4Scintillation::PostStepDoIt(), XAluminumElectrodeHit::Print(), B5HodoscopeHit::Print(), B5DriftChamberHit::Print(), H02MuonHit::Print(), G4PrimaryVertex::Print(), G4PrimaryParticle::Print(), G4MCTSimVertex::Print(), G4ParticlePropertyData::Print(), G4MCTSimParticle::PrintSingle(), XAluminumElectrodeSensitivity::ProcessHits(), processXmlDecl(), G4NeutronKiller::SetTimeLimit(), G4BinaryCascade::StepParticlesOut(), storeAtts(), F05SteppingAction::UserSteppingAction(), G4SteppingVerbose::VerboseTrack(), DMXEventAction::writeScintHitsToFile(), XML_ExternalEntityParserCreate(), and XML_ParserCreate_MM().

#define ns_triplets   (parser->m_ns_triplets)
#define nsAtts   (parser->m_nsAtts)

Definition at line 640 of file xmlparse.cc.

Referenced by parserCreate(), storeAtts(), and XML_ParserFree().

#define nsAttsPower   (parser->m_nsAttsPower)

Definition at line 642 of file xmlparse.cc.

Referenced by parserCreate(), and storeAtts().

#define nsAttsVersion   (parser->m_nsAttsVersion)

Definition at line 641 of file xmlparse.cc.

Referenced by parserCreate(), and storeAtts().

#define nSpecifiedAtts   (parser->m_nSpecifiedAtts)

Definition at line 638 of file xmlparse.cc.

Referenced by parserInit(), storeAtts(), and XML_GetSpecifiedAttributeCount().

#define openInternalEntities   (parser->m_openInternalEntities)
#define parentParser   (parser->m_parentParser)
#define parseEndByteIndex   (parser->m_parseEndByteIndex)

Definition at line 614 of file xmlparse.cc.

Referenced by parserInit(), XML_GetCurrentByteIndex(), XML_Parse(), and XML_ParseBuffer().

#define parseEndPtr   (parser->m_parseEndPtr)
#define poolAppendChar (   pool,
 
)
Value:
(((pool)->ptr == (pool)->end && !poolGrow(pool)) \
? 0 \
: ((*((pool)->ptr)++ = c), 1))
static XML_Bool FASTCALL poolGrow(STRING_POOL *pool)
Definition: xmlparse.cc:6095

Definition at line 447 of file xmlparse.cc.

Referenced by appendAttributeValue(), doProlog(), dtdCopy(), getAttributeId(), getContext(), poolAppendString(), poolCopyString(), poolCopyStringN(), setContext(), setElementTypePrefix(), storeAttributeValue(), and storeAtts().

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

Definition at line 443 of file xmlparse.cc.

Referenced by storeAttributeValue().

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

Definition at line 441 of file xmlparse.cc.

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

Definition at line 444 of file xmlparse.cc.

Referenced by appendAttributeValue(), and storeAttributeValue().

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

Definition at line 442 of file xmlparse.cc.

Referenced by appendAttributeValue(), doProlog(), setContext(), and storeAttributeValue().

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

Definition at line 440 of file xmlparse.cc.

Referenced by doProlog(), getAttributeId(), setContext(), setElementTypePrefix(), and storeAtts().

#define position   (parser->m_position)
#define positionPtr   (parser->m_positionPtr)
#define PROBE_STEP (   hash,
  mask,
  power 
)    ((unsigned char)((SECOND_HASH(hash, mask, power)) | 1))

Definition at line 125 of file xmlparse.cc.

Referenced by lookup(), and storeAtts().

#define processingInstructionHandler   (parser->m_processingInstructionHandler)
#define prologState   (parser->m_prologState)
#define protocolEncodingName   (parser->m_protocolEncodingName)
#define REALLOC (   p,
  s 
)    (parser->m_mem.realloc_fcn((p),(s)))
#define ROUND_UP (   n,
  sz 
)    (((n) + ((sz) - 1)) & ~((sz) - 1))

Definition at line 74 of file xmlparse.cc.

Referenced by storeRawNames().

#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)
#define startCdataSectionHandler   (parser->m_startCdataSectionHandler)
#define startDoctypeDeclHandler   (parser->m_startDoctypeDeclHandler)
#define startElementHandler   (parser->m_startElementHandler)
#define startNamespaceDeclHandler   (parser->m_startNamespaceDeclHandler)
#define tagLevel   (parser->m_tagLevel)
#define tagStack   (parser->m_tagStack)
#define temp2Pool   (parser->m_temp2Pool)
#define unknownEncodingData   (parser->m_unknownEncodingData)

Definition at line 592 of file xmlparse.cc.

Referenced by handleUnknownEncoding(), parserInit(), XML_ParserFree(), and XML_ParserReset().

#define unknownEncodingHandler   (parser->m_unknownEncodingHandler)
#define unknownEncodingHandlerData   (parser->m_unknownEncodingHandlerData)

Definition at line 593 of file xmlparse.cc.

Referenced by handleUnknownEncoding(), parserCreate(), and XML_SetUnknownEncodingHandler().

#define unknownEncodingMem   (parser->m_unknownEncodingMem)

Definition at line 591 of file xmlparse.cc.

Referenced by handleUnknownEncoding(), parserInit(), XML_ParserFree(), and XML_ParserReset().

#define unknownEncodingRelease   (parser->m_unknownEncodingRelease)

Definition at line 595 of file xmlparse.cc.

Referenced by handleUnknownEncoding(), parserInit(), XML_ParserFree(), and XML_ParserReset().

#define unparsedEntityDeclHandler   (parser->m_unparsedEntityDeclHandler)
#define userData   (parser->m_userData)
#define V1 (   a,
  b,
 
)    XML_L(#a)XML_L(".")XML_L(#b)XML_L(".")XML_L(#c)
#define V2 (   a,
  b,
 
)    XML_L("expat_")V1(a,b,c)

Referenced by XML_ExpatVersion().

#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.

Referenced by appendAttributeValue(), doContent(), and storeEntityValue().

#define XML_L (   x)    x

Definition at line 69 of file xmlparse.cc.

Referenced by XML_ErrorString(), and XML_GetFeatureList().

#define XmlConvert   XmlUtf8Convert

Definition at line 37 of file xmlparse.cc.

Referenced by doCdataSection(), doContent(), poolAppend(), and reportDefault().

#define xmlDeclHandler   (parser->m_xmlDeclHandler)
#define XmlEncode   XmlUtf8Encode

Definition at line 40 of file xmlparse.cc.

Referenced by appendAttributeValue(), doContent(), and storeEntityValue().

#define XmlGetInternalEncoding   XmlGetUtf8InternalEncoding

Definition at line 38 of file xmlparse.cc.

Referenced by parserCreate().

#define XmlGetInternalEncodingNS   XmlGetUtf8InternalEncodingNS

Definition at line 51 of file xmlparse.cc.

Referenced by parserCreate().

#define XmlGetInternalEncodingNS   XmlGetInternalEncoding

Definition at line 51 of file xmlparse.cc.

#define XmlInitEncodingNS   XmlInitEncoding

Definition at line 48 of file xmlparse.cc.

Referenced by initializeEncoding().

#define XmlInitUnknownEncodingNS   XmlInitUnknownEncoding

Definition at line 49 of file xmlparse.cc.

Referenced by handleUnknownEncoding().

#define XmlParseXmlDeclNS   XmlParseXmlDecl

Definition at line 52 of file xmlparse.cc.

Referenced by processXmlDecl().

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

static enum XML_Error addBinding ( XML_Parser  parser,
PREFIX prefix,
const ATTRIBUTE_ID attId,
const XML_Char *  uri,
BINDING **  bindingsPtr 
)
static

Definition at line 2946 of file xmlparse.cc.

References _dtd, binding::attId, prefix::binding, EXPAND_SPARE, FREE, freeBindingList, handlerArg, MALLOC, prefix::name, namespaceSeparator, binding::nextTagBinding, binding::prefix, binding::prevPrefixBinding, REALLOC, startNamespaceDeclHandler, binding::uri, binding::uriAlloc, binding::uriLen, and XML_T.

Referenced by setContext(), and storeAtts().

+ Here is the caller graph for this function:

static enum XML_Error appendAttributeValue ( XML_Parser  parser,
const ENCODING *  enc,
XML_Bool  isCdata,
const char *  ptr,
const char *  end,
STRING_POOL pool 
)
static

Definition at line 4826 of file xmlparse.cc.

References _dtd, encoding, eventPtr, DTD::generalEntities, DTD::hasParamEntityRefs, internalEncoding, ENTITY::is_internal, lookup(), n, name, ENTITY::notation, ENTITY::open, openInternalEntities, DTD::pool, poolAppend(), poolAppendChar, poolDiscard, poolLastChar, poolLength, poolStoreString(), prologState, DTD::standalone, temp2Pool, ENTITY::textLen, ENTITY::textPtr, XML_ENCODE_MAX, and XmlEncode.

Referenced by storeAttributeValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static XML_Content * build_model ( XML_Parser  parser)
static

Definition at line 6244 of file xmlparse.cc.

References _dtd, build_node(), DTD::contentStringLen, MALLOC, and DTD::scaffCount.

Referenced by doProlog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void build_node ( XML_Parser  parser,
int  src_node,
XML_Content *  dest,
XML_Content **  contpos,
XML_Char **  strpos 
)
static

Definition at line 6206 of file xmlparse.cc.

References _dtd, CONTENT_SCAFFOLD::childcnt, CONTENT_SCAFFOLD::firstchild, CONTENT_SCAFFOLD::name, CONTENT_SCAFFOLD::nextsib, CONTENT_SCAFFOLD::quant, DTD::scaffold, and CONTENT_SCAFFOLD::type.

Referenced by build_model().

+ Here is the caller graph for this function:

static enum XML_Error PTRCALL cdataSectionProcessor ( XML_Parser  parser,
const char *  start,
const char *  end,
const char **  endPtr 
)
static

Definition at line 3063 of file xmlparse.cc.

References contentProcessor, doCdataSection(), encoding, externalEntityContentProcessor, parentParser, processor, and ps_finalBuffer.

+ Here is the call graph for this function:

static enum XML_Error PTRCALL contentProcessor ( XML_Parser  parser,
const char *  start,
const char *  end,
const char **  endPtr 
)
static

Definition at line 2017 of file xmlparse.cc.

References doContent(), encoding, ps_finalBuffer, and storeRawNames().

+ Here is the call graph for this function:

static int copyEntityTable ( HASH_TABLE newTable,
STRING_POOL newPool,
const HASH_TABLE oldTable 
)
static

Definition at line 5769 of file xmlparse.cc.

References ENTITY::base, hashTableIterInit(), hashTableIterNext(), ENTITY::is_internal, ENTITY::is_param, lookup(), name, ENTITY::name, ENTITY::notation, poolCopyString(), poolCopyStringN(), ENTITY::publicId, ENTITY::systemId, ENTITY::textLen, and ENTITY::textPtr.

Referenced by dtdCopy().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int defineAttribute ( ELEMENT_TYPE type,
ATTRIBUTE_ID attId,
XML_Bool  isCdata,
XML_Bool  isId,
const XML_Char *  dfltValue,
XML_Parser  parser 
)
static

Definition at line 5244 of file xmlparse.cc.

References ELEMENT_TYPE::allocDefaultAtts, ELEMENT_TYPE::defaultAtts, DEFAULT_ATTRIBUTE::id, ELEMENT_TYPE::idAtt, DEFAULT_ATTRIBUTE::isCdata, MALLOC, attribute_id::maybeTokenized, ELEMENT_TYPE::nDefaultAtts, REALLOC, DEFAULT_ATTRIBUTE::value, and attribute_id::xmlns.

Referenced by doProlog().

+ Here is the caller graph for this function:

static void FASTCALL destroyBindings ( BINDING bindings,
XML_Parser  parser 
)
static

Definition at line 1069 of file xmlparse.cc.

References FREE, binding::nextTagBinding, and binding::uri.

Referenced by XML_ParserFree().

+ Here is the caller graph for this function:

static enum XML_Error doCdataSection ( XML_Parser  parser,
const ENCODING *  enc,
const char **  startPtr,
const char *  end,
const char **  nextPtr,
XML_Bool  haveMore 
)
static

Definition at line 3089 of file xmlparse.cc.

References characterDataHandler, dataBuf, dataBufEnd, defaultHandler, encoding, endCdataSectionHandler, eventEndPtr, eventPtr, handlerArg, MUST_CONVERT, openInternalEntities, ps_parsing, reportDefault(), s, and XmlConvert.

Referenced by cdataSectionProcessor(), and doContent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static enum XML_Error doContent ( XML_Parser  parser,
int  startTagLevel,
const ENCODING *  enc,
const char *  start,
const char *  end,
const char **  endPtr,
XML_Bool  haveMore 
)
static

Definition at line 2148 of file xmlparse.cc.

References _dtd, atts, ENTITY::base, prefix::binding, tag::bindings, tag::buf, tag::bufEnd, cdataSectionProcessor, characterDataHandler, dataBuf, dataBufEnd, defaultExpandInternalEntities, defaultHandler, doCdataSection(), encoding, endElementHandler, endNamespaceDeclHandler, epilogProcessor, eventEndPtr, eventPtr, externalEntityRefHandler, externalEntityRefHandlerArg, FREE, freeBindingList, freeTagList, DTD::generalEntities, getContext(), handlerArg, DTD::hasParamEntityRefs, INIT_TAG_BUF_SIZE, ENTITY::is_internal, TAG_NAME::localPart, lookup(), MALLOC, MUST_CONVERT, n, name, prefix::name, tag::name, ENTITY::name, namespaceSeparator, binding::nextTagBinding, ENTITY::notation, ns, ns_triplets, ENTITY::open, openInternalEntities, tag::parent, DTD::pool, poolClear(), poolDiscard, poolFinish, poolStoreString(), binding::prefix, TAG_NAME::prefix, binding::prevPrefixBinding, processInternalEntity(), processor, ps_parsing, ENTITY::publicId, tag::rawName, tag::rawNameLength, REALLOC, reportComment(), reportDefault(), reportProcessingInstruction(), s, skippedEntityHandler, DTD::standalone, startCdataSectionHandler, startElementHandler, storeAtts(), TAG_NAME::str, TAG_NAME::strLen, ENTITY::systemId, tagLevel, tagStack, tempPool, ENTITY::textPtr, TAG_NAME::uriLen, XML_ENCODE_MAX, XML_T, XmlConvert, and XmlEncode.

Referenced by contentProcessor(), externalEntityContentProcessor(), internalEntityProcessor(), and processInternalEntity().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static enum XML_Error doProlog ( XML_Parser  parser,
const ENCODING *  enc,
const char *  s,
const char *  end,
int  tok,
const char *  next,
const char **  nextPtr,
XML_Bool  haveMore 
)
static

Definition at line 3640 of file xmlparse.cc.

References _dtd, attlistDeclHandler, ENTITY::base, build_model(), contentProcessor, DTD::contentStringLen, curBase, declAttributeId, declAttributeIsCdata, declAttributeIsId, declAttributeType, declElementType, declEntity, declNotationName, declNotationPublicId, defaultHandler, defineAttribute(), doctypeName, doctypePubid, doctypeSysid, elementDeclHandler, encoding, endDoctypeDeclHandler, entityDeclHandler, DTD::entityValuePool, eventEndPtr, eventPtr, externalEntityRefHandler, externalEntityRefHandlerArg, DTD::generalEntities, getAttributeId(), getElementType(), groupConnector, groupSize, handlerArg, DTD::hasParamEntityRefs, DTD::in_eldecl, ENTITY::is_internal, DTD::keepProcessing, lookup(), MALLOC, name, CONTENT_SCAFFOLD::name, ELEMENT_TYPE::name, nextScaffoldPart(), normalizePublicId(), notationDeclHandler, notStandaloneHandler, ENTITY::open, openInternalEntities, parentParser, DTD::pool, poolAppend(), poolAppendChar, poolAppendString(), poolClear(), poolDiscard, poolFinish, poolLength, poolStart, poolStoreString(), processInternalEntity(), processor, processXmlDecl(), prologState, ps_parsing, ENTITY::publicId, CONTENT_SCAFFOLD::quant, REALLOC, reportComment(), reportDefault(), reportProcessingInstruction(), s, DTD::scaffCount, DTD::scaffIndex, DTD::scaffLevel, DTD::scaffold, skippedEntityHandler, DTD::standalone, startDoctypeDeclHandler, storeAttributeValue(), storeEntityValue(), ENTITY::systemId, tempPool, ENTITY::textPtr, CONTENT_SCAFFOLD::type, unparsedEntityDeclHandler, and XML_T.

Referenced by internalEntityProcessor(), processInternalEntity(), and prologProcessor().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int dtdCopy ( DTD newDtd,
const DTD oldDtd,
const XML_Memory_Handling_Suite *  ms 
)
static
static DTD * dtdCreate ( const XML_Memory_Handling_Suite *  ms)
static

Definition at line 5533 of file xmlparse.cc.

References DTD::attributeIds, prefix::binding, DTD::contentStringLen, DTD::defaultPrefix, DTD::elementTypes, DTD::entityValuePool, DTD::generalEntities, hashTableInit(), DTD::hasParamEntityRefs, DTD::in_eldecl, DTD::keepProcessing, prefix::name, DTD::pool, poolInit(), DTD::prefixes, DTD::scaffCount, DTD::scaffIndex, DTD::scaffLevel, DTD::scaffold, DTD::scaffSize, and DTD::standalone.

Referenced by parserCreate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void dtdDestroy ( DTD p,
XML_Bool  isDocEntity,
const XML_Memory_Handling_Suite *  ms 
)
static

Definition at line 5608 of file xmlparse.cc.

References ELEMENT_TYPE::allocDefaultAtts, DTD::attributeIds, ELEMENT_TYPE::defaultAtts, DTD::elementTypes, DTD::entityValuePool, DTD::generalEntities, hashTableDestroy(), hashTableIterInit(), hashTableIterNext(), DTD::pool, poolDestroy(), DTD::prefixes, DTD::scaffIndex, and DTD::scaffold.

Referenced by XML_ParserFree().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void dtdReset ( DTD p,
const XML_Memory_Handling_Suite *  ms 
)
static

Definition at line 5566 of file xmlparse.cc.

References ELEMENT_TYPE::allocDefaultAtts, DTD::attributeIds, prefix::binding, DTD::contentStringLen, ELEMENT_TYPE::defaultAtts, DTD::defaultPrefix, DTD::elementTypes, DTD::entityValuePool, DTD::generalEntities, hashTableClear(), hashTableIterInit(), hashTableIterNext(), DTD::hasParamEntityRefs, DTD::in_eldecl, DTD::keepProcessing, prefix::name, DTD::pool, poolClear(), DTD::prefixes, DTD::scaffCount, DTD::scaffIndex, DTD::scaffLevel, DTD::scaffold, DTD::scaffSize, and DTD::standalone.

Referenced by XML_ParserReset().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static enum XML_Error PTRCALL epilogProcessor ( XML_Parser  parser,
const char *  s,
const char *  end,
const char **  nextPtr 
)
static

Definition at line 4616 of file xmlparse.cc.

References defaultHandler, encoding, epilogProcessor, eventEndPtr, eventPtr, processor, ps_finalBuffer, ps_parsing, reportComment(), reportDefault(), reportProcessingInstruction(), and s.

+ Here is the call graph for this function:

static enum XML_Error PTRCALL errorProcessor ( XML_Parser  parser,
const char *  s,
const char *  end,
const char **  nextPtr 
)
static

Definition at line 4801 of file xmlparse.cc.

References errorCode.

static enum XML_Error PTRCALL externalEntityContentProcessor ( XML_Parser  parser,
const char *  start,
const char *  end,
const char **  endPtr 
)
static

Definition at line 2133 of file xmlparse.cc.

References doContent(), encoding, ps_finalBuffer, and storeRawNames().

+ Here is the call graph for this function:

static enum XML_Error PTRCALL externalEntityInitProcessor ( XML_Parser  parser,
const char *  start,
const char *  end,
const char **  endPtr 
)
static

Definition at line 2032 of file xmlparse.cc.

References externalEntityInitProcessor2, initializeEncoding(), and processor.

+ Here is the call graph for this function:

static enum XML_Error PTRCALL externalEntityInitProcessor2 ( XML_Parser  parser,
const char *  start,
const char *  end,
const char **  endPtr 
)
static

Definition at line 2045 of file xmlparse.cc.

References encoding, eventPtr, externalEntityInitProcessor3, processor, and ps_finalBuffer.

static enum XML_Error PTRCALL externalEntityInitProcessor3 ( XML_Parser  parser,
const char *  start,
const char *  end,
const char **  endPtr 
)
static

Definition at line 2085 of file xmlparse.cc.

References encoding, eventEndPtr, eventPtr, externalEntityContentProcessor, processor, processXmlDecl(), ps_finalBuffer, ps_parsing, and tagLevel.

+ Here is the call graph for this function:

static ATTRIBUTE_ID * getAttributeId ( XML_Parser  parser,
const ENCODING *  enc,
const char *  start,
const char *  end 
)
static

Definition at line 5318 of file xmlparse.cc.

References _dtd, DTD::attributeIds, DTD::defaultPrefix, lookup(), name, prefix::name, attribute_id::name, ns, DTD::pool, poolAppendChar, poolDiscard, poolFinish, poolStart, poolStoreString(), attribute_id::prefix, DTD::prefixes, and XML_T.

Referenced by doProlog(), and storeAtts().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static const XML_Char * getContext ( XML_Parser  parser)
static

Definition at line 5381 of file xmlparse.cc.

References _dtd, prefix::binding, CONTEXT_SEP, DTD::defaultPrefix, DTD::generalEntities, hashTableIterInit(), hashTableIterNext(), prefix::name, ENTITY::name, namespaceSeparator, ENTITY::open, poolAppendChar, DTD::prefixes, s, tempPool, binding::uri, binding::uriLen, and XML_T.

Referenced by doContent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ELEMENT_TYPE * getElementType ( XML_Parser  parser,
const ENCODING *  enc,
const char *  ptr,
const char *  end 
)
static

Definition at line 6265 of file xmlparse.cc.

References _dtd, DTD::elementTypes, lookup(), name, ELEMENT_TYPE::name, DTD::pool, poolDiscard, poolFinish, poolStoreString(), and setElementTypePrefix().

Referenced by doProlog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static enum XML_Error handleUnknownEncoding ( XML_Parser  parser,
const XML_Char *  encodingName 
)
static

Definition at line 3404 of file xmlparse.cc.

References encoding, MALLOC, ns, unknownEncodingData, unknownEncodingHandler, unknownEncodingHandlerData, unknownEncodingMem, unknownEncodingRelease, XmlInitUnknownEncoding(), XmlInitUnknownEncodingNS, and XmlSizeOfUnknownEncoding().

Referenced by initializeEncoding(), and processXmlDecl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static unsigned long FASTCALL hash ( KEY  s)
static

Definition at line 5846 of file xmlparse.cc.

References CHAR_HASH.

Referenced by G4CascadeCoalescence::clusterHash(), lookup(), and storeAtts().

+ Here is the caller graph for this function:

static void FASTCALL hashTableClear ( HASH_TABLE table)
static

Definition at line 5934 of file xmlparse.cc.

References HASH_TABLE::mem, HASH_TABLE::size, HASH_TABLE::used, and HASH_TABLE::v.

Referenced by dtdReset().

+ Here is the caller graph for this function:

static void FASTCALL hashTableDestroy ( HASH_TABLE table)
static

Definition at line 5945 of file xmlparse.cc.

References HASH_TABLE::mem, HASH_TABLE::size, and HASH_TABLE::v.

Referenced by dtdDestroy().

+ Here is the caller graph for this function:

static void FASTCALL hashTableInit ( HASH_TABLE p,
const XML_Memory_Handling_Suite *  ms 
)
static

Definition at line 5954 of file xmlparse.cc.

References HASH_TABLE::mem, ms, HASH_TABLE::power, HASH_TABLE::size, HASH_TABLE::used, and HASH_TABLE::v.

Referenced by dtdCreate().

+ Here is the caller graph for this function:

static void FASTCALL hashTableIterInit ( HASH_TABLE_ITER iter,
const HASH_TABLE table 
)
static

Definition at line 5964 of file xmlparse.cc.

References HASH_TABLE_ITER::end, HASH_TABLE_ITER::p, HASH_TABLE::size, and HASH_TABLE::v.

Referenced by copyEntityTable(), dtdCopy(), dtdDestroy(), dtdReset(), and getContext().

+ Here is the caller graph for this function:

static NAMED *FASTCALL hashTableIterNext ( HASH_TABLE_ITER iter)
static

Definition at line 5971 of file xmlparse.cc.

References HASH_TABLE_ITER::end, and HASH_TABLE_ITER::p.

Referenced by copyEntityTable(), dtdCopy(), dtdDestroy(), dtdReset(), and getContext().

+ Here is the caller graph for this function:

static enum XML_Error initializeEncoding ( XML_Parser  parser)
static

Definition at line 3286 of file xmlparse.cc.

References encoding, handleUnknownEncoding(), initEncoding, ns, protocolEncodingName, s, and XmlInitEncodingNS.

Referenced by externalEntityInitProcessor(), and prologInitProcessor().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static enum XML_Error PTRCALL internalEntityProcessor ( XML_Parser  parser,
const char *  s,
const char *  end,
const char **  nextPtr 
)
static

Definition at line 4740 of file xmlparse.cc.

References contentProcessor, doContent(), doProlog(), encoding, open_internal_entity::entity, freeInternalEntities, internalEncoding, ENTITY::is_param, open_internal_entity::next, ENTITY::open, openInternalEntities, parentParser, ENTITY::processed, processor, prologProcessor, ps_finalBuffer, ps_parsing, open_internal_entity::startTagLevel, ENTITY::textLen, and ENTITY::textPtr.

+ Here is the call graph for this function:

static XML_Bool FASTCALL keyeq ( KEY  s1,
KEY  s2 
)
static

Definition at line 5837 of file xmlparse.cc.

Referenced by lookup().

+ Here is the caller graph for this function:

static NAMED * lookup ( HASH_TABLE table,
KEY  name,
size_t  createSize 
)
static

Definition at line 5855 of file xmlparse.cc.

References hash(), INIT_POWER, keyeq(), HASH_TABLE::mem, name, NAMED::name, HASH_TABLE::power, PROBE_STEP, HASH_TABLE::size, HASH_TABLE::used, and HASH_TABLE::v.

Referenced by appendAttributeValue(), copyEntityTable(), doContent(), doProlog(), dtdCopy(), getAttributeId(), getElementType(), setContext(), setElementTypePrefix(), storeAtts(), and storeEntityValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void FASTCALL moveToFreeBindingList ( XML_Parser  parser,
BINDING bindings 
)
static

Definition at line 873 of file xmlparse.cc.

References freeBindingList, and binding::nextTagBinding.

Referenced by XML_ParserReset().

+ Here is the caller graph for this function:

static int FASTCALL nextScaffoldPart ( XML_Parser  parser)
static

Definition at line 6158 of file xmlparse.cc.

References _dtd, CONTENT_SCAFFOLD::childcnt, CONTENT_SCAFFOLD::firstchild, groupSize, INIT_SCAFFOLD_ELEMENTS, CONTENT_SCAFFOLD::lastchild, MALLOC, CONTENT_SCAFFOLD::nextsib, REALLOC, DTD::scaffCount, DTD::scaffIndex, DTD::scaffLevel, DTD::scaffold, and DTD::scaffSize.

Referenced by doProlog().

+ Here is the caller graph for this function:

static void FASTCALL normalizeLines ( XML_Char *  s)
static

Definition at line 5142 of file xmlparse.cc.

References s, and XML_T.

Referenced by reportComment(), and reportProcessingInstruction().

+ Here is the caller graph for this function:

static void FASTCALL normalizePublicId ( XML_Char *  s)
static

Definition at line 5511 of file xmlparse.cc.

References s, and XML_T.

Referenced by doProlog().

+ Here is the caller graph for this function:

static XML_Parser parserCreate ( const XML_Char *  encodingName,
const XML_Memory_Handling_Suite *  memsuite,
const XML_Char *  nameSep,
DTD dtd 
)
static

Definition at line 699 of file xmlparse.cc.

References _dtd, atts, attsSize, buffer, bufferLim, dataBuf, dataBufEnd, dtdCreate(), free(), FREE, freeBindingList, freeInternalEntities, freeTagList, groupConnector, groupSize, INIT_ATTS_SIZE, INIT_DATA_BUF_SIZE, internalEncoding, malloc(), MALLOC, namespaceSeparator, ns, ns_triplets, nsAtts, nsAttsPower, nsAttsVersion, parserInit(), poolInit(), protocolEncodingName, realloc(), temp2Pool, tempPool, unknownEncodingHandler, unknownEncodingHandlerData, XML_ParserFree(), XmlGetInternalEncoding, and XmlGetInternalEncodingNS.

Referenced by XML_ExternalEntityParserCreate(), and XML_ParserCreate_MM().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void parserInit ( XML_Parser  parser,
const XML_Char *  encodingName 
)
static

Definition at line 800 of file xmlparse.cc.

References attlistDeclHandler, buffer, bufferEnd, bufferPtr, characterDataHandler, commentHandler, curBase, declAttributeId, declAttributeIsCdata, declAttributeIsId, declAttributeType, declElementType, declEntity, declNotationName, declNotationPublicId, defaultExpandInternalEntities, defaultHandler, doctypeName, doctypePubid, doctypeSysid, elementDeclHandler, encoding, endCdataSectionHandler, endDoctypeDeclHandler, endElementHandler, endNamespaceDeclHandler, entityDeclHandler, errorCode, eventEndPtr, eventPtr, externalEntityRefHandler, externalEntityRefHandlerArg, handlerArg, inheritedBindings, initEncoding, notationDeclHandler, notStandaloneHandler, nSpecifiedAtts, openInternalEntities, parentParser, parseEndByteIndex, parseEndPtr, poolCopyString(), POSITION, position, positionPtr, processingInstructionHandler, processor, prologInitProcessor, prologState, protocolEncodingName, ps_parsing, skippedEntityHandler, startCdataSectionHandler, startDoctypeDeclHandler, startElementHandler, startNamespaceDeclHandler, tagLevel, tagStack, tempPool, unknownEncodingData, unknownEncodingMem, unknownEncodingRelease, unparsedEntityDeclHandler, userData, xmlDeclHandler, and XmlPrologStateInit().

Referenced by parserCreate(), and XML_ParserReset().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static XML_Char * poolAppend ( STRING_POOL pool,
const ENCODING *  enc,
const char *  ptr,
const char *  end 
)
static

Definition at line 6030 of file xmlparse.cc.

References STRING_POOL::end, poolGrow(), STRING_POOL::ptr, STRING_POOL::start, and XmlConvert.

Referenced by appendAttributeValue(), doProlog(), poolStoreString(), and storeEntityValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static const XML_Char *FASTCALL poolAppendString ( STRING_POOL pool,
const XML_Char *  s 
)
static

Definition at line 6072 of file xmlparse.cc.

References poolAppendChar, and STRING_POOL::start.

Referenced by doProlog().

+ Here is the caller graph for this function:

static void FASTCALL poolClear ( STRING_POOL pool)
static

Definition at line 5993 of file xmlparse.cc.

References STRING_POOL::blocks, STRING_POOL::end, STRING_POOL::freeBlocks, block::next, STRING_POOL::ptr, and STRING_POOL::start.

Referenced by doContent(), doProlog(), dtdReset(), processXmlDecl(), reportComment(), reportProcessingInstruction(), and XML_ParserReset().

+ Here is the caller graph for this function:

static const XML_Char *FASTCALL poolCopyString ( STRING_POOL pool,
const XML_Char *  s 
)
static

Definition at line 6046 of file xmlparse.cc.

References poolAppendChar, poolFinish, s, and STRING_POOL::start.

Referenced by copyEntityTable(), dtdCopy(), parserInit(), setContext(), storeAtts(), XML_SetBase(), and XML_SetEncoding().

+ Here is the caller graph for this function:

static const XML_Char * poolCopyStringN ( STRING_POOL pool,
const XML_Char *  s,
int  n 
)
static

Definition at line 6058 of file xmlparse.cc.

References n, poolAppendChar, poolFinish, poolGrow(), STRING_POOL::ptr, s, and STRING_POOL::start.

Referenced by copyEntityTable().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void FASTCALL poolDestroy ( STRING_POOL pool)
static

Definition at line 6013 of file xmlparse.cc.

References STRING_POOL::blocks, STRING_POOL::freeBlocks, STRING_POOL::mem, and block::next.

Referenced by dtdDestroy(), and XML_ParserFree().

+ Here is the caller graph for this function:

static XML_Bool FASTCALL poolGrow ( STRING_POOL pool)
static

Definition at line 6095 of file xmlparse.cc.

References STRING_POOL::blocks, STRING_POOL::end, STRING_POOL::freeBlocks, INIT_BLOCK_SIZE, STRING_POOL::mem, block::next, STRING_POOL::ptr, block::s, block::size, and STRING_POOL::start.

Referenced by poolAppend(), poolCopyStringN(), poolStoreString(), and storeEntityValue().

+ Here is the caller graph for this function:

static void FASTCALL poolInit ( STRING_POOL pool,
const XML_Memory_Handling_Suite *  ms 
)
static

Definition at line 5982 of file xmlparse.cc.

References STRING_POOL::blocks, STRING_POOL::end, STRING_POOL::freeBlocks, STRING_POOL::mem, ms, STRING_POOL::ptr, and STRING_POOL::start.

Referenced by dtdCreate(), and parserCreate().

+ Here is the caller graph for this function:

static XML_Char * poolStoreString ( STRING_POOL pool,
const ENCODING *  enc,
const char *  ptr,
const char *  end 
)
static

Definition at line 6083 of file xmlparse.cc.

References STRING_POOL::end, poolAppend(), poolGrow(), STRING_POOL::ptr, and STRING_POOL::start.

Referenced by appendAttributeValue(), doContent(), doProlog(), getAttributeId(), getElementType(), processXmlDecl(), reportComment(), reportProcessingInstruction(), storeAtts(), and storeEntityValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static enum XML_Error processInternalEntity ( XML_Parser  parser,
ENTITY entity,
XML_Bool  betweenDecl 
)
static

Definition at line 4683 of file xmlparse.cc.

References open_internal_entity::betweenDecl, doContent(), doProlog(), open_internal_entity::entity, freeInternalEntities, internalEncoding, internalEntityProcessor, open_internal_entity::internalEventEndPtr, open_internal_entity::internalEventPtr, ENTITY::is_param, MALLOC, open_internal_entity::next, ENTITY::open, openInternalEntities, ENTITY::processed, processor, ps_parsing, open_internal_entity::startTagLevel, tagLevel, ENTITY::textLen, and ENTITY::textPtr.

Referenced by doContent(), and doProlog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

enum XML_Error PTRCALL Processor ( XML_Parser  parser,
const char *  start,
const char *  end,
const char **  endPtr 
)
static enum XML_Error processXmlDecl ( XML_Parser  parser,
int  isGeneralTextEntity,
const char *  s,
const char *  next 
)
static

Definition at line 3315 of file xmlparse.cc.

References _dtd, defaultHandler, encoding, eventPtr, handlerArg, handleUnknownEncoding(), ns, poolClear(), poolFinish, poolStoreString(), protocolEncodingName, reportDefault(), temp2Pool, xmlDeclHandler, and XmlParseXmlDeclNS.

Referenced by doProlog(), and externalEntityInitProcessor3().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static enum XML_Error PTRCALL prologInitProcessor ( XML_Parser  parser,
const char *  s,
const char *  end,
const char **  nextPtr 
)
static

Definition at line 3443 of file xmlparse.cc.

References initializeEncoding(), processor, and prologProcessor.

+ Here is the call graph for this function:

static enum XML_Error PTRCALL prologProcessor ( XML_Parser  parser,
const char *  s,
const char *  end,
const char **  nextPtr 
)
static

Definition at line 3628 of file xmlparse.cc.

References doProlog(), encoding, ps_finalBuffer, and s.

+ Here is the call graph for this function:

static int reportComment ( XML_Parser  parser,
const ENCODING *  enc,
const char *  start,
const char *  end 
)
static

Definition at line 5194 of file xmlparse.cc.

References commentHandler, defaultHandler, handlerArg, normalizeLines(), poolClear(), poolStoreString(), reportDefault(), and tempPool.

Referenced by doContent(), doProlog(), and epilogProcessor().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void reportDefault ( XML_Parser  parser,
const ENCODING *  enc,
const char *  start,
const char *  end 
)
static

Definition at line 5216 of file xmlparse.cc.

References dataBuf, dataBufEnd, defaultHandler, encoding, eventEndPtr, eventPtr, handlerArg, MUST_CONVERT, openInternalEntities, s, and XmlConvert.

Referenced by doCdataSection(), doContent(), doProlog(), epilogProcessor(), processXmlDecl(), reportComment(), reportProcessingInstruction(), and XML_DefaultCurrent().

+ Here is the caller graph for this function:

static int reportProcessingInstruction ( XML_Parser  parser,
const ENCODING *  enc,
const char *  start,
const char *  end 
)
static

Definition at line 5165 of file xmlparse.cc.

References defaultHandler, handlerArg, normalizeLines(), poolClear(), poolFinish, poolStoreString(), processingInstructionHandler, reportDefault(), and tempPool.

Referenced by doContent(), doProlog(), and epilogProcessor().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static XML_Bool setContext ( XML_Parser  parser,
const XML_Char *  context 
)
static

Definition at line 5450 of file xmlparse.cc.

References _dtd, addBinding(), CONTEXT_SEP, DTD::defaultPrefix, DTD::generalEntities, inheritedBindings, lookup(), prefix::name, ENTITY::open, DTD::pool, poolAppendChar, poolCopyString(), poolDiscard, poolLength, poolStart, DTD::prefixes, s, tempPool, and XML_T.

Referenced by XML_ExternalEntityParserCreate(), XML_ParserCreate_MM(), and XML_ParserReset().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int setElementTypePrefix ( XML_Parser  parser,
ELEMENT_TYPE elementType 
)
static

Definition at line 5288 of file xmlparse.cc.

References _dtd, lookup(), name, prefix::name, ELEMENT_TYPE::name, DTD::pool, poolAppendChar, poolDiscard, poolFinish, poolStart, ELEMENT_TYPE::prefix, DTD::prefixes, s, and XML_T.

Referenced by getElementType(), and storeAtts().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static enum XML_Error storeAttributeValue ( XML_Parser  parser,
const ENCODING *  enc,
XML_Bool  isCdata,
const char *  ptr,
const char *  end,
STRING_POOL pool 
)
static

Definition at line 4810 of file xmlparse.cc.

References appendAttributeValue(), poolAppendChar, poolChop, poolLastChar, poolLength, and XML_T.

Referenced by doProlog(), and storeAtts().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static enum XML_Error storeAtts ( XML_Parser  parser,
const ENCODING *  enc,
const char *  s,
TAG_NAME tagNamePtr,
BINDING **  bindingsPtr 
)
static
static enum XML_Error storeEntityValue ( XML_Parser  parser,
const ENCODING *  enc,
const char *  start,
const char *  end 
)
static

Definition at line 4976 of file xmlparse.cc.

References _dtd, ENTITY::base, STRING_POOL::blocks, encoding, STRING_POOL::end, DTD::entityValuePool, eventPtr, externalEntityRefHandler, externalEntityRefHandlerArg, internalEncoding, DTD::keepProcessing, lookup(), n, name, ENTITY::open, poolAppend(), poolDiscard, poolGrow(), poolStoreString(), prologState, STRING_POOL::ptr, ENTITY::publicId, DTD::standalone, ENTITY::systemId, tempPool, ENTITY::textLen, ENTITY::textPtr, XML_ENCODE_MAX, and XmlEncode.

Referenced by doProlog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static XML_Bool storeRawNames ( XML_Parser  parser)
static

Definition at line 1972 of file xmlparse.cc.

References tag::buf, tag::bufEnd, TAG_NAME::localPart, tag::name, tag::parent, tag::rawName, tag::rawNameLength, REALLOC, ROUND_UP, TAG_NAME::str, TAG_NAME::strLen, and tagStack.

Referenced by contentProcessor(), and externalEntityContentProcessor().

+ Here is the caller graph for this function:

void XMLCALL XML_DefaultCurrent ( XML_Parser  parser)

Definition at line 1834 of file xmlparse.cc.

References defaultHandler, encoding, eventEndPtr, eventPtr, internalEncoding, openInternalEntities, and reportDefault().

+ Here is the call graph for this function:

const XML_LChar* XMLCALL XML_ErrorString ( enum XML_Error  code)

Definition at line 1848 of file xmlparse.cc.

References XML_L.

Referenced by xData_parseEndOfXML().

+ Here is the caller graph for this function:

const XML_LChar* XMLCALL XML_ExpatVersion ( void  )

Definition at line 1899 of file xmlparse.cc.

References V2.

XML_Expat_Version XMLCALL XML_ExpatVersionInfo ( void  )

Definition at line 1919 of file xmlparse.cc.

void XMLCALL XML_FreeContentModel ( XML_Parser  parser,
XML_Content *  model 
)

Definition at line 1810 of file xmlparse.cc.

References FREE.

const XML_Char* XMLCALL XML_GetBase ( XML_Parser  parser)

Definition at line 1196 of file xmlparse.cc.

References curBase.

void* XMLCALL XML_GetBuffer ( XML_Parser  parser,
int  len 
)

Definition at line 1601 of file xmlparse.cc.

References buffer, bufferEnd, bufferLim, bufferPtr, errorCode, FREE, INIT_BUFFER_SIZE, MALLOC, and ps_parsing.

Referenced by XML_Parse().

+ Here is the caller graph for this function:

int XMLCALL XML_GetCurrentByteCount ( XML_Parser  parser)

Definition at line 1769 of file xmlparse.cc.

References eventEndPtr, and eventPtr.

XML_Index XMLCALL XML_GetCurrentByteIndex ( XML_Parser  parser)

Definition at line 1761 of file xmlparse.cc.

References eventPtr, parseEndByteIndex, and parseEndPtr.

XML_Size XMLCALL XML_GetCurrentColumnNumber ( XML_Parser  parser)

Definition at line 1800 of file xmlparse.cc.

References encoding, eventPtr, position, and positionPtr.

Referenced by xData_parseEndOfXML(), and xData_parseGetCurrentPosition().

+ Here is the caller graph for this function:

XML_Size XMLCALL XML_GetCurrentLineNumber ( XML_Parser  parser)

Definition at line 1790 of file xmlparse.cc.

References encoding, eventPtr, position, and positionPtr.

Referenced by xData_parseEndOfXML(), and xData_parseGetCurrentPosition().

+ 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.

References errorCode.

Referenced by xData_parseEndOfXML().

+ Here is the caller graph for this function:

const XML_Feature* XMLCALL XML_GetFeatureList ( void  )

Definition at line 1931 of file xmlparse.cc.

References XML_L.

int XMLCALL XML_GetIdAttributeIndex ( XML_Parser  parser)

Definition at line 1208 of file xmlparse.cc.

References idAttIndex.

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

Definition at line 1777 of file xmlparse.cc.

References buffer, bufferEnd, and eventPtr.

void XMLCALL XML_GetParsingStatus ( XML_Parser  parser,
XML_ParsingStatus *  status 
)

Definition at line 1748 of file xmlparse.cc.

References assert.

int XMLCALL XML_GetSpecifiedAttributeCount ( XML_Parser  parser)

Definition at line 1202 of file xmlparse.cc.

References nSpecifiedAtts.

void XMLCALL XML_MemFree ( XML_Parser  parser,
void *  ptr 
)

Definition at line 1828 of file xmlparse.cc.

References FREE.

void* XMLCALL XML_MemMalloc ( XML_Parser  parser,
size_t  size 
)

Definition at line 1816 of file xmlparse.cc.

References MALLOC.

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

Definition at line 1822 of file xmlparse.cc.

References REALLOC.

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

Definition at line 1430 of file xmlparse.cc.

References buffer, bufferEnd, bufferLim, bufferPtr, encoding, errorCode, errorProcessor, eventEndPtr, eventPtr, MALLOC, parseEndByteIndex, parseEndPtr, position, positionPtr, processor, ps_finalBuffer, ps_parsing, REALLOC, s, XML_GetBuffer(), and XML_ParseBuffer().

Referenced by xData_parse(), and xData_parseEndOfXML().

+ 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.

References bufferEnd, bufferPtr, encoding, errorCode, errorProcessor, eventEndPtr, eventPtr, parseEndByteIndex, parseEndPtr, position, positionPtr, processor, ps_finalBuffer, and ps_parsing.

Referenced by XML_Parse().

+ 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.

References XML_ParserCreate_MM().

Referenced by xData_parseInitialize().

+ 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.

References implicitContext, ns, parserCreate(), setContext(), and XML_ParserFree().

Referenced by XML_ParserCreate(), and XML_ParserCreateNS().

+ 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.

References XML_ParserCreate_MM().

+ Here is the call graph for this function:

void XMLCALL XML_ParserFree ( XML_Parser  parser)

Definition at line 1082 of file xmlparse.cc.

References _dtd, atts, tag::bindings, tag::buf, buffer, dataBuf, destroyBindings(), dtdDestroy(), FREE, freeBindingList, freeInternalEntities, freeTagList, groupConnector, inheritedBindings, open_internal_entity::next, nsAtts, openInternalEntities, tag::parent, parentParser, poolDestroy(), tagStack, temp2Pool, tempPool, unknownEncodingData, unknownEncodingMem, and unknownEncodingRelease.

Referenced by parserCreate(), xData_parseEndOfXML(), XML_ExternalEntityParserCreate(), and XML_ParserCreate_MM().

+ Here is the call graph for this function:

+ 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.

References _dtd, tag::bindings, dtdReset(), FREE, freeInternalEntities, freeTagList, implicitContext, inheritedBindings, moveToFreeBindingList(), open_internal_entity::next, openInternalEntities, tag::parent, parentParser, parserInit(), poolClear(), setContext(), tagStack, temp2Pool, tempPool, unknownEncodingData, unknownEncodingMem, and unknownEncodingRelease.

+ Here is the call graph for this function:

enum XML_Status XMLCALL XML_ResumeParser ( XML_Parser  parser)
void XMLCALL XML_SetAttlistDeclHandler ( XML_Parser  parser,
XML_AttlistDeclHandler  attdecl 
)

Definition at line 1395 of file xmlparse.cc.

References attlistDeclHandler.

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

Definition at line 1182 of file xmlparse.cc.

References _dtd, curBase, and poolCopyString().

+ Here is the call graph for this function:

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

Definition at line 1256 of file xmlparse.cc.

References endCdataSectionHandler, and startCdataSectionHandler.

void XMLCALL XML_SetCharacterDataHandler ( XML_Parser  parser,
XML_CharacterDataHandler  handler 
)

Definition at line 1235 of file xmlparse.cc.

References characterDataHandler.

Referenced by xData_parseInitialize().

+ 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.

References commentHandler.

void XMLCALL XML_SetDefaultHandler ( XML_Parser  parser,
XML_DefaultHandler  handler 
)

Definition at line 1277 of file xmlparse.cc.

References defaultExpandInternalEntities, and defaultHandler.

void XMLCALL XML_SetDefaultHandlerExpand ( XML_Parser  parser,
XML_DefaultHandler  handler 
)

Definition at line 1285 of file xmlparse.cc.

References defaultExpandInternalEntities, and defaultHandler.

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

Definition at line 1293 of file xmlparse.cc.

References endDoctypeDeclHandler, and startDoctypeDeclHandler.

void XMLCALL XML_SetElementDeclHandler ( XML_Parser  parser,
XML_ElementDeclHandler  eldecl 
)

Definition at line 1388 of file xmlparse.cc.

References elementDeclHandler.

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

Definition at line 1214 of file xmlparse.cc.

References endElementHandler, and startElementHandler.

Referenced by xData_parseInitialize().

+ 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.

References poolCopyString(), protocolEncodingName, ps_parsing, and tempPool.

+ Here is the call graph for this function:

void XMLCALL XML_SetEndCdataSectionHandler ( XML_Parser  parser,
XML_EndCdataSectionHandler  end 
)

Definition at line 1271 of file xmlparse.cc.

References endCdataSectionHandler.

void XMLCALL XML_SetEndDoctypeDeclHandler ( XML_Parser  parser,
XML_EndDoctypeDeclHandler  end 
)

Definition at line 1308 of file xmlparse.cc.

References endDoctypeDeclHandler.

void XMLCALL XML_SetEndElementHandler ( XML_Parser  parser,
XML_EndElementHandler  end 
)

Definition at line 1229 of file xmlparse.cc.

References endElementHandler.

void XMLCALL XML_SetEndNamespaceDeclHandler ( XML_Parser  parser,
XML_EndNamespaceDeclHandler  end 
)

Definition at line 1343 of file xmlparse.cc.

References endNamespaceDeclHandler.

void XMLCALL XML_SetEntityDeclHandler ( XML_Parser  parser,
XML_EntityDeclHandler  handler 
)

Definition at line 1402 of file xmlparse.cc.

References entityDeclHandler.

void XMLCALL XML_SetExternalEntityRefHandler ( XML_Parser  parser,
XML_ExternalEntityRefHandler  handler 
)

Definition at line 1356 of file xmlparse.cc.

References externalEntityRefHandler.

void XMLCALL XML_SetExternalEntityRefHandlerArg ( XML_Parser  parser,
void *  arg 
)

Definition at line 1363 of file xmlparse.cc.

References externalEntityRefHandlerArg.

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

Definition at line 1328 of file xmlparse.cc.

References endNamespaceDeclHandler, and startNamespaceDeclHandler.

void XMLCALL XML_SetNotationDeclHandler ( XML_Parser  parser,
XML_NotationDeclHandler  handler 
)

Definition at line 1321 of file xmlparse.cc.

References notationDeclHandler.

void XMLCALL XML_SetNotStandaloneHandler ( XML_Parser  parser,
XML_NotStandaloneHandler  handler 
)

Definition at line 1349 of file xmlparse.cc.

References notStandaloneHandler.

int XMLCALL XML_SetParamEntityParsing ( XML_Parser  parser,
enum XML_ParamEntityParsing  peParsing 
)

Definition at line 1415 of file xmlparse.cc.

References ps_parsing.

void XMLCALL XML_SetProcessingInstructionHandler ( XML_Parser  parser,
XML_ProcessingInstructionHandler  handler 
)

Definition at line 1242 of file xmlparse.cc.

References processingInstructionHandler.

void XMLCALL XML_SetReturnNSTriplet ( XML_Parser  parser,
int  do_nst 
)

Definition at line 1164 of file xmlparse.cc.

References ns_triplets, and ps_parsing.

void XMLCALL XML_SetSkippedEntityHandler ( XML_Parser  parser,
XML_SkippedEntityHandler  handler 
)

Definition at line 1372 of file xmlparse.cc.

References skippedEntityHandler.

void XMLCALL XML_SetStartCdataSectionHandler ( XML_Parser  parser,
XML_StartCdataSectionHandler  start 
)

Definition at line 1265 of file xmlparse.cc.

References startCdataSectionHandler.

void XMLCALL XML_SetStartDoctypeDeclHandler ( XML_Parser  parser,
XML_StartDoctypeDeclHandler  start 
)

Definition at line 1302 of file xmlparse.cc.

References startDoctypeDeclHandler.

void XMLCALL XML_SetStartElementHandler ( XML_Parser  parser,
XML_StartElementHandler  start 
)

Definition at line 1223 of file xmlparse.cc.

References startElementHandler.

void XMLCALL XML_SetStartNamespaceDeclHandler ( XML_Parser  parser,
XML_StartNamespaceDeclHandler  start 
)

Definition at line 1337 of file xmlparse.cc.

References startNamespaceDeclHandler.

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

Definition at line 1379 of file xmlparse.cc.

References unknownEncodingHandler, and unknownEncodingHandlerData.

void XMLCALL XML_SetUnparsedEntityDeclHandler ( XML_Parser  parser,
XML_UnparsedEntityDeclHandler  handler 
)

Definition at line 1314 of file xmlparse.cc.

References unparsedEntityDeclHandler.

void XMLCALL XML_SetUserData ( XML_Parser  parser,
void *  p 
)

Definition at line 1173 of file xmlparse.cc.

References handlerArg, and userData.

Referenced by xData_parseInitialize().

+ 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.

References xmlDeclHandler.

enum XML_Status XMLCALL XML_StopParser ( XML_Parser  parser,
XML_Bool  resumable 
)

Definition at line 1680 of file xmlparse.cc.

References errorCode, and ps_parsing.

enum XML_Error XMLCALL XML_UseForeignDTD ( XML_Parser  parser,
XML_Bool  useDTD 
)

Definition at line 1150 of file xmlparse.cc.

References ps_parsing.

void XMLCALL XML_UseParserAsHandlerArg ( XML_Parser  parser)

Definition at line 1144 of file xmlparse.cc.

References handlerArg.

Variable Documentation

Processor cdataSectionProcessor
static

Definition at line 306 of file xmlparse.cc.

Referenced by doContent().

Processor contentProcessor
static

Definition at line 305 of file xmlparse.cc.

Referenced by cdataSectionProcessor(), doProlog(), and internalEntityProcessor().

Processor epilogProcessor
static

Definition at line 314 of file xmlparse.cc.

Referenced by doContent(), and epilogProcessor().

Processor errorProcessor
static

Definition at line 315 of file xmlparse.cc.

Referenced by XML_Parse(), XML_ParseBuffer(), and XML_ResumeParser().

Processor externalEntityContentProcessor
static

Definition at line 319 of file xmlparse.cc.

Referenced by cdataSectionProcessor(), and externalEntityInitProcessor3().

Processor externalEntityInitProcessor
static

Definition at line 316 of file xmlparse.cc.

Referenced by XML_ExternalEntityParserCreate().

Processor externalEntityInitProcessor2
static

Definition at line 317 of file xmlparse.cc.

Referenced by externalEntityInitProcessor().

Processor externalEntityInitProcessor3
static

Definition at line 318 of file xmlparse.cc.

Referenced by externalEntityInitProcessor2().

const XML_Char implicitContext[]
static
Initial value:
= {
ASCII_x, ASCII_m, ASCII_l, ASCII_EQUALS, ASCII_h, ASCII_t, ASCII_t, ASCII_p,
ASCII_COLON, ASCII_SLASH, ASCII_SLASH, ASCII_w, ASCII_w, ASCII_w,
ASCII_PERIOD, ASCII_w, ASCII_3, ASCII_PERIOD, ASCII_o, ASCII_r, ASCII_g,
ASCII_SLASH, ASCII_X, ASCII_M, ASCII_L, ASCII_SLASH, ASCII_1, ASCII_9,
ASCII_9, ASCII_8, ASCII_SLASH, ASCII_n, ASCII_a, ASCII_m, ASCII_e,
ASCII_s, ASCII_p, ASCII_a, ASCII_c, ASCII_e, '\0'
}

Definition at line 671 of file xmlparse.cc.

Referenced by XML_ParserCreate_MM(), and XML_ParserReset().

Processor internalEntityProcessor
static

Definition at line 320 of file xmlparse.cc.

Referenced by processInternalEntity().

Processor prologInitProcessor
static

Definition at line 304 of file xmlparse.cc.

Referenced by parserInit().

Processor prologProcessor
static

Definition at line 303 of file xmlparse.cc.

Referenced by internalEntityProcessor(), and prologInitProcessor().