Strophe 0.11
XMPP client library
Data Structures | Macros | Typedefs | Functions | Variables
xmlparse.c File Reference

Data Structures

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_Parser
 

Macros

#define _GNU_SOURCE   1 /* syscall prototype */
 
#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 EXPAT_SAFE_PTR_DIFF(p, q)   (((p) && (q)) ? ((p) - (q)) : 0)
 
#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(parser, s)   (parser->m_mem.malloc_fcn((s)))
 
#define REALLOC(parser, p, s)   (parser->m_mem.realloc_fcn((p), (s)))
 
#define FREE(parser, p)   (parser->m_mem.free_fcn((p)))
 
#define V1(a, b, c)   XML_L(#a) XML_L(".") XML_L(#b) XML_L(".") XML_L(#c)
 
#define V2(a, b, c)   XML_L("expat_") V1(a, b, c)
 
#define CONTEXT_SEP   XML_T(ASCII_FF)
 
#define INIT_POWER   6
 

Typedefs

typedef char ICHAR
 
typedef const XML_CharKEY
 

Functions

static size_t keylen (KEY s)
 
static void copy_salt_to_sipkey (XML_Parser parser, struct sipkey *key)
 
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, XML_Bool allowClosingDoctype)
 
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 void freeBindings (XML_Parser parser, BINDING *bindings)
 
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_ChargetContext (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_CharpoolAppend (STRING_POOL *pool, const ENCODING *enc, const char *ptr, const char *end)
 
static XML_CharpoolStoreString (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_CharpoolCopyStringN (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_CharcopyString (const XML_Char *s, const XML_Memory_Handling_Suite *memsuite)
 
static unsigned long generate_hash_secret_salt (XML_Parser parser)
 
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)
 
static unsigned long gather_time_entropy (void)
 
static unsigned long ENTROPY_DEBUG (const char *label, unsigned long entropy)
 
static unsigned long get_hash_secret_salt (XML_Parser parser)
 
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 size_t poolBytesToAllocateFor (int blockSize)
 
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

◆ _GNU_SOURCE

#define _GNU_SOURCE   1 /* syscall prototype */

◆ XML_BUILDING_EXPAT

#define XML_BUILDING_EXPAT   1

◆ XML_ENCODE_MAX

#define XML_ENCODE_MAX   XML_UTF8_ENCODE_MAX

◆ XmlConvert

#define XmlConvert   XmlUtf8Convert

◆ XmlGetInternalEncoding

#define XmlGetInternalEncoding   XmlGetUtf8InternalEncoding

◆ XmlGetInternalEncodingNS [1/2]

#define XmlGetInternalEncodingNS   XmlGetUtf8InternalEncodingNS

◆ XmlEncode

#define XmlEncode   XmlUtf8Encode

◆ MUST_CONVERT

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

◆ XmlInitEncodingNS

#define XmlInitEncodingNS   XmlInitEncoding

◆ XmlInitUnknownEncodingNS

#define XmlInitUnknownEncodingNS   XmlInitUnknownEncoding

◆ XmlGetInternalEncodingNS [2/2]

#define XmlGetInternalEncodingNS   XmlGetInternalEncoding

◆ XmlParseXmlDeclNS

#define XmlParseXmlDeclNS   XmlParseXmlDecl

◆ XML_T

#define XML_T (   x)    x

◆ XML_L

#define XML_L (   x)    x

◆ ROUND_UP

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

◆ EXPAT_SAFE_PTR_DIFF

#define EXPAT_SAFE_PTR_DIFF (   p,
 
)    (((p) && (q)) ? ((p) - (q)) : 0)

◆ SECOND_HASH

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

◆ PROBE_STEP

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

◆ INIT_TAG_BUF_SIZE

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

◆ INIT_DATA_BUF_SIZE

#define INIT_DATA_BUF_SIZE   1024

◆ INIT_ATTS_SIZE

#define INIT_ATTS_SIZE   16

◆ INIT_ATTS_VERSION

#define INIT_ATTS_VERSION   0xFFFFFFFF

◆ INIT_BLOCK_SIZE

#define INIT_BLOCK_SIZE   1024

◆ INIT_BUFFER_SIZE

#define INIT_BUFFER_SIZE   1024

◆ EXPAND_SPARE

#define EXPAND_SPARE   24

◆ INIT_SCAFFOLD_ELEMENTS

#define INIT_SCAFFOLD_ELEMENTS   32

◆ poolStart

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

◆ poolEnd

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

◆ poolLength

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

◆ poolChop

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

◆ poolLastChar

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

◆ poolDiscard

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

◆ poolFinish

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

◆ poolAppendChar

#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.c:6651

◆ MALLOC

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

◆ REALLOC

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

◆ FREE

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

◆ V1

#define V1 (   a,
  b,
 
)    XML_L(#a) XML_L(".") XML_L(#b) XML_L(".") XML_L(#c)

◆ V2

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

◆ CONTEXT_SEP

#define CONTEXT_SEP   XML_T(ASCII_FF)

◆ INIT_POWER

#define INIT_POWER   6

Typedef Documentation

◆ ICHAR

typedef char ICHAR

◆ KEY

typedef const XML_Char* KEY

Function Documentation

◆ keylen()

static size_t keylen ( KEY  s)
static

◆ copy_salt_to_sipkey()

static void copy_salt_to_sipkey ( XML_Parser  parser,
struct sipkey key 
)
static

◆ Processor()

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

◆ handleUnknownEncoding()

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

◆ processXmlDecl()

static enum XML_Error processXmlDecl ( XML_Parser  parser,
int  isGeneralTextEntity,
const char *  s,
const char *  next 
)
static

◆ initializeEncoding()

static enum XML_Error initializeEncoding ( XML_Parser  parser)
static

◆ doProlog()

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,
XML_Bool  allowClosingDoctype 
)
static

