5 #ifndef XmlTok_INCLUDED 6 #define XmlTok_INCLUDED 1 13 #define XML_TOK_TRAILING_RSQB -5 18 #define XML_TOK_NONE -4 19 #define XML_TOK_TRAILING_CR -3 21 #define XML_TOK_PARTIAL_CHAR -2 22 #define XML_TOK_PARTIAL -1 23 #define XML_TOK_INVALID 0 28 #define XML_TOK_START_TAG_WITH_ATTS 1 29 #define XML_TOK_START_TAG_NO_ATTS 2 30 #define XML_TOK_EMPTY_ELEMENT_WITH_ATTS 3 31 #define XML_TOK_EMPTY_ELEMENT_NO_ATTS 4 32 #define XML_TOK_END_TAG 5 33 #define XML_TOK_DATA_CHARS 6 34 #define XML_TOK_DATA_NEWLINE 7 35 #define XML_TOK_CDATA_SECT_OPEN 8 36 #define XML_TOK_ENTITY_REF 9 37 #define XML_TOK_CHAR_REF 10 43 #define XML_TOK_XML_DECL 12 44 #define XML_TOK_COMMENT 13 45 #define XML_TOK_BOM 14 48 #define XML_TOK_PROLOG_S 15 49 #define XML_TOK_DECL_OPEN 16 50 #define XML_TOK_DECL_CLOSE 17 51 #define XML_TOK_NAME 18 52 #define XML_TOK_NMTOKEN 19 53 #define XML_TOK_POUND_NAME 20 55 #define XML_TOK_PERCENT 22 56 #define XML_TOK_OPEN_PAREN 23 57 #define XML_TOK_CLOSE_PAREN 24 58 #define XML_TOK_OPEN_BRACKET 25 59 #define XML_TOK_CLOSE_BRACKET 26 60 #define XML_TOK_LITERAL 27 61 #define XML_TOK_PARAM_ENTITY_REF 28 62 #define XML_TOK_INSTANCE_START 29 65 #define XML_TOK_NAME_QUESTION 30 66 #define XML_TOK_NAME_ASTERISK 31 67 #define XML_TOK_NAME_PLUS 32 68 #define XML_TOK_COND_SECT_OPEN 33 69 #define XML_TOK_COND_SECT_CLOSE 34 70 #define XML_TOK_CLOSE_PAREN_QUESTION 35 71 #define XML_TOK_CLOSE_PAREN_ASTERISK 36 72 #define XML_TOK_CLOSE_PAREN_PLUS 37 73 #define XML_TOK_COMMA 38 76 #define XML_TOK_ATTRIBUTE_VALUE_S 39 79 #define XML_TOK_CDATA_SECT_CLOSE 40 84 #define XML_TOK_PREFIXED_NAME 41 87 #define XML_TOK_IGNORE_SECT 42 91 #define XML_N_STATES 4 93 #define XML_N_STATES 3 96 #define XML_PROLOG_STATE 0 97 #define XML_CONTENT_STATE 1 98 #define XML_CDATA_SECTION_STATE 2 100 #define XML_IGNORE_SECTION_STATE 3 103 #define XML_N_LITERAL_TYPES 2 104 #define XML_ATTRIBUTE_VALUE_LITERAL 0 105 #define XML_ENTITY_VALUE_LITERAL 1 108 #define XML_UTF8_ENCODE_MAX 4 110 #define XML_UTF16_ENCODE_MAX 2 139 int (
PTRCALL *nameMatchesAscii)(
const ENCODING *,
144 const char *(
PTRFASTCALL *skipS)(
const ENCODING *,
const char *);
149 int (
PTRFASTCALL *charRefNumber)(
const ENCODING *enc,
const char *ptr);
150 int (
PTRCALL *predefinedEntityName)(
const ENCODING *,
157 int (
PTRCALL *isPublicId)(
const ENCODING *enc,
160 const char **badPtr);
169 unsigned short **
toP,
170 const unsigned short *toLim);
198 #define XmlTok(enc, state, ptr, end, nextTokPtr) \ 199 (((enc)->scanners[state])(enc, ptr, end, nextTokPtr)) 201 #define XmlPrologTok(enc, ptr, end, nextTokPtr) \ 202 XmlTok(enc, XML_PROLOG_STATE, ptr, end, nextTokPtr) 204 #define XmlContentTok(enc, ptr, end, nextTokPtr) \ 205 XmlTok(enc, XML_CONTENT_STATE, ptr, end, nextTokPtr) 207 #define XmlCdataSectionTok(enc, ptr, end, nextTokPtr) \ 208 XmlTok(enc, XML_CDATA_SECTION_STATE, ptr, end, nextTokPtr) 212 #define XmlIgnoreSectionTok(enc, ptr, end, nextTokPtr) \ 213 XmlTok(enc, XML_IGNORE_SECTION_STATE, ptr, end, nextTokPtr) 220 #define XmlLiteralTok(enc, literalType, ptr, end, nextTokPtr) \ 221 (((enc)->literalScanners[literalType])(enc, ptr, end, nextTokPtr)) 223 #define XmlAttributeValueTok(enc, ptr, end, nextTokPtr) \ 224 XmlLiteralTok(enc, XML_ATTRIBUTE_VALUE_LITERAL, ptr, end, nextTokPtr) 226 #define XmlEntityValueTok(enc, ptr, end, nextTokPtr) \ 227 XmlLiteralTok(enc, XML_ENTITY_VALUE_LITERAL, ptr, end, nextTokPtr) 229 #define XmlSameName(enc, ptr1, ptr2) (((enc)->sameName)(enc, ptr1, ptr2)) 231 #define XmlNameMatchesAscii(enc, ptr1, end1, ptr2) \ 232 (((enc)->nameMatchesAscii)(enc, ptr1, end1, ptr2)) 234 #define XmlNameLength(enc, ptr) \ 235 (((enc)->nameLength)(enc, ptr)) 237 #define XmlSkipS(enc, ptr) \ 238 (((enc)->skipS)(enc, ptr)) 240 #define XmlGetAttributes(enc, ptr, attsMax, atts) \ 241 (((enc)->getAtts)(enc, ptr, attsMax, atts)) 243 #define XmlCharRefNumber(enc, ptr) \ 244 (((enc)->charRefNumber)(enc, ptr)) 246 #define XmlPredefinedEntityName(enc, ptr, end) \ 247 (((enc)->predefinedEntityName)(enc, ptr, end)) 249 #define XmlUpdatePosition(enc, ptr, end, pos) \ 250 (((enc)->updatePosition)(enc, ptr, end, pos)) 252 #define XmlIsPublicId(enc, ptr, end, badPtr) \ 253 (((enc)->isPublicId)(enc, ptr, end, badPtr)) 255 #define XmlUtf8Convert(enc, fromP, fromLim, toP, toLim) \ 256 (((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim)) 258 #define XmlUtf16Convert(enc, fromP, fromLim, toP, toLim) \ 259 (((enc)->utf16Convert)(enc, fromP, fromLim, toP, toLim)) 271 const char **versionPtr,
272 const char **versionEndPtr,
273 const char **encodingNamePtr,
274 const ENCODING **namedEncodingPtr,
298 const char **versionPtr,
299 const char **versionEndPtr,
300 const char **encodingNamePtr,
301 const ENCODING **namedEncodingPtr,
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)
const char const char const char * ptr
Definition: xmltok.h:154
const char const char unsigned short ** toP
Definition: xmltok.h:167
XML_Size lineNumber
Definition: xmltok.h:114
int XmlInitEncodingNS(INIT_ENCODING *, const ENCODING **, const char *name)
XML_Size columnNumber
Definition: xmltok.h:115
DOMString p
Definition: WebCryptoAPI.idl:116
char isUtf16
Definition: xmltok.h:173
GLuint GLuint end
Definition: gl2ext.h:323
int(XMLCALL * CONVERTER)(void *userData, const char *p)
Definition: xmltok.h:285
int minBytesPerChar
Definition: xmltok.h:171
#define PTRFASTCALL
Definition: internal.h:56
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: gl2ext.h:134
ENCODING * XmlInitUnknownEncodingNS(void *mem, int *table, CONVERTER convert, void *userData)
Definition: encoding.py:1
int FASTCALL XmlUtf8Encode(int charNumber, char *buf)
Definition: xmltok.c:1193
ENCODING * XmlInitUnknownEncoding(void *mem, int *table, CONVERTER convert, void *userData)
Definition: xmltok.c:1346
Definition: glslang_tab.cpp:149
void
Definition: AVFoundationCFSoftLinking.h:81
int FASTCALL XmlUtf16Encode(int charNumber, unsigned short *buf)
Definition: xmltok.c:1230
const ENCODING * XmlGetUtf8InternalEncodingNS(void)
int
Definition: runtests.py:53
#define XML_N_STATES
Definition: xmltok.h:93
const char * valuePtr
Definition: xmltok.h:120
char isUtf8
Definition: xmltok.h:172
const ENCODING ** encPtr
Definition: xmltok.h:263
constexpr U convert(U v)
Definition: Optional.h:278
EGLImageKHR EGLint * name
Definition: eglext.h:851
#define FASTCALL
Definition: internal.h:48
#define XML_N_LITERAL_TYPES
Definition: xmltok.h:103
ENCODING initEnc
Definition: xmltok.h:262
int XmlInitEncoding(INIT_ENCODING *, const ENCODING **, const char *name)
char normalized
Definition: xmltok.h:122
const char * name
Definition: xmltok.h:119
const ENCODING * XmlGetUtf16InternalEncoding(void)
#define userData
Definition: xmlparse.c:566
#define PTRCALL
Definition: internal.h:52
int XmlParseXmlDeclNS(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)
const char * valueEnd
Definition: xmltok.h:121
#define XMLCALL
Definition: expat_external.h:52
const char const char char ** toP
Definition: xmltok.h:162
const char const char const char const char POSITION const char * ptr
Definition: xmltok.h:158
const ENCODING * XmlGetUtf16InternalEncodingNS(void)
unsigned long XML_Size
Definition: expat_external.h:108
const char * ptr
Definition: xmltok.h:146
#define atts
Definition: xmlparse.c:647
const ENCODING * XmlGetUtf8InternalEncoding(void)
int(PTRCALL * SCANNER)(const ENCODING *, const char *, const char *, const char **)
Definition: xmltok.h:128
int XmlSizeOfUnknownEncoding(void)
Definition: xmltok.c:1258