9 NS(XmlGetUtf8InternalEncoding)(void)
15 NS(XmlGetUtf16InternalEncoding)(void)
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)
43 return initScan(
NS(encodings), (
const INIT_ENCODING *)enc,
44 XML_PROLOG_STATE, ptr, end, nextTokPtr);
48 NS(initScanContent)(
const ENCODING *
enc,
const char *ptr,
const char *end,
49 const char **nextTokPtr)
51 return initScan(
NS(encodings), (
const INIT_ENCODING *)enc,
52 XML_CONTENT_STATE, ptr, end, nextTokPtr);
56 NS(XmlInitEncoding)(INIT_ENCODING *p,
const ENCODING **encPtr,
63 p->initEnc.scanners[XML_PROLOG_STATE] =
NS(initScanProlog);
64 p->initEnc.scanners[XML_CONTENT_STATE] =
NS(initScanContent);
67 *encPtr = &(p->initEnc);
71 static const ENCODING *
72 NS(findEncoding)(
const ENCODING *
enc,
const char *ptr,
const char *end)
74 #define ENCODING_MAX 128
75 char buf[ENCODING_MAX];
78 XmlUtf8Convert(enc, &ptr, end, &p, p + ENCODING_MAX - 1);
87 return NS(encodings)[i];
91 NS(XmlParseXmlDecl)(
int isGeneralTextEntity,
96 const char **versionPtr,
97 const char **versionEndPtr,
98 const char **encodingName,
#define SET_INIT_ENC_INDEX(enc, i)
static void PTRCALL initUpdatePosition(const ENCODING *enc, const char *ptr, const char *end, POSITION *pos)
static const struct normal_encoding utf8_encoding
static int initScan(const ENCODING *const *encodingTable, const INIT_ENCODING *enc, int state, const char *ptr, const char *end, const char **nextTokPtr)
static const struct normal_encoding big2_encoding
static const struct normal_encoding internal_utf8_encoding
static const struct normal_encoding ascii_encoding
static int FASTCALL getEncodingIndex(const char *name)
static const struct normal_encoding latin1_encoding
static const struct normal_encoding internal_little2_encoding
static const char KW_UTF_16[]
static int FASTCALL streqci(const char *s1, const char *s2)
static const struct normal_encoding internal_big2_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)
static const struct normal_encoding little2_encoding