◆ processInternalEntity()

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

◆ doContent()

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

◆ doCdataSection()

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

◆ freeBindings()

static void freeBindings ( XML_Parser  parser,
BINDING bindings 
)
static

◆ storeAtts()

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

◆ addBinding()

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

◆ defineAttribute()

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

◆ storeAttributeValue()

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

◆ appendAttributeValue()

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

◆ getAttributeId()

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

◆ setElementTypePrefix()

static int setElementTypePrefix ( XML_Parser  parser,
ELEMENT_TYPE elementType 
)
static

◆ storeEntityValue()

static enum XML_Error storeEntityValue ( XML_Parser  parser,
const ENCODING *  enc,
const char *  start,
const char *  end 
)
static

◆ reportProcessingInstruction()

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

◆ reportComment()

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

◆ reportDefault()

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

◆ getContext()

static const XML_Char * getContext ( XML_Parser  parser)
static

◆ setContext()

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

◆ normalizePublicId()

static void FASTCALL normalizePublicId ( XML_Char s)
static

◆ dtdCreate()

static DTD * dtdCreate ( const XML_Memory_Handling_Suite ms)
static

◆ dtdReset()

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

◆ dtdDestroy()

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

◆ dtdCopy()

static int dtdCopy ( XML_Parser  oldParser,
DTD newDtd,
const DTD oldDtd,
const XML_Memory_Handling_Suite ms 
)
static

◆ copyEntityTable()

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

◆ lookup()

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

◆ hashTableInit()

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

◆ hashTableClear()

static void FASTCALL hashTableClear ( HASH_TABLE table)
static

◆ hashTableDestroy()

static void FASTCALL hashTableDestroy ( HASH_TABLE table)
static

◆ hashTableIterInit()

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

◆ hashTableIterNext()

static NAMED *FASTCALL hashTableIterNext ( HASH_TABLE_ITER iter)
static

◆ poolInit()

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

◆ poolClear()

static void FASTCALL poolClear ( STRING_POOL pool)
static

◆ poolDestroy()

static void FASTCALL poolDestroy ( STRING_POOL pool)
static

◆ poolAppend()

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

◆ poolStoreString()

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

◆ poolGrow()

static XML_Bool FASTCALL poolGrow ( STRING_POOL pool)
static

◆ poolCopyString()

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

◆ poolCopyStringN()

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

◆ poolAppendString()

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

◆ nextScaffoldPart()

static int FASTCALL nextScaffoldPart ( XML_Parser  parser)
static

◆ build_model()

static XML_Content * build_model ( XML_Parser  parser)
static

◆ getElementType()

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

◆ copyString()

static XML_Char * copyString ( const XML_Char s,
const XML_Memory_Handling_Suite memsuite 
)
static

