Qt 4.8
Public Types | Static Public Functions | Static Public Variables | List of all members
QXmlStreamReader_Table Class Reference

#include <qxmlstream_p.h>

Inheritance diagram for QXmlStreamReader_Table:
QXmlStreamReaderPrivate

Public Types

enum  VariousConstants {
  EOF_SYMBOL = 0, AMPERSAND = 5, ANY = 41, ATTLIST = 31,
  BANG = 25, CDATA = 47, CDATA_START = 28, COLON = 17,
  COMMA = 19, DASH = 20, DBLQUOTE = 8, DIGIT = 27,
  DOCTYPE = 29, DOT = 23, ELEMENT = 30, EMPTY = 40,
  ENTITIES = 51, ENTITY = 32, ENTITY_DONE = 45, EQ = 14,
  ERROR = 43, FIXED = 39, HASH = 6, ID = 48,
  IDREF = 49, IDREFS = 50, IMPLIED = 38, LANGLE = 3,
  LBRACK = 9, LETTER = 26, LPAREN = 11, NDATA = 36,
  NMTOKEN = 52, NMTOKENS = 53, NOTATION = 33, NOTOKEN = 1,
  PARSE_ENTITY = 44, PCDATA = 42, PERCENT = 15, PIPE = 13,
  PLUS = 21, PUBLIC = 35, QUESTIONMARK = 24, QUOTE = 7,
  RANGLE = 4, RBRACK = 10, REQUIRED = 37, RPAREN = 12,
  SEMICOLON = 18, SHIFT_THERE = 56, SLASH = 16, SPACE = 2,
  STAR = 22, SYSTEM = 34, UNRESOLVED_ENTITY = 46, VERSION = 55,
  XML = 54, ACCEPT_STATE = 416, RULE_COUNT = 270, STATE_COUNT = 427,
  TERMINAL_COUNT = 57, NON_TERMINAL_COUNT = 84, GOTO_INDEX_OFFSET = 427, GOTO_INFO_OFFSET = 1017,
  GOTO_CHECK_OFFSET = 1017
}
 

Static Public Functions

static int nt_action (int state, int nt)
 
static int t_action (int state, int token)
 

Static Public Variables

static const short action_check []
 
static const short action_default []
 
static const short action_index []
 
static const short action_info []
 
static const short goto_default []
 
static const short lhs []
 
static const short rhs []
 
static const char *const spell []
 

Detailed Description

Definition at line 61 of file qxmlstream_p.h.

Enumerations

◆ VariousConstants

Enumerator
EOF_SYMBOL 
AMPERSAND 
ANY 
ATTLIST 
BANG 
CDATA 
CDATA_START 
COLON 
COMMA 
DASH 
DBLQUOTE 
DIGIT 
DOCTYPE 
DOT 
ELEMENT 
EMPTY 
ENTITIES 
ENTITY 
ENTITY_DONE 
EQ 
ERROR 
FIXED 
HASH 
ID 
IDREF 
IDREFS 
IMPLIED 
LANGLE 
LBRACK 
LETTER 
LPAREN 
NDATA 
NMTOKEN 
NMTOKENS 
NOTATION 
NOTOKEN 
PARSE_ENTITY 
PCDATA 
PERCENT 
PIPE 
PLUS 
PUBLIC 
QUESTIONMARK 
QUOTE 
RANGLE 
RBRACK 
REQUIRED 
RPAREN 
SEMICOLON 
SHIFT_THERE 
SLASH 
SPACE 
STAR 
SYSTEM 
UNRESOLVED_ENTITY 
VERSION 
XML 
ACCEPT_STATE 
RULE_COUNT 
STATE_COUNT 
TERMINAL_COUNT 
NON_TERMINAL_COUNT 
GOTO_INDEX_OFFSET 
GOTO_INFO_OFFSET 
GOTO_CHECK_OFFSET 

Definition at line 64 of file qxmlstream_p.h.

