Geant4  10.02.p01
xmlparse.cc File Reference
#include <stddef.h>
#include <string.h>
#include <assert.h>
#include <limits.h>
#include <time.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 attInfo   (parser->m_attInfo)
 
#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 hash_secret_salt   (parser->m_hash_secret_salt)
 
#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 (XML_Parser oldParser, DTD *newDtd, const DTD *oldDtd, const XML_Memory_Handling_Suite *ms)
 
static int copyEntityTable (XML_Parser oldParser, HASH_TABLE *, STRING_POOL *, const HASH_TABLE *)
 
static NAMEDlookup (XML_Parser parser, 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 unsigned long generate_hash_secret_salt (void)
 
static XML_Bool startParsing (XML_Parser parser)
 
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)
 
int XMLCALL XML_SetHashSalt (XML_Parser parser, unsigned long hash_salt)
 
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 (XML_Parser parser, 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 attInfo   (parser->m_attInfo)

Definition at line 660 of file xmlparse.cc.

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

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

Definition at line 653 of file xmlparse.cc.

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

#define attsSize   (parser->m_attsSize)

Definition at line 654 of file xmlparse.cc.

Referenced by parserCreate(), and storeAtts().

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

Definition at line 633 of file xmlparse.cc.

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

#define bufferPtr   (parser->m_bufferPtr)

Definition at line 629 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 119 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 5496 of file xmlparse.cc.

Referenced by getContext(), and setContext().

#define curBase   (parser->m_curBase)

Definition at line 637 of file xmlparse.cc.

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

#define dataBuf   (parser->m_dataBuf)

Definition at line 634 of file xmlparse.cc.

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

#define dataBufEnd   (parser->m_dataBufEnd)

Definition at line 635 of file xmlparse.cc.

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

#define declAttributeId   (parser->m_declAttributeId)

Definition at line 646 of file xmlparse.cc.

Referenced by doProlog(), and parserInit().

#define declAttributeIsCdata   (parser->m_declAttributeIsCdata)

Definition at line 647 of file xmlparse.cc.

Referenced by doProlog(), and parserInit().

#define declAttributeIsId   (parser->m_declAttributeIsId)

Definition at line 648 of file xmlparse.cc.

Referenced by doProlog(), and parserInit().

#define declAttributeType   (parser->m_declAttributeType)

Definition at line 642 of file xmlparse.cc.

Referenced by doProlog(), and parserInit().

#define declElementType   (parser->m_declElementType)

Definition at line 645 of file xmlparse.cc.

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

#define declEntity   (parser->m_declEntity)

Definition at line 638 of file xmlparse.cc.

Referenced by doProlog(), and parserInit().

#define declNotationName   (parser->m_declNotationName)

Definition at line 643 of file xmlparse.cc.

Referenced by doProlog(), and parserInit().

#define declNotationPublicId   (parser->m_declNotationPublicId)

Definition at line 644 of file xmlparse.cc.

Referenced by doProlog(), and parserInit().

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

Definition at line 639 of file xmlparse.cc.

Referenced by doProlog(), and parserInit().

#define doctypePubid   (parser->m_doctypePubid)

Definition at line 641 of file xmlparse.cc.

Referenced by doProlog(), and parserInit().

#define doctypeSysid   (parser->m_doctypeSysid)

Definition at line 640 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 148 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 649 of file xmlparse.cc.

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

#define groupConnector   (parser->m_groupConnector)

Definition at line 663 of file xmlparse.cc.

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

#define groupSize   (parser->m_groupSize)

Definition at line 664 of file xmlparse.cc.

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

#define hash_secret_salt   (parser->m_hash_secret_salt)
#define idAttIndex   (parser->m_idAttIndex)

Definition at line 656 of file xmlparse.cc.

Referenced by storeAtts(), and XML_GetIdAttributeIndex().

#define inheritedBindings   (parser->m_inheritedBindings)

Definition at line 651 of file xmlparse.cc.

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

#define INIT_ATTS_SIZE   16

Definition at line 143 of file xmlparse.cc.

Referenced by parserCreate(), and storeAtts().

#define INIT_ATTS_VERSION   0xFFFFFFFF

Definition at line 144 of file xmlparse.cc.

Referenced by storeAtts().

#define INIT_BLOCK_SIZE   1024

Definition at line 145 of file xmlparse.cc.

Referenced by poolGrow().

#define INIT_BUFFER_SIZE   1024

Definition at line 146 of file xmlparse.cc.

Referenced by XML_GetBuffer().

#define INIT_DATA_BUF_SIZE   1024

Definition at line 142 of file xmlparse.cc.

Referenced by parserCreate().

#define INIT_POWER   6

Definition at line 5955 of file xmlparse.cc.

Referenced by lookup().

#define INIT_SCAFFOLD_ELEMENTS   32

Definition at line 221 of file xmlparse.cc.

Referenced by nextScaffoldPart().

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

Definition at line 141 of file xmlparse.cc.

Referenced by doContent().

#define initEncoding   (parser->m_initEncoding)

Definition at line 606 of file xmlparse.cc.

Referenced by initializeEncoding(), and parserInit().

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

Definition at line 597 of file xmlparse.cc.

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

Definition at line 49 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 614 of file xmlparse.cc.

Referenced by G4RadioactiveDecay::AddDecayRateTable(), G4AntiNeutronAnnihilationAtRest::AtRestGetPhysicalInteractionLength(), G4VRestContinuousProcess::AtRestGetPhysicalInteractionLength(), G4VRestProcess::AtRestGetPhysicalInteractionLength(), G4VITRestProcess::AtRestGetPhysicalInteractionLength(), G4VRestDiscreteProcess::AtRestGetPhysicalInteractionLength(), G4VITRestDiscreteProcess::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(), G4AntiOmegaMinus::Definition(), G4XicPlus::Definition(), G4XicZero::Definition(), G4XiZero::Definition(), G4AntiBsMesonZero::Definition(), G4AntiDMesonZero::Definition(), G4AntiSigmacPlus::Definition(), G4AntiSigmacPlusPlus::Definition(), G4BMesonMinus::Definition(), G4BMesonPlus::Definition(), G4AntiSigmacZero::Definition(), G4BMesonZero::Definition(), G4BsMesonZero::Definition(), G4AntiSigmaMinus::Definition(), G4DMesonMinus::Definition(), G4DMesonPlus::Definition(), G4AntiSigmaPlus::Definition(), G4MuonMinus::Definition(), G4AntiXiZero::Definition(), G4PionZero::Definition(), G4DMesonZero::Definition(), G4PionMinus::Definition(), G4DsMesonMinus::Definition(), G4DsMesonPlus::Definition(), G4Eta::Definition(), G4AntiSigmaZero::Definition(), G4JPsi::Definition(), G4KaonMinus::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(), G4SigmaMinus::Definition(), G4AntiLambda::Definition(), G4OmegacZero::Definition(), G4OmegaMinus::Definition(), G4AntiOmegacZero::Definition(), G4AntiLambdacPlus::Definition(), G4SigmacPlus::Definition(), G4SigmacPlusPlus::Definition(), G4AntiBMesonZero::Definition(), G4SigmaZero::Definition(), G4SigmacZero::Definition(), G4AntiOmegabMinus::Definition(), G4SigmaPlus::Definition(), G4XiMinus::Definition(), G4AntiSigmabMinus::Definition(), G4AntiSigmabPlus::Definition(), G4AntiSigmabZero::Definition(), G4XibMinus::Definition(), G4AntiXibMinus::Definition(), G4Etac::Definition(), G4AntiXibZero::Definition(), G4SigmabMinus::Definition(), G4SigmabPlus::Definition(), G4XibZero::Definition(), G4SigmabZero::Definition(), G4Lambdab::Definition(), G4AntiLambdab::Definition(), doContent(), G4GEMProbability::Dump(), G4IsotopeProperty::DumpInfo(), G4ParticleChangeForDecay::DumpInfo(), G4ParticleChange::DumpInfo(), G4FastStep::DumpInfo(), G4ParticleDefinition::DumpTable(), RE01EventAction::EndOfEventAction(), G4ParticleGunMessenger::G4ParticleGunMessenger(), G4VGammaDeexcitation::GenerateGamma(), G4HtmlPPReporter::GenerateIndex(), G4NuclideTable::GenerateNuclide(), MedicalBeam::GeneratePrimaries(), getAttributeId(), 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(), G4NuclearLevel::PrintLevels(), G4MCTSimParticle::PrintSingle(), processXmlDecl(), G4NeutronKiller::SetTimeLimit(), startParsing(), G4BinaryCascade::StepParticlesOut(), storeAtts(), F05SteppingAction::UserSteppingAction(), G4SteppingVerbose::VerboseTrack(), G4ITSteppingVerbose::VerboseTrack(), XAluminumElectrodeSensitivity::WriteHitInfo(), DMXEventAction::writeScintHitsToFile(), and XML_ExternalEntityParserCreate().

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

Definition at line 657 of file xmlparse.cc.

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

#define nsAttsPower   (parser->m_nsAttsPower)

Definition at line 659 of file xmlparse.cc.

Referenced by parserCreate(), and storeAtts().

#define nsAttsVersion   (parser->m_nsAttsVersion)

Definition at line 658 of file xmlparse.cc.

Referenced by parserCreate(), and storeAtts().

#define nSpecifiedAtts   (parser->m_nSpecifiedAtts)

Definition at line 655 of file xmlparse.cc.

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

#define parseEndByteIndex   (parser->m_parseEndByteIndex)
#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:6216

Definition at line 460 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 456 of file xmlparse.cc.

Referenced by storeAttributeValue().

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

Definition at line 454 of file xmlparse.cc.

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

Definition at line 457 of file xmlparse.cc.

Referenced by appendAttributeValue(), and storeAttributeValue().

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

Definition at line 455 of file xmlparse.cc.

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

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

Definition at line 453 of file xmlparse.cc.

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

#define position   (parser->m_position)

Definition at line 622 of file xmlparse.cc.

Referenced by G4ArrayOps::Add(), G4MoleculeGun::AddMolecule(), G4MoleculeGun::AddNMolecules(), G4eLowEnergyLoss::AlongStepDoIt(), G4OpenInventorXtExaminerViewer::animateRefParticleCB(), G4AntiNeutronAnnihilationAtRest::AtRestDoIt(), G4GDMLReadSolids::BooleanRead(), G4SafetyHelper::CheckNextStep(), G4ITSafetyHelper::CheckNextStep(), G4AdjointPrimaryGenerator::ComputeAccumulatedDepthVectorAlongBackRay(), G4SafetyHelper::ComputeSafety(), G4ITSafetyHelper::ComputeSafety(), G4MultiNavigator::ComputeSafety(), G4PathFinder::ComputeSafety(), G4ITMultiNavigator::ComputeSafety(), G4ITPathFinder::ComputeSafety(), G4GDMLParameterisation::ComputeTransformation(), RE02NestedPhantomParameterisation::ComputeTransformation(), B3DetectorConstruction::Construct(), FFDetectorConstruction::Construct(), G02DetectorConstruction::ConstructAssembly(), G4ArrayOps::Copy(), G3Division::CreatePVReplica(), G4KineticTrack::Decay(), G4LowEnergyIonisation::DeexciteAtom(), G4INCL::CoulombNonRelativistic::distortOut(), G4ArrayOps::Divide(), Par01PiModel::DoIt(), G4DNAIndirectHit::G4DNAIndirectHit(), G4Poisson(), GammaRayTelPrimaryGeneratorAction::GammaRayTelPrimaryGeneratorAction(), ExN02PrimaryGeneratorAction::GeneratePrimaries(), ExP01PrimaryGeneratorAction::GeneratePrimaries(), RE02PrimaryGeneratorAction::GeneratePrimaries(), XrayFluoPlanePrimaryGeneratorAction::GeneratePrimaries(), XrayFluoPrimaryGeneratorAction::GeneratePrimaries(), G4PAIxSection::GetCerenkovEnergyTransfer(), F03FieldSetup::GetConstantFieldValue(), XrayFluoDetectorConstruction::GetDetectorPosition(), G4PAIxSection::GetEnergyTransfer(), G4PAIxSection::GetMMEnergyTransfer(), G4Pythia6Decayer::GetParticlePosition(), G4PAIxSection::GetPlasmonEnergyTransfer(), G4VXTRenergyLoss::GetRandomAngle(), G4SynchrotronRadiationInMat::GetRandomEnergySR(), G4PAIxSection::GetResonanceEnergyTransfer(), G4PAIxSection::GetRutherfordEnergyTransfer(), G4PAIySection::GetStepCerenkovLoss(), G4PAIySection::GetStepEnergyLoss(), G4PAIySection::GetStepPlasmonLoss(), G4MesonAbsorption::GetTimeToAbsorption(), G4Scatterer::GetTimeToInteraction(), G4VXTRenergyLoss::GetXTRrandomEnergy(), HepMCG4Interface::HepMC2G4(), G4PathFinder::Locate(), G4ITPathFinder::Locate(), G4MultiNavigator::LocateGlobalPointWithinVolume(), G4ITMultiNavigator::LocateGlobalPointWithinVolume(), G4ArrayOps::Multiply(), G4GDMLReadParamvol::ParametersRead(), parserInit(), G4INCL::ParticleEntryChannel::particleEnters(), G4INCL::TransmissionChannel::particleLeaves(), G4GDMLReadStructure::PhysvolRead(), FFDetectorConstruction::PlaceFuelPlate(), DetectorConstruction::PlaceWithReflections(), G4GDMLReadDefine::PositionRead(), G4VXTRenergyLoss::PostStepDoIt(), G4PathFinder::PrepareNewTrack(), G4ITPathFinder::PrepareNewTrack(), G4MCTSimVertex::Print(), G4PSCylinderSurfaceFlux::ProcessHits(), CexmcTrackPoints::ProcessHits(), G4FastStep::ProposePrimaryTrackFinalPosition(), RE02PrimaryGeneratorAction::RE02PrimaryGeneratorAction(), CexmcSetup::ReadTransforms(), G4GDMLReadSolids::ReflectedSolidRead(), G4PathFinder::ReLocate(), G4ITPathFinder::ReLocate(), G4GDMLReadStructure::ReplicaRead(), G4MultiLevelLocator::ReportFieldValue(), CexmcPhysicsList< BasePhysics, StudiedPhysics, ProductionModel >::ResampleTrackLengthInTarget(), G4PAIPhotData::SampleAlongStepPhotonTransfer(), G4PAIPhotData::SampleAlongStepPlasmonTransfer(), G4PAIModelData::SampleAlongStepTransfer(), G4PAIPhotData::SampleAlongStepTransfer(), G4hhElastic::SampleBisectionalT(), G4hhElastic::SampleInvariantT(), G4INCL::ParticleSampler::sampleOneParticleWithoutRPCorrelation(), G4PAIPhotData::SamplePostStepPhotonTransfer(), G4PAIPhotData::SamplePostStepPlasmonTransfer(), G4PAIModelData::SamplePostStepTransfer(), G4PAIPhotData::SamplePostStepTransfer(), G4NuclNuclDiffuseElastic::SampleTableThetaCMS(), G4DiffuseElastic::SampleTableThetaCMS(), G4hhElastic::SampleTest(), G4ArrayOps::Set(), PrimaryGeneratorAction::SetDefaultKinematic(), F01FieldSetup::SetFieldValue(), CexmcParticleGun::SetOrigPosition(), G4INCL::Particle::setPosition(), ExExChParticleUserInfo::SetPositionChanneled(), ExExChParticleUserInfo::SetPositionChanneledInitial(), G4MPIscorerMerger::SetupOutputBuffer(), G4VUserMPIrunMerger::SetupOutputBuffer(), G4INCL::StandardPropagationModel::shootComposite(), G4INCL::StandardPropagationModel::shootParticle(), G4CoupledTransportation::StartTracking(), G4ArrayOps::Subtract(), EventAction::WriteFibers(), XML_GetCurrentColumnNumber(), XML_GetCurrentLineNumber(), XML_Parse(), XML_ParseBuffer(), XML_ResumeParser(), XrayFluoMercuryPrimaryGeneratorAction::XrayFluoMercuryPrimaryGeneratorAction(), XrayFluoPlanePrimaryGeneratorAction::XrayFluoPlanePrimaryGeneratorAction(), and XrayFluoPrimaryGeneratorAction::XrayFluoPrimaryGeneratorAction().

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

Definition at line 133 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 82 of file xmlparse.cc.

Referenced by storeRawNames().

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

Definition at line 131 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 609 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 610 of file xmlparse.cc.

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

#define unknownEncodingMem   (parser->m_unknownEncodingMem)

Definition at line 608 of file xmlparse.cc.

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

#define unknownEncodingRelease   (parser->m_unknownEncodingRelease)

Definition at line 612 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 17 of file xmlparse.cc.

#define XML_ENCODE_MAX   XML_UTF8_ENCODE_MAX

Definition at line 44 of file xmlparse.cc.

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

#define XML_L (   x)    x

Definition at line 77 of file xmlparse.cc.

Referenced by XML_ErrorString(), and XML_GetFeatureList().

#define XmlConvert   XmlUtf8Convert

Definition at line 45 of file xmlparse.cc.

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

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

Definition at line 48 of file xmlparse.cc.

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

#define XmlGetInternalEncoding   XmlGetUtf8InternalEncoding

Definition at line 46 of file xmlparse.cc.

Referenced by parserCreate().

#define XmlGetInternalEncodingNS   XmlGetUtf8InternalEncodingNS

Definition at line 59 of file xmlparse.cc.

Referenced by parserCreate().

#define XmlGetInternalEncodingNS   XmlGetInternalEncoding

Definition at line 59 of file xmlparse.cc.

#define XmlInitEncodingNS   XmlInitEncoding

Definition at line 56 of file xmlparse.cc.

Referenced by initializeEncoding().

#define XmlInitUnknownEncodingNS   XmlInitUnknownEncoding

Definition at line 57 of file xmlparse.cc.

Referenced by handleUnknownEncoding().

#define XmlParseXmlDeclNS   XmlParseXmlDecl

Definition at line 60 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 50 of file xmlparse.cc.

typedef const XML_Char* KEY

Definition at line 97 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 3056 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 4944 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 6366 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 6328 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 3173 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 2106 of file xmlparse.cc.

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

+ Here is the call graph for this function:

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

Definition at line 5889 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 5362 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 1123 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 3199 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 2237 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 3750 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 ( XML_Parser  oldParser,
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 5651 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 5726 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 5684 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 4734 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 4919 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 2222 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 2121 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 2134 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 2174 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 unsigned long generate_hash_secret_salt ( void  )
static

Definition at line 700 of file xmlparse.cc.

Referenced by startParsing().

+ Here is the caller graph for this function:

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

Definition at line 5436 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 5499 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 6387 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 3514 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 ( XML_Parser  parser,
KEY  s 
)
static

Definition at line 5967 of file xmlparse.cc.

References CHAR_HASH, and hash_secret_salt.

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

+ Here is the caller graph for this function:

static void FASTCALL hashTableClear ( HASH_TABLE table)
static

Definition at line 6055 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 6066 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 6075 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 6085 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 6092 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 3396 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 4858 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 5958 of file xmlparse.cc.

Referenced by lookup().

+ Here is the caller graph for this function:

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

Definition at line 5976 of file xmlparse.cc.

References hash(), INIT_POWER, keyeq(), mask, 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 920 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 6280 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 5260 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 5629 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 731 of file xmlparse.cc.

References _dtd, attInfo, atts, attsSize, buffer, bufferLim, dataBuf, dataBufEnd, dtdCreate(), free, FREE, freeBindingList, freeInternalEntities, freeTagList, groupConnector, groupSize, INIT_ATTS_SIZE, INIT_DATA_BUF_SIZE, internalEncoding, MALLOC, namespaceSeparator, ns, ns_triplets, nsAtts, nsAttsPower, nsAttsVersion, parser(), parserInit(), poolInit(), protocolEncodingName, 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 846 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, hash_secret_salt, inheritedBindings, initEncoding, notationDeclHandler, notStandaloneHandler, nSpecifiedAtts, openInternalEntities, parentParser, parseEndByteIndex, parseEndPtr, parser(), 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 6151 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 6193 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 6114 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 6167 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 6179 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 6134 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 6216 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 6103 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 6204 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 4801 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 3425 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 3553 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 3738 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 5312 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 5334 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 5283 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 5568 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 startParsing(), and XML_ExternalEntityParserCreate().

+ 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 5406 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 XML_Bool startParsing ( XML_Parser  parser)
static

Definition at line 708 of file xmlparse.cc.

References generate_hash_secret_salt(), hash_secret_salt, implicitContext, ns, and setContext().

Referenced by XML_Parse(), and XML_ParseBuffer().

+ 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 4928 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 5094 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 2061 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 1920 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 1934 of file xmlparse.cc.

References XML_L.

Referenced by xDataXML_endXMLParsing().

+ Here is the caller graph for this function:

const XML_LChar* XMLCALL XML_ExpatVersion ( void  )

Definition at line 1985 of file xmlparse.cc.

References V2.

XML_Expat_Version XMLCALL XML_ExpatVersionInfo ( void  )

Definition at line 2005 of file xmlparse.cc.

void XMLCALL XML_FreeContentModel ( XML_Parser  parser,
XML_Content *  model 
)

Definition at line 1896 of file xmlparse.cc.

References FREE.

const XML_Char* XMLCALL XML_GetBase ( XML_Parser  parser)

Definition at line 1253 of file xmlparse.cc.

References curBase.

void* XMLCALL XML_GetBuffer ( XML_Parser  parser,
int  len 
)

Definition at line 1685 of file xmlparse.cc.

References buffer, bufferEnd, bufferLim, bufferPtr, errorCode, eventEndPtr, eventPtr, FREE, INIT_BUFFER_SIZE, MALLOC, positionPtr, 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 1855 of file xmlparse.cc.

References eventEndPtr, and eventPtr.

XML_Index XMLCALL XML_GetCurrentByteIndex ( XML_Parser  parser)

Definition at line 1847 of file xmlparse.cc.

References eventPtr, parseEndByteIndex, and parseEndPtr.

XML_Size XMLCALL XML_GetCurrentColumnNumber ( XML_Parser  parser)

Definition at line 1886 of file xmlparse.cc.

References encoding, eventPtr, position, and positionPtr.

Referenced by xDataXML_endXMLParsing(), and xDataXML_parseGetCurrentPosition().

+ Here is the caller graph for this function:

XML_Size XMLCALL XML_GetCurrentLineNumber ( XML_Parser  parser)

Definition at line 1876 of file xmlparse.cc.

References encoding, eventPtr, position, and positionPtr.

Referenced by xDataXML_endXMLParsing(), and xDataXML_parseGetCurrentPosition().

+ Here is the caller graph for this function:

enum XML_Error XMLCALL XML_GetErrorCode ( XML_Parser  parser)

Definition at line 1841 of file xmlparse.cc.

References errorCode.

Referenced by xDataXML_endXMLParsing().

+ Here is the caller graph for this function:

const XML_Feature* XMLCALL XML_GetFeatureList ( void  )

Definition at line 2017 of file xmlparse.cc.

References XML_L.

int XMLCALL XML_GetIdAttributeIndex ( XML_Parser  parser)

Definition at line 1265 of file xmlparse.cc.

References idAttIndex.

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

Definition at line 1863 of file xmlparse.cc.

References buffer, bufferEnd, and eventPtr.

void XMLCALL XML_GetParsingStatus ( XML_Parser  parser,
XML_ParsingStatus *  status 
)

Definition at line 1834 of file xmlparse.cc.

int XMLCALL XML_GetSpecifiedAttributeCount ( XML_Parser  parser)

Definition at line 1259 of file xmlparse.cc.

References nSpecifiedAtts.

void XMLCALL XML_MemFree ( XML_Parser  parser,
void *  ptr 
)

Definition at line 1914 of file xmlparse.cc.

References FREE.

void* XMLCALL XML_MemMalloc ( XML_Parser  parser,
size_t  size 
)

Definition at line 1902 of file xmlparse.cc.

References MALLOC.

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

Definition at line 1908 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 1506 of file xmlparse.cc.

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

Referenced by xDataXML_endXMLParsing(), and xDataXML_parse().

+ 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 1629 of file xmlparse.cc.

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

Referenced by XML_Parse().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

XML_Parser XMLCALL XML_ParserCreate ( const XML_Char *  encodingName)

Definition at line 677 of file xmlparse.cc.

References XML_ParserCreate_MM().

Referenced by xDataXML_initializeDoc().

+ 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 723 of file xmlparse.cc.

References parserCreate().

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 683 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 1136 of file xmlparse.cc.

References _dtd, attInfo, 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(), xDataXML_endXMLParsing(), and XML_ExternalEntityParserCreate().

+ 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 931 of file xmlparse.cc.

References _dtd, tag::bindings, dtdReset(), FREE, freeInternalEntities, freeTagList, inheritedBindings, moveToFreeBindingList(), open_internal_entity::next, openInternalEntities, tag::parent, parentParser, parserInit(), poolClear(), 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 1460 of file xmlparse.cc.

References attlistDeclHandler.

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

Definition at line 1239 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 1321 of file xmlparse.cc.

References endCdataSectionHandler, and startCdataSectionHandler.

void XMLCALL XML_SetCharacterDataHandler ( XML_Parser  parser,
XML_CharacterDataHandler  handler 
)

Definition at line 1300 of file xmlparse.cc.

References characterDataHandler.

Referenced by xDataXML_initializeDoc().

+ Here is the caller graph for this function:

void XMLCALL XML_SetCommentHandler ( XML_Parser  parser,
XML_CommentHandler  handler 
)

Definition at line 1314 of file xmlparse.cc.

References commentHandler.

void XMLCALL XML_SetDefaultHandler ( XML_Parser  parser,
XML_DefaultHandler  handler 
)

Definition at line 1342 of file xmlparse.cc.

References defaultExpandInternalEntities, and defaultHandler.

void XMLCALL XML_SetDefaultHandlerExpand ( XML_Parser  parser,
XML_DefaultHandler  handler 
)

Definition at line 1350 of file xmlparse.cc.

References defaultExpandInternalEntities, and defaultHandler.

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

Definition at line 1358 of file xmlparse.cc.

References endDoctypeDeclHandler, and startDoctypeDeclHandler.

void XMLCALL XML_SetElementDeclHandler ( XML_Parser  parser,
XML_ElementDeclHandler  eldecl 
)

Definition at line 1453 of file xmlparse.cc.

References elementDeclHandler.

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

Definition at line 1279 of file xmlparse.cc.

References endElementHandler, and startElementHandler.

Referenced by xDataXML_initializeDoc().

+ Here is the caller graph for this function:

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

Definition at line 967 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 1336 of file xmlparse.cc.

References endCdataSectionHandler.

void XMLCALL XML_SetEndDoctypeDeclHandler ( XML_Parser  parser,
XML_EndDoctypeDeclHandler  end 
)

Definition at line 1373 of file xmlparse.cc.

References endDoctypeDeclHandler.

void XMLCALL XML_SetEndElementHandler ( XML_Parser  parser,
XML_EndElementHandler  end 
)

Definition at line 1294 of file xmlparse.cc.

References endElementHandler.

void XMLCALL XML_SetEndNamespaceDeclHandler ( XML_Parser  parser,
XML_EndNamespaceDeclHandler  end 
)

Definition at line 1408 of file xmlparse.cc.

References endNamespaceDeclHandler.

void XMLCALL XML_SetEntityDeclHandler ( XML_Parser  parser,
XML_EntityDeclHandler  handler 
)

Definition at line 1467 of file xmlparse.cc.

References entityDeclHandler.

void XMLCALL XML_SetExternalEntityRefHandler ( XML_Parser  parser,
XML_ExternalEntityRefHandler  handler 
)

Definition at line 1421 of file xmlparse.cc.

References externalEntityRefHandler.

void XMLCALL XML_SetExternalEntityRefHandlerArg ( XML_Parser  parser,
void *  arg 
)

Definition at line 1428 of file xmlparse.cc.

References externalEntityRefHandlerArg, and parser().

+ Here is the call graph for this function:

int XMLCALL XML_SetHashSalt ( XML_Parser  parser,
unsigned long  hash_salt 
)

Definition at line 1495 of file xmlparse.cc.

References hash_secret_salt, and ps_parsing.

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

Definition at line 1393 of file xmlparse.cc.

References endNamespaceDeclHandler, and startNamespaceDeclHandler.

void XMLCALL XML_SetNotationDeclHandler ( XML_Parser  parser,
XML_NotationDeclHandler  handler 
)

Definition at line 1386 of file xmlparse.cc.

References notationDeclHandler.

void XMLCALL XML_SetNotStandaloneHandler ( XML_Parser  parser,
XML_NotStandaloneHandler  handler 
)

Definition at line 1414 of file xmlparse.cc.

References notStandaloneHandler.

int XMLCALL XML_SetParamEntityParsing ( XML_Parser  parser,
enum XML_ParamEntityParsing  peParsing 
)

Definition at line 1480 of file xmlparse.cc.

References ps_parsing.

void XMLCALL XML_SetProcessingInstructionHandler ( XML_Parser  parser,
XML_ProcessingInstructionHandler  handler 
)

Definition at line 1307 of file xmlparse.cc.

References processingInstructionHandler.

void XMLCALL XML_SetReturnNSTriplet ( XML_Parser  parser,
int  do_nst 
)

Definition at line 1221 of file xmlparse.cc.

References ns_triplets, and ps_parsing.

void XMLCALL XML_SetSkippedEntityHandler ( XML_Parser  parser,
XML_SkippedEntityHandler  handler 
)

Definition at line 1437 of file xmlparse.cc.

References skippedEntityHandler.

void XMLCALL XML_SetStartCdataSectionHandler ( XML_Parser  parser,
XML_StartCdataSectionHandler  start 
)

Definition at line 1330 of file xmlparse.cc.

References startCdataSectionHandler.

void XMLCALL XML_SetStartDoctypeDeclHandler ( XML_Parser  parser,
XML_StartDoctypeDeclHandler  start 
)

Definition at line 1367 of file xmlparse.cc.

References startDoctypeDeclHandler.

void XMLCALL XML_SetStartElementHandler ( XML_Parser  parser,
XML_StartElementHandler  start 
)

Definition at line 1288 of file xmlparse.cc.

References startElementHandler.

void XMLCALL XML_SetStartNamespaceDeclHandler ( XML_Parser  parser,
XML_StartNamespaceDeclHandler  start 
)

Definition at line 1402 of file xmlparse.cc.

References startNamespaceDeclHandler.

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

Definition at line 1444 of file xmlparse.cc.

References unknownEncodingHandler, and unknownEncodingHandlerData.

void XMLCALL XML_SetUnparsedEntityDeclHandler ( XML_Parser  parser,
XML_UnparsedEntityDeclHandler  handler 
)

Definition at line 1379 of file xmlparse.cc.

References unparsedEntityDeclHandler.

void XMLCALL XML_SetUserData ( XML_Parser  parser,
void *  p 
)

Definition at line 1230 of file xmlparse.cc.

References handlerArg, and userData.

Referenced by xDataXML_initializeDoc().

+ Here is the caller graph for this function:

void XMLCALL XML_SetXmlDeclHandler ( XML_Parser  parser,
XML_XmlDeclHandler  handler 
)

Definition at line 1474 of file xmlparse.cc.

References xmlDeclHandler.

enum XML_Status XMLCALL XML_StopParser ( XML_Parser  parser,
XML_Bool  resumable 
)

Definition at line 1766 of file xmlparse.cc.

References errorCode, and ps_parsing.

enum XML_Error XMLCALL XML_UseForeignDTD ( XML_Parser  parser,
XML_Bool  useDTD 
)

Definition at line 1207 of file xmlparse.cc.

References ps_parsing.

void XMLCALL XML_UseParserAsHandlerArg ( XML_Parser  parser)

Definition at line 1201 of file xmlparse.cc.

References handlerArg, and parser().

+ Here is the call graph for this function:

Variable Documentation

Processor cdataSectionProcessor
static

Definition at line 314 of file xmlparse.cc.

Referenced by doContent().

Processor contentProcessor
static

Definition at line 313 of file xmlparse.cc.

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

Processor epilogProcessor
static

Definition at line 322 of file xmlparse.cc.

Referenced by doContent(), and epilogProcessor().

Processor errorProcessor
static

Definition at line 323 of file xmlparse.cc.

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

Processor externalEntityContentProcessor
static

Definition at line 327 of file xmlparse.cc.

Referenced by cdataSectionProcessor(), and externalEntityInitProcessor3().

Processor externalEntityInitProcessor
static

Definition at line 324 of file xmlparse.cc.

Referenced by XML_ExternalEntityParserCreate().

Processor externalEntityInitProcessor2
static

Definition at line 325 of file xmlparse.cc.

Referenced by externalEntityInitProcessor().

Processor externalEntityInitProcessor3
static

Definition at line 326 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 690 of file xmlparse.cc.

Referenced by startParsing().

Processor internalEntityProcessor
static

Definition at line 328 of file xmlparse.cc.

Referenced by processInternalEntity().

Processor prologInitProcessor
static

Definition at line 312 of file xmlparse.cc.

Referenced by parserInit().

Processor prologProcessor
static

Definition at line 311 of file xmlparse.cc.

Referenced by internalEntityProcessor(), and prologInitProcessor().