◆ generate_hash_secret_salt()

static unsigned long generate_hash_secret_salt ( XML_Parser  parser)
static

◆ startParsing()

static XML_Bool startParsing ( XML_Parser  parser)
static

◆ parserCreate()

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

◆ parserInit()

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

◆ XML_ParserCreate()

XML_Parser XMLCALL XML_ParserCreate ( const XML_Char encodingName)

◆ XML_ParserCreateNS()

XML_Parser XMLCALL XML_ParserCreateNS ( const XML_Char encodingName,
XML_Char  nsSep 
)

◆ gather_time_entropy()

static unsigned long gather_time_entropy ( void  )
static

◆ ENTROPY_DEBUG()

static unsigned long ENTROPY_DEBUG ( const char *  label,
unsigned long  entropy 
)
static

◆ get_hash_secret_salt()

static unsigned long get_hash_secret_salt ( XML_Parser  parser)
static

◆ XML_ParserCreate_MM()

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

◆ moveToFreeBindingList()

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

◆ XML_ParserReset()

XML_Bool XMLCALL XML_ParserReset ( XML_Parser  parser,
const XML_Char encodingName 
)

◆ XML_SetEncoding()

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

◆ XML_ExternalEntityParserCreate()

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

◆ destroyBindings()

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

◆ XML_ParserFree()

void XMLCALL XML_ParserFree ( XML_Parser  parser)

◆ XML_UseParserAsHandlerArg()

void XMLCALL XML_UseParserAsHandlerArg ( XML_Parser  parser)

◆ XML_UseForeignDTD()

enum XML_Error XMLCALL XML_UseForeignDTD ( XML_Parser  parser,
XML_Bool  useDTD 
)

◆ XML_SetReturnNSTriplet()

void XMLCALL XML_SetReturnNSTriplet ( XML_Parser  parser,
int  do_nst 
)

◆ XML_SetUserData()

void XMLCALL XML_SetUserData ( XML_Parser  parser,
void *  p 
)

◆ XML_SetBase()

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

◆ XML_GetBase()

const XML_Char *XMLCALL XML_GetBase ( XML_Parser  parser)

◆ XML_GetSpecifiedAttributeCount()

int XMLCALL XML_GetSpecifiedAttributeCount ( XML_Parser  parser)

◆ XML_GetIdAttributeIndex()

int XMLCALL XML_GetIdAttributeIndex ( XML_Parser  parser)

◆ XML_SetElementHandler()

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

◆ XML_SetStartElementHandler()

void XMLCALL XML_SetStartElementHandler ( XML_Parser  parser,
XML_StartElementHandler  start 
)

◆ XML_SetEndElementHandler()

void XMLCALL XML_SetEndElementHandler ( XML_Parser  parser,
XML_EndElementHandler  end 
)

◆ XML_SetCharacterDataHandler()

void XMLCALL XML_SetCharacterDataHandler ( XML_Parser  parser,
XML_CharacterDataHandler  handler 
)

◆ XML_SetProcessingInstructionHandler()

void XMLCALL XML_SetProcessingInstructionHandler ( XML_Parser  parser,
XML_ProcessingInstructionHandler  handler 
)

◆ XML_SetCommentHandler()

void XMLCALL XML_SetCommentHandler ( XML_Parser  parser,
XML_CommentHandler  handler 
)

◆ XML_SetCdataSectionHandler()

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

◆ XML_SetStartCdataSectionHandler()

void XMLCALL XML_SetStartCdataSectionHandler ( XML_Parser  parser,
XML_StartCdataSectionHandler  start 
)

◆ XML_SetEndCdataSectionHandler()

void XMLCALL XML_SetEndCdataSectionHandler ( XML_Parser  parser,
XML_EndCdataSectionHandler  end 
)

◆ XML_SetDefaultHandler()

void XMLCALL XML_SetDefaultHandler ( XML_Parser  parser,
XML_DefaultHandler  handler 
)

◆ XML_SetDefaultHandlerExpand()

void XMLCALL XML_SetDefaultHandlerExpand ( XML_Parser  parser,
XML_DefaultHandler  handler 
)

◆ XML_SetDoctypeDeclHandler()

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

◆ XML_SetStartDoctypeDeclHandler()

void XMLCALL XML_SetStartDoctypeDeclHandler ( XML_Parser  parser,
XML_StartDoctypeDeclHandler  start 
)

◆ XML_SetEndDoctypeDeclHandler()

void XMLCALL XML_SetEndDoctypeDeclHandler ( XML_Parser  parser,
XML_EndDoctypeDeclHandler  end 
)

◆ XML_SetUnparsedEntityDeclHandler()

void XMLCALL XML_SetUnparsedEntityDeclHandler ( XML_Parser  parser,
XML_UnparsedEntityDeclHandler  handler 
)

◆ XML_SetNotationDeclHandler()

void XMLCALL XML_SetNotationDeclHandler ( XML_Parser  parser,
XML_NotationDeclHandler  handler 
)

◆ XML_SetNamespaceDeclHandler()

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

◆ XML_SetStartNamespaceDeclHandler()

void XMLCALL XML_SetStartNamespaceDeclHandler ( XML_Parser  parser,
XML_StartNamespaceDeclHandler  start 
)

◆ XML_SetEndNamespaceDeclHandler()

void XMLCALL XML_SetEndNamespaceDeclHandler ( XML_Parser  parser,
XML_EndNamespaceDeclHandler  end 
)

◆ XML_SetNotStandaloneHandler()

void XMLCALL XML_SetNotStandaloneHandler ( XML_Parser  parser,
XML_NotStandaloneHandler  handler 
)

◆ XML_SetExternalEntityRefHandler()

void XMLCALL XML_SetExternalEntityRefHandler ( XML_Parser  parser,
XML_ExternalEntityRefHandler  handler 
)

◆ XML_SetExternalEntityRefHandlerArg()

void XMLCALL XML_SetExternalEntityRefHandlerArg ( XML_Parser  parser,
void *  arg 
)

◆ XML_SetSkippedEntityHandler()

void XMLCALL XML_SetSkippedEntityHandler ( XML_Parser  parser,
XML_SkippedEntityHandler  handler 
)

◆ XML_SetUnknownEncodingHandler()

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

◆ XML_SetElementDeclHandler()

void XMLCALL XML_SetElementDeclHandler ( XML_Parser  parser,
XML_ElementDeclHandler  eldecl 
)

◆ XML_SetAttlistDeclHandler()

void XMLCALL XML_SetAttlistDeclHandler ( XML_Parser  parser,
XML_AttlistDeclHandler  attdecl 
)

◆ XML_SetEntityDeclHandler()

void XMLCALL XML_SetEntityDeclHandler ( XML_Parser  parser,
XML_EntityDeclHandler  handler 
)

◆ XML_SetXmlDeclHandler()

void XMLCALL XML_SetXmlDeclHandler ( XML_Parser  parser,
XML_XmlDeclHandler  handler 
)

◆ XML_SetParamEntityParsing()

int XMLCALL XML_SetParamEntityParsing ( XML_Parser  parser,
enum XML_ParamEntityParsing  peParsing 
)

◆ XML_SetHashSalt()

int XMLCALL XML_SetHashSalt ( XML_Parser  parser,
unsigned long  hash_salt 
)

◆ XML_Parse()

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

◆ XML_ParseBuffer()

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

◆ XML_GetBuffer()

void *XMLCALL XML_GetBuffer ( XML_Parser  parser,
int  len 
)

◆ XML_StopParser()

enum XML_Status XMLCALL XML_StopParser ( XML_Parser  parser,
XML_Bool  resumable 
)

◆ XML_ResumeParser()

enum XML_Status XMLCALL XML_ResumeParser ( XML_Parser  parser)

◆ XML_GetParsingStatus()

void XMLCALL XML_GetParsingStatus ( XML_Parser  parser,
XML_ParsingStatus status 
)

◆ XML_GetErrorCode()

enum XML_Error XMLCALL XML_GetErrorCode ( XML_Parser  parser)

◆ XML_GetCurrentByteIndex()

XML_Index XMLCALL XML_GetCurrentByteIndex ( XML_Parser  parser)

◆ XML_GetCurrentByteCount()

int XMLCALL XML_GetCurrentByteCount ( XML_Parser  parser)

◆ XML_GetInputContext()

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

◆ XML_GetCurrentLineNumber()

XML_Size XMLCALL XML_GetCurrentLineNumber ( XML_Parser  parser)

◆ XML_GetCurrentColumnNumber()