64  {
65  EOF_SYMBOL = 0,
66  AMPERSAND = 5,
67  ANY = 41,
68  ATTLIST = 31,
69  BANG = 25,
70  CDATA = 47,
71  CDATA_START = 28,
72  COLON = 17,
73  COMMA = 19,
74  DASH = 20,
75  DBLQUOTE = 8,
76  DIGIT = 27,
77  DOCTYPE = 29,
78  DOT = 23,
79  ELEMENT = 30,
80  EMPTY = 40,
81  ENTITIES = 51,
82  ENTITY = 32,
83  ENTITY_DONE = 45,
84  EQ = 14,
85  ERROR = 43,
86  FIXED = 39,
87  HASH = 6,
88  ID = 48,
89  IDREF = 49,
90  IDREFS = 50,
91  IMPLIED = 38,
92  LANGLE = 3,
93  LBRACK = 9,
94  LETTER = 26,
95  LPAREN = 11,
96  NDATA = 36,
97  NMTOKEN = 52,
98  NMTOKENS = 53,
99  NOTATION = 33,
100  NOTOKEN = 1,
101  PARSE_ENTITY = 44,
102  PCDATA = 42,
103  PERCENT = 15,
104  PIPE = 13,
105  PLUS = 21,
106  PUBLIC = 35,
107  QUESTIONMARK = 24,
108  QUOTE = 7,
109  RANGLE = 4,
110  RBRACK = 10,
111  REQUIRED = 37,
112  RPAREN = 12,
113  SEMICOLON = 18,
114  SHIFT_THERE = 56,
115  SLASH = 16,
116  SPACE = 2,
117  STAR = 22,
118  SYSTEM = 34,
119  UNRESOLVED_ENTITY = 46,
120  VERSION = 55,
121  XML = 54,
122 
123  ACCEPT_STATE = 416,
124  RULE_COUNT = 270,
125  STATE_COUNT = 427,
126  TERMINAL_COUNT = 57,
127  NON_TERMINAL_COUNT = 84,
128 
129  GOTO_INDEX_OFFSET = 427,
130  GOTO_INFO_OFFSET = 1017,
131  GOTO_CHECK_OFFSET = 1017
132  };

Functions

◆ nt_action()

static int QXmlStreamReader_Table::nt_action ( int  state,
int  nt 
)
inlinestatic

Definition at line 143 of file qxmlstream_p.h.

Referenced by QXmlStreamReaderPrivate::parse().

144  {
145  const int yyn = action_index [GOTO_INDEX_OFFSET + state] + nt;
146  if (yyn < 0 || action_check [GOTO_CHECK_OFFSET + yyn] != nt)
147  return goto_default [nt];
148 
149  return action_info [GOTO_INFO_OFFSET + yyn];
150  }
static const short goto_default[]
Definition: qxmlstream_p.h:137
static const short action_info[]
Definition: qxmlstream_p.h:140
static const short action_check[]
Definition: qxmlstream_p.h:141
#define nt(var, enu)
static const short action_index[]
Definition: qxmlstream_p.h:139

◆ t_action()

static int QXmlStreamReader_Table::t_action ( int  state,
int  token 
)
inlinestatic

Definition at line 152 of file qxmlstream_p.h.

Referenced by QXmlStreamReaderPrivate::parse(), and QXmlStreamReaderPrivate::parseError().

153  {
154  const int yyn = action_index [state] + token;
155 
156  if (yyn < 0 || action_check [yyn] != token)
157  return - action_default [state];
158 
159  return action_info [yyn];
160  }
static const short action_info[]
Definition: qxmlstream_p.h:140
static const short action_check[]
Definition: qxmlstream_p.h:141
static const short action_default[]
Definition: qxmlstream_p.h:138
static const short action_index[]
Definition: qxmlstream_p.h:139

Properties

◆ action_check

const short QXmlStreamReader_Table::action_check
static

Definition at line 141 of file qxmlstream_p.h.

Referenced by t_action().

◆ action_default

const short QXmlStreamReader_Table::action_default
static

Definition at line 138 of file qxmlstream_p.h.

Referenced by t_action().

◆ action_index

const short QXmlStreamReader_Table::action_index
static

Definition at line 139 of file qxmlstream_p.h.

Referenced by QXmlStreamReaderPrivate::parse(), and t_action().

◆ action_info

const short QXmlStreamReader_Table::action_info
static

Definition at line 140 of file qxmlstream_p.h.

Referenced by t_action().

◆ goto_default

const short QXmlStreamReader_Table::goto_default
static
Initial value:
= {
2, 4, 3, 49, 388, 43, 37, 52, 47, 41,
249, 53, 127, 84, 393, 81, 85, 126, 42, 46,
169, 130, 131, 146, 145, 149, 138, 136, 140, 147,
139, 159, 160, 157, 168, 167, 209, 165, 164, 166,
187, 180, 196, 200, 303, 302, 295, 321, 320, 319,
279, 277, 278, 142, 56, 141, 222, 38, 34, 148,
39, 48, 40, 248, 45, 36, 119, 112, 330, 111,
264, 252, 251, 250, 339, 326, 325, 329, 398, 399,
50, 51, 59, 0}

Definition at line 137 of file qxmlstream_p.h.

Referenced by t_action().

◆ lhs

