19 #elif BYTEORDER == 4321
23 return (*(
const char *)&n
29 static const ENCODING *
const NS(encodings)[] = {
40 NS(initScanProlog)(
const ENCODING *enc,
const char *ptr,
const char *end,
41 const char **nextTokPtr)
48 NS(initScanContent)(
const ENCODING *enc,
const char *ptr,
const char *end,
49 const char **nextTokPtr)
67 *encPtr = &(p->initEnc);
72 NS(findEncoding)(
const ENCODING *enc,
const char *ptr,
const char *end)
74 #define ENCODING_MAX 128
75 char buf[ENCODING_MAX];
87 return NS(encodings)[i];
96 const char **versionPtr,
97 const char **versionEndPtr,
98 const char **encodingName,
int XmlParseXmlDecl(int isGeneralTextEntity, const ENCODING *enc, const char *ptr, const char *end, const char **badPtr, const char **versionPtr, const char **versionEndPtr, const char **encodingNamePtr, const ENCODING **namedEncodingPtr, int *standalonePtr)
static struct normal_encoding internal_utf8_encoding
#define SET_INIT_ENC_INDEX(enc, i)
static void PTRCALL initUpdatePosition(const ENCODING *enc, const char *ptr, const char *end, POSITION *pos)
const XML_Char const XML_Char * encoding
#define XmlUtf8Convert(enc, fromP, fromLim, toP, toLim)
static int initScan(const ENCODING *const *encodingTable, const INIT_ENCODING *enc, int state, const char *ptr, const char *end, const char **nextTokPtr)
const XML_Char const XML_Char int standalone
static struct normal_encoding internal_big2_encoding
static int FASTCALL getEncodingIndex(const char *name)
static const char KW_UTF_16[]
static struct normal_encoding ascii_encoding
static struct normal_encoding little2_encoding
static int FASTCALL streqci(const char *s1, const char *s2)
static struct normal_encoding utf8_encoding
static int doParseXmlDecl(const ENCODING *(*encodingFinder)(const ENCODING *, const char *, const char *), int isGeneralTextEntity, const ENCODING *enc, const char *ptr, const char *end, const char **badPtr, const char **versionPtr, const char **versionEndPtr, const char **encodingName, const ENCODING **encoding, int *standalone)
#define XML_CONTENT_STATE
int XmlInitEncoding(INIT_ENCODING *, const ENCODING **, const char *name)
static struct normal_encoding latin1_encoding
static struct normal_encoding internal_little2_encoding
const ENCODING * XmlGetUtf16InternalEncoding(void)
static struct normal_encoding big2_encoding
typedef void(XMLCALL *XML_ElementDeclHandler)(void *userData
const ENCODING * XmlGetUtf8InternalEncoding(void)