XML_Size XMLCALL XML_GetCurrentColumnNumber ( XML_Parser  parser)

◆ XML_FreeContentModel()

void XMLCALL XML_FreeContentModel ( XML_Parser  parser,
XML_Content *  model 
)

◆ XML_MemMalloc()

void *XMLCALL XML_MemMalloc ( XML_Parser  parser,
size_t  size 
)

◆ XML_MemRealloc()

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

◆ XML_MemFree()

void XMLCALL XML_MemFree ( XML_Parser  parser,
void *  ptr 
)

◆ XML_DefaultCurrent()

void XMLCALL XML_DefaultCurrent ( XML_Parser  parser)

◆ XML_ErrorString()

const XML_LChar *XMLCALL XML_ErrorString ( enum XML_Error  code)

◆ XML_ExpatVersion()

const XML_LChar *XMLCALL XML_ExpatVersion ( void  )

◆ XML_ExpatVersionInfo()

XML_Expat_Version XMLCALL XML_ExpatVersionInfo ( void  )

◆ XML_GetFeatureList()

const XML_Feature *XMLCALL XML_GetFeatureList ( void  )

◆ storeRawNames()

static XML_Bool storeRawNames ( XML_Parser  parser)
static

◆ contentProcessor()

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

◆ externalEntityInitProcessor()

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

◆ externalEntityInitProcessor2()

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

◆ externalEntityInitProcessor3()

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

◆ externalEntityContentProcessor()

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

◆ cdataSectionProcessor()

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

◆ prologInitProcessor()

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

◆ prologProcessor()

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

◆ epilogProcessor()

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

◆ internalEntityProcessor()

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

◆ errorProcessor()

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

◆ normalizeLines()

static void FASTCALL normalizeLines ( XML_Char s)
static

◆ keyeq()

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

◆ hash()

static unsigned long FASTCALL hash ( XML_Parser  parser,
KEY  s 
)
static

◆ poolBytesToAllocateFor()

static size_t poolBytesToAllocateFor ( int  blockSize)
static

◆ build_node()

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

Variable Documentation

◆ prologProcessor

Processor prologProcessor
static

◆ prologInitProcessor

Processor prologInitProcessor
static

◆ contentProcessor

Processor contentProcessor
static

◆ cdataSectionProcessor

Processor cdataSectionProcessor
static

◆ epilogProcessor

Processor epilogProcessor
static

◆ errorProcessor

Processor errorProcessor
static

◆ externalEntityInitProcessor

Processor externalEntityInitProcessor
static

◆ externalEntityInitProcessor2

Processor externalEntityInitProcessor2
static

◆ externalEntityInitProcessor3

Processor externalEntityInitProcessor3
static

◆ externalEntityContentProcessor

Processor externalEntityContentProcessor
static

◆ internalEntityProcessor

Processor internalEntityProcessor
static

◆ implicitContext

const XML_Char implicitContext[]
static
Initial value:
'\0'}
#define ASCII_l
Definition: ascii.h:71
#define ASCII_X
Definition: ascii.h:56
#define ASCII_SLASH
Definition: ascii.h:117
#define ASCII_o
Definition: ascii.h:74
#define ASCII_n
Definition: ascii.h:73
#define ASCII_s
Definition: ascii.h:78
#define ASCII_t
Definition: ascii.h:79
#define ASCII_c
Definition: ascii.h:62
#define ASCII_PERIOD
Definition: ascii.h:105
#define ASCII_h
Definition: ascii.h:67
#define ASCII_9
Definition: ascii.h:96
#define ASCII_e
Definition: ascii.h:64
#define ASCII_w
Definition: ascii.h:82
#define ASCII_M
Definition: ascii.h:45
#define ASCII_8
Definition: ascii.h:95
#define ASCII_r
Definition: ascii.h:77
#define ASCII_p
Definition: ascii.h:75
#define ASCII_COLON
Definition: ascii.h:106
#define ASCII_L
Definition: ascii.h:44
#define ASCII_1
Definition: ascii.h:88
#define ASCII_a
Definition: ascii.h:60
#define ASCII_m
Definition: ascii.h:72
#define ASCII_g
Definition: ascii.h:66
#define ASCII_EQUALS
Definition: ascii.h:109
#define ASCII_x
Definition: ascii.h:83
#define ASCII_3
Definition: ascii.h:90