const short QXmlStreamReader_Table::lhs
static
Initial value:
= {
57, 57, 59, 59, 59, 59, 59, 59, 59, 59,
67, 68, 64, 72, 72, 72, 75, 66, 66, 66,
66, 79, 78, 80, 80, 80, 80, 80, 80, 80,
81, 81, 81, 81, 81, 81, 81, 87, 83, 88,
88, 88, 88, 91, 92, 93, 93, 93, 93, 94,
94, 96, 96, 96, 97, 97, 98, 98, 99, 99,
100, 100, 89, 89, 95, 90, 101, 101, 103, 103,
103, 103, 103, 103, 103, 103, 103, 103, 104, 105,
105, 105, 105, 107, 108, 109, 109, 84, 84, 110,
110, 112, 112, 85, 85, 85, 65, 65, 76, 114,
63, 115, 116, 86, 86, 86, 117, 117, 117, 117,
117, 117, 117, 117, 117, 117, 117, 117, 117, 117,
117, 117, 117, 117, 117, 117, 117, 117, 117, 118,
118, 119, 119, 119, 119, 119, 119, 119, 119, 122,
70, 70, 70, 70, 123, 124, 123, 124, 123, 124,
123, 124, 126, 126, 126, 126, 126, 126, 126, 126,
126, 126, 126, 126, 126, 126, 126, 126, 126, 126,
126, 126, 126, 126, 125, 73, 113, 113, 113, 113,
127, 128, 127, 128, 127, 128, 127, 128, 129, 129,
129, 129, 129, 129, 129, 129, 129, 129, 129, 129,
129, 129, 129, 129, 129, 129, 129, 129, 129, 129,
129, 129, 129, 106, 106, 106, 106, 131, 132, 131,
132, 131, 131, 132, 132, 133, 133, 133, 133, 135,
71, 71, 71, 136, 136, 137, 62, 60, 61, 138,
121, 82, 130, 134, 120, 139, 139, 139, 139, 58,
58, 58, 58, 58, 58, 58, 58, 58, 58, 74,
69, 69, 77, 111, 102, 102, 102, 102, 102, 140}

Definition at line 135 of file qxmlstream_p.h.

Referenced by QXmlStreamReaderPrivate::parse(), and t_action().

◆ rhs

const short QXmlStreamReader_Table::rhs
static
Initial value:
= {
2, 1, 4, 2, 2, 2, 2, 2, 2, 0,
1, 1, 9, 2, 4, 0, 4, 4, 6, 6,
4, 1, 3, 1, 1, 1, 2, 2, 2, 0,
1, 1, 1, 1, 1, 1, 1, 4, 4, 1,
1, 1, 1, 1, 2, 1, 1, 1, 0, 2,
2, 2, 6, 6, 1, 5, 1, 5, 3, 5,
0, 1, 6, 8, 4, 2, 1, 5, 1, 1,
1, 1, 1, 1, 1, 1, 6, 7, 1, 2,
2, 1, 4, 3, 3, 1, 2, 5, 6, 4,
6, 3, 5, 5, 3, 4, 4, 5, 2, 3,
2, 2, 4, 5, 5, 7, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 2, 2, 2, 2, 1, 1, 1, 1, 1,
2, 2, 3, 3, 2, 2, 2, 2, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 2, 2, 3, 3,
2, 2, 2, 2, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 2, 2, 3, 3, 2, 2, 2,
2, 1, 1, 1, 1, 1, 1, 1, 1, 5,
0, 1, 3, 1, 3, 2, 4, 3, 5, 1,
3, 3, 3, 3, 4, 1, 1, 2, 2, 2,
4, 2, 2, 2, 2, 2, 2, 2, 0, 1,
0, 1, 1, 1, 1, 1, 1, 1, 1, 2}

Definition at line 136 of file qxmlstream_p.h.

Referenced by QXmlStreamReaderPrivate::parse(), and t_action().

◆ spell

const char *const QXmlStreamReader_Table::spell
static
Initial value:
= {
"end of file", 0, " ", "<", ">", "&", "#", "\'", "\"", "[",
"]", "(", ")", "|", "=", "%", "/", ":", ";", ",",
"-", "+", "*", ".", "?", "!", "[a-zA-Z]", "[0-9]", "[CDATA[", "DOCTYPE",
"ELEMENT", "ATTLIST", "ENTITY", "NOTATION", "SYSTEM", "PUBLIC", "NDATA", "REQUIRED", "IMPLIED", "FIXED",
"EMPTY", "ANY", "PCDATA", 0, 0, 0, 0, "CDATA", "ID", "IDREF",
"IDREFS", "ENTITIES", "NMTOKEN", "NMTOKENS", "<?xml", "version", 0}

Definition at line 134 of file qxmlstream_p.h.

Referenced by QXmlStreamReaderPrivate::checkStartDocument(), QXmlStreamReaderPrivate::parse(), QXmlStreamReaderPrivate::parseError(), QXmlStreamReaderPrivate::scanAfterDefaultDecl(), QXmlStreamReaderPrivate::scanAfterLangleBang(), QXmlStreamReaderPrivate::scanAttType(), QXmlStreamReaderPrivate::scanNData(), QXmlStreamReaderPrivate::scanPublicOrSystem(), and t_action().


The documentation for this class was generated from the following file: