1
/****************************************************************************
2
**
3
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
4
** All rights reserved.
5
** Contact: Nokia Corporation (qt-info@nokia.com)
6
**
7
** This file is part of the QtGui module of the Qt Toolkit.
8
**
9
** $QT_BEGIN_LICENSE:LGPL$
10
** GNU Lesser General Public License Usage
11
** This file may be used under the terms of the GNU Lesser General Public
12
** License version 2.1 as published by the Free Software Foundation and
13
** appearing in the file LICENSE.LGPL included in the packaging of this
14
** file. Please review the following information to ensure the GNU Lesser
15
** General Public License version 2.1 requirements will be met:
16
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
17
**
18
** In addition, as a special exception, Nokia gives you certain additional
19
** rights. These rights are described in the Nokia Qt LGPL Exception
20
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
21
**
22
** GNU General Public License Usage
23
** Alternatively, this file may be used under the terms of the GNU General
24
** Public License version 3.0 as published by the Free Software Foundation
25
** and appearing in the file LICENSE.GPL included in the packaging of this
26
** file. Please review the following information to ensure the GNU General
27
** Public License version 3.0 requirements will be met:
28
** http://www.gnu.org/copyleft/gpl.html.
29
**
30
** Other Usage
31
** Alternatively, this file may be used in accordance with the terms and
32
** conditions contained in a signed written agreement between you and Nokia.
33
**
34
**
35
**
36
**
37
**
38
** $QT_END_LICENSE$
39
**
40
****************************************************************************/
41
42
// auto generated. DO NOT EDIT.
43
class QCssScanner_Generated
44
{
45
public:
46
    QCssScanner_Generated(const QString &inp);
47
48
    inline QChar next() {
49
        return (pos < input.length()) ? input.at(pos++) : QChar();
50
    }
51
    int handleCommentStart();
52
    int lex();
53
54
    QString input;
55
    int pos;
56
    int lexemStart;
57
    int lexemLength;
58
};
59
60
QCssScanner_Generated::QCssScanner_Generated(const QString &inp)
61
{
62
    input = inp;
63
    pos = 0;
64
    lexemStart = 0;
65
    lexemLength = 0;
66
}
67
68
69
int QCssScanner_Generated::lex()
70
{
71
    lexemStart = pos;
72
    lexemLength = 0;
73
    int lastAcceptingPos = -1;
74
    int token = -1;
75
    QChar ch;
76
77
    // initial state
78
        ch = next();
79
        if (ch.unicode() >= 9 && ch.unicode() <= 10)
80
            goto state_1;
81
        if (ch.unicode() >= 12 && ch.unicode() <= 13)
82
            goto state_1;
83
        if (ch.unicode() == 32)
84
            goto state_1;
85
        if (ch.unicode() == 33) {
86
            token = QCss::EXCLAMATION_SYM;
87
            goto found;
88
        }
89
        if (ch.unicode() == 34)
90
            goto state_3;
91
        if (ch.unicode() == 35)
92
            goto state_4;
93
        if (ch.unicode() == 39)
94
            goto state_5;
95
        if (ch.unicode() == 40) {
96
            token = QCss::LPAREN;
97
            goto found;
98
        }
99
        if (ch.unicode() == 41) {
100
            token = QCss::RPAREN;
101
            goto found;
102
        }
103
        if (ch.unicode() == 42) {
104
            token = QCss::STAR;
105
            goto found;
106
        }
107
        if (ch.unicode() == 43)
108
            goto state_9;
109
        if (ch.unicode() == 44)
110
            goto state_10;
111
        if (ch.unicode() == 45)
112
            goto state_11;
113
        if (ch.unicode() == 46)
114
            goto state_12;
115
        if (ch.unicode() == 47)
116
            goto state_13;
117
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
118
            goto state_14;
119
        if (ch.unicode() == 58) {
120
            token = QCss::COLON;
121
            goto found;
122
        }
123
        if (ch.unicode() == 59) {
124
            token = QCss::SEMICOLON;
125
            goto found;
126
        }
127
        if (ch.unicode() == 60)
128
            goto state_17;
129
        if (ch.unicode() == 61) {
130
            token = QCss::EQUAL;
131
            goto found;
132
        }
133
        if (ch.unicode() == 62)
134
            goto state_19;
135
        if (ch.unicode() == 64)
136
            goto state_20;
137
        if (ch.unicode() == 91) {
138
            token = QCss::LBRACKET;
139
            goto found;
140
        }
141
        if (ch.unicode() == 92)
142
            goto state_22;
143
        if (ch.unicode() == 93) {
144
            token = QCss::RBRACKET;
145
            goto found;
146
        }
147
        if (ch.unicode() == 95)
148
            goto state_24;
149
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
150
            goto state_24;
151
        if (ch.unicode() == 123)
152
            goto state_25;
153
        if (ch.unicode() == 124)
154
            goto state_26;
155
        if (ch.unicode() == 125) {
156
            token = QCss::RBRACE;
157
            goto found;
158
        }
159
        if (ch.unicode() == 126)
160
            goto state_28;
161
        goto out;
162
    state_1:
163
        lastAcceptingPos = pos;
164
        token = QCss::S;
165
        ch = next();
166
        if (ch.unicode() >= 9 && ch.unicode() <= 10)
167
            goto state_29;
168
        if (ch.unicode() >= 12 && ch.unicode() <= 13)
169
            goto state_29;
170
        if (ch.unicode() == 32)
171
            goto state_29;
172
        if (ch.unicode() == 43)
173
            goto state_9;
174
        if (ch.unicode() == 44)
175
            goto state_10;
176
        if (ch.unicode() == 62)
177
            goto state_19;
178
        if (ch.unicode() == 123)
179
            goto state_25;
180
        goto out;
181
    state_3:
182
        lastAcceptingPos = pos;
183
        token = QCss::INVALID;
184
        ch = next();
185
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
186
            goto state_30;
187
        if (ch.unicode() == 11)
188
            goto state_30;
189
        if (ch.unicode() >= 14 && ch.unicode() <= 33)
190
            goto state_30;
191
        if (ch.unicode() == 34)
192
            goto state_31;
193
        if (ch.unicode() >= 35 && ch.unicode() <= 91)
194
            goto state_30;
195
        if (ch.unicode() == 92)
196
            goto state_32;
197
        if (ch.unicode() >= 93 && ch.unicode() <= 96)
198
            goto state_30;
199
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
200
            goto state_30;
201
        if (ch.unicode() >= 123)
202
            goto state_30;
203
        goto out;
204
    state_4:
205
        ch = next();
206
        if (ch.unicode() == 45)
207
            goto state_33;
208
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
209
            goto state_33;
210
        if (ch.unicode() == 92)
211
            goto state_34;
212
        if (ch.unicode() == 95)
213
            goto state_33;
214
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
215
            goto state_33;
216
        goto out;
217
    state_5:
218
        lastAcceptingPos = pos;
219
        token = QCss::INVALID;
220
        ch = next();
221
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
222
            goto state_35;
223
        if (ch.unicode() == 11)
224
            goto state_35;
225
        if (ch.unicode() >= 14 && ch.unicode() <= 38)
226
            goto state_35;
227
        if (ch.unicode() == 39)
228
            goto state_36;
229
        if (ch.unicode() >= 40 && ch.unicode() <= 91)
230
            goto state_35;
231
        if (ch.unicode() == 92)
232
            goto state_37;
233
        if (ch.unicode() >= 93 && ch.unicode() <= 96)
234
            goto state_35;
235
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
236
            goto state_35;
237
        if (ch.unicode() >= 123)
238
            goto state_35;
239
        goto out;
240
    state_9:
241
        lastAcceptingPos = pos;
242
        token = QCss::PLUS;
243
        goto out;
244
    state_10:
245
        lastAcceptingPos = pos;
246
        token = QCss::COMMA;
247
        goto out;
248
    state_11:
249
        lastAcceptingPos = pos;
250
        token = QCss::MINUS;
251
        ch = next();
252
        if (ch.unicode() == 45)
253
            goto state_38;
254
        if (ch.unicode() == 92)
255
            goto state_22;
256
        if (ch.unicode() == 95)
257
            goto state_24;
258
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
259
            goto state_24;
260
        goto out;
261
    state_12:
262
        lastAcceptingPos = pos;
263
        token = QCss::DOT;
264
        ch = next();
265
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
266
            goto state_39;
267
        goto out;
268
    state_13:
269
        lastAcceptingPos = pos;
270
        token = QCss::SLASH;
271
        ch = next();
272
        if (ch.unicode() == 42) {
273
            token = handleCommentStart();
274
            goto found;
275
        }
276
        goto out;
277
    state_14:
278
        lastAcceptingPos = pos;
279
        token = QCss::NUMBER;
280
        ch = next();
281
        if (ch.unicode() == 37)
282
            goto state_41;
283
        if (ch.unicode() == 45)
284
            goto state_42;
285
        if (ch.unicode() == 46)
286
            goto state_43;
287
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
288
            goto state_44;
289
        if (ch.unicode() == 92)
290
            goto state_45;
291
        if (ch.unicode() == 95)
292
            goto state_46;
293
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
294
            goto state_46;
295
        goto out;
296
    state_17:
297
        ch = next();
298
        if (ch.unicode() == 33)
299
            goto state_47;
300
        goto out;
301
    state_19:
302
        lastAcceptingPos = pos;
303
        token = QCss::GREATER;
304
        goto out;
305
    state_20:
306
        ch = next();
307
        if (ch.unicode() == 45)
308
            goto state_48;
309
        if (ch.unicode() == 92)
310
            goto state_49;
311
        if (ch.unicode() == 95)
312
            goto state_50;
313
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
314
            goto state_50;
315
        goto out;
316
    state_22:
317
        ch = next();
318
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
319
            goto state_51;
320
        if (ch.unicode() == 11)
321
            goto state_51;
322
        if (ch.unicode() >= 14 && ch.unicode() <= 47)
323
            goto state_51;
324
        if (ch.unicode() >= 58 && ch.unicode() <= 96)
325
            goto state_51;
326
        if (ch.unicode() >= 103)
327
            goto state_51;
328
        goto out;
329
    state_24:
330
        lastAcceptingPos = pos;
331
        token = QCss::IDENT;
332
        ch = next();
333
        if (ch.unicode() == 40)
334
            goto state_52;
335
        if (ch.unicode() == 45)
336
            goto state_53;
337
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
338
            goto state_53;
339
        if (ch.unicode() == 92)
340
            goto state_54;
341
        if (ch.unicode() == 95)
342
            goto state_53;
343
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
344
            goto state_53;
345
        goto out;
346
    state_25:
347
        lastAcceptingPos = pos;
348
        token = QCss::LBRACE;
349
        goto out;
350
    state_26:
351
        lastAcceptingPos = pos;
352
        token = QCss::OR;
353
        ch = next();
354
        if (ch.unicode() == 61) {
355
            token = QCss::DASHMATCH;
356
            goto found;
357
        }
358
        goto out;
359
    state_28:
360
        ch = next();
361
        if (ch.unicode() == 61) {
362
            token = QCss::INCLUDES;
363
            goto found;
364
        }
365
        goto out;
366
    state_29:
367
        lastAcceptingPos = pos;
368
        token = QCss::S;
369
        ch = next();
370
        if (ch.unicode() >= 9 && ch.unicode() <= 10)
371
            goto state_29;
372
        if (ch.unicode() >= 12 && ch.unicode() <= 13)
373
            goto state_29;
374
        if (ch.unicode() == 32)
375
            goto state_29;
376
        if (ch.unicode() == 43)
377
            goto state_9;
378
        if (ch.unicode() == 44)
379
            goto state_10;
380
        if (ch.unicode() == 62)
381
            goto state_19;
382
        if (ch.unicode() == 123)
383
            goto state_25;
384
        goto out;
385
    state_30:
386
        lastAcceptingPos = pos;
387
        token = QCss::INVALID;
388
        ch = next();
389
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
390
            goto state_30;
391
        if (ch.unicode() == 11)
392
            goto state_30;
393
        if (ch.unicode() >= 14 && ch.unicode() <= 33)
394
            goto state_30;
395
        if (ch.unicode() == 34)
396
            goto state_31;
397
        if (ch.unicode() >= 35 && ch.unicode() <= 91)
398
            goto state_30;
399
        if (ch.unicode() == 92)
400
            goto state_32;
401
        if (ch.unicode() >= 93 && ch.unicode() <= 96)
402
            goto state_30;
403
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
404
            goto state_30;
405
        if (ch.unicode() >= 123)
406
            goto state_30;
407
        goto out;
408
    state_31:
409
        lastAcceptingPos = pos;
410
        token = QCss::STRING;
411
        goto out;
412
    state_32:
413
        ch = next();
414
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
415
            goto state_57;
416
        if (ch.unicode() == 10)
417
            goto state_58;
418
        if (ch.unicode() == 11)
419
            goto state_57;
420
        if (ch.unicode() == 12)
421
            goto state_59;
422
        if (ch.unicode() == 13)
423
            goto state_60;
424
        if (ch.unicode() >= 14 && ch.unicode() <= 47)
425
            goto state_57;
426
        if (ch.unicode() >= 58 && ch.unicode() <= 96)
427
            goto state_57;
428
        if (ch.unicode() >= 103)
429
            goto state_57;
430
        goto out;
431
    state_33:
432
        lastAcceptingPos = pos;
433
        token = QCss::HASH;
434
        ch = next();
435
        if (ch.unicode() == 45)
436
            goto state_61;
437
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
438
            goto state_61;
439
        if (ch.unicode() == 92)
440
            goto state_62;
441
        if (ch.unicode() == 95)
442
            goto state_61;
443
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
444
            goto state_61;
445
        goto out;
446
    state_34:
447
        ch = next();
448
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
449
            goto state_63;
450
        if (ch.unicode() == 11)
451
            goto state_63;
452
        if (ch.unicode() >= 14 && ch.unicode() <= 47)
453
            goto state_63;
454
        if (ch.unicode() >= 58 && ch.unicode() <= 96)
455
            goto state_63;
456
        if (ch.unicode() >= 103)
457
            goto state_63;
458
        goto out;
459
    state_35:
460
        lastAcceptingPos = pos;
461
        token = QCss::INVALID;
462
        ch = next();
463
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
464
            goto state_35;
465
        if (ch.unicode() == 11)
466
            goto state_35;
467
        if (ch.unicode() >= 14 && ch.unicode() <= 38)
468
            goto state_35;
469
        if (ch.unicode() == 39)
470
            goto state_36;
471
        if (ch.unicode() >= 40 && ch.unicode() <= 91)
472
            goto state_35;
473
        if (ch.unicode() == 92)
474
            goto state_37;
475
        if (ch.unicode() >= 93 && ch.unicode() <= 96)
476
            goto state_35;
477
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
478
            goto state_35;
479
        if (ch.unicode() >= 123)
480
            goto state_35;
481
        goto out;
482
    state_36:
483
        lastAcceptingPos = pos;
484
        token = QCss::STRING;
485
        goto out;
486
    state_37:
487
        ch = next();
488
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
489
            goto state_64;
490
        if (ch.unicode() == 10)
491
            goto state_65;
492
        if (ch.unicode() == 11)
493
            goto state_64;
494
        if (ch.unicode() == 12)
495
            goto state_66;
496
        if (ch.unicode() == 13)
497
            goto state_67;
498
        if (ch.unicode() >= 14 && ch.unicode() <= 47)
499
            goto state_64;
500
        if (ch.unicode() >= 58 && ch.unicode() <= 96)
501
            goto state_64;
502
        if (ch.unicode() >= 103)
503
            goto state_64;
504
        goto out;
505
    state_38:
506
        ch = next();
507
        if (ch.unicode() == 62) {
508
            token = QCss::CDC;
509
            goto found;
510
        }
511
        goto out;
512
    state_39:
513
        lastAcceptingPos = pos;
514
        token = QCss::NUMBER;
515
        ch = next();
516
        if (ch.unicode() == 37)
517
            goto state_41;
518
        if (ch.unicode() == 45)
519
            goto state_42;
520
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
521
            goto state_69;
522
        if (ch.unicode() == 92)
523
            goto state_45;
524
        if (ch.unicode() == 95)
525
            goto state_46;
526
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
527
            goto state_46;
528
        goto out;
529
    state_41:
530
        lastAcceptingPos = pos;
531
        token = QCss::PERCENTAGE;
532
        goto out;
533
    state_42:
534
        ch = next();
535
        if (ch.unicode() == 92)
536
            goto state_45;
537
        if (ch.unicode() == 95)
538
            goto state_46;
539
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
540
            goto state_46;
541
        goto out;
542
    state_43:
543
        ch = next();
544
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
545
            goto state_39;
546
        goto out;
547
    state_44:
548
        lastAcceptingPos = pos;
549
        token = QCss::NUMBER;
550
        ch = next();
551
        if (ch.unicode() == 37)
552
            goto state_41;
553
        if (ch.unicode() == 45)
554
            goto state_42;
555
        if (ch.unicode() == 46)
556
            goto state_43;
557
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
558
            goto state_44;
559
        if (ch.unicode() == 92)
560
            goto state_45;
561
        if (ch.unicode() == 95)
562
            goto state_46;
563
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
564
            goto state_46;
565
        goto out;
566
    state_45:
567
        ch = next();
568
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
569
            goto state_70;
570
        if (ch.unicode() == 11)
571
            goto state_70;
572
        if (ch.unicode() >= 14 && ch.unicode() <= 47)
573
            goto state_70;
574
        if (ch.unicode() >= 58 && ch.unicode() <= 96)
575
            goto state_70;
576
        if (ch.unicode() >= 103)
577
            goto state_70;
578
        goto out;
579
    state_46:
580
        lastAcceptingPos = pos;
581
        token = QCss::LENGTH;
582
        ch = next();
583
        if (ch.unicode() == 45)
584
            goto state_71;
585
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
586
            goto state_71;
587
        if (ch.unicode() == 92)
588
            goto state_72;
589
        if (ch.unicode() == 95)
590
            goto state_71;
591
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
592
            goto state_71;
593
        goto out;
594
    state_47:
595
        ch = next();
596
        if (ch.unicode() == 45)
597
            goto state_73;
598
        goto out;
599
    state_48:
600
        ch = next();
601
        if (ch.unicode() == 92)
602
            goto state_49;
603
        if (ch.unicode() == 95)
604
            goto state_50;
605
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
606
            goto state_50;
607
        goto out;
608
    state_49:
609
        ch = next();
610
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
611
            goto state_74;
612
        if (ch.unicode() == 11)
613
            goto state_74;
614
        if (ch.unicode() >= 14 && ch.unicode() <= 47)
615
            goto state_74;
616
        if (ch.unicode() >= 58 && ch.unicode() <= 96)
617
            goto state_74;
618
        if (ch.unicode() >= 103)
619
            goto state_74;
620
        goto out;
621
    state_50:
622
        lastAcceptingPos = pos;
623
        token = QCss::ATKEYWORD_SYM;
624
        ch = next();
625
        if (ch.unicode() == 45)
626
            goto state_75;
627
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
628
            goto state_75;
629
        if (ch.unicode() == 92)
630
            goto state_76;
631
        if (ch.unicode() == 95)
632
            goto state_75;
633
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
634
            goto state_75;
635
        goto out;
636
    state_51:
637
        lastAcceptingPos = pos;
638
        token = QCss::IDENT;
639
        ch = next();
640
        if (ch.unicode() == 40)
641
            goto state_52;
642
        if (ch.unicode() == 45)
643
            goto state_53;
644
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
645
            goto state_53;
646
        if (ch.unicode() == 92)
647
            goto state_54;
648
        if (ch.unicode() == 95)
649
            goto state_53;
650
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
651
            goto state_53;
652
        goto out;
653
    state_52:
654
        lastAcceptingPos = pos;
655
        token = QCss::FUNCTION;
656
        goto out;
657
    state_53:
658
        lastAcceptingPos = pos;
659
        token = QCss::IDENT;
660
        ch = next();
661
        if (ch.unicode() == 40)
662
            goto state_52;
663
        if (ch.unicode() == 45)
664
            goto state_53;
665
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
666
            goto state_53;
667
        if (ch.unicode() == 92)
668
            goto state_54;
669
        if (ch.unicode() == 95)
670
            goto state_53;
671
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
672
            goto state_53;
673
        goto out;
674
    state_54:
675
        ch = next();
676
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
677
            goto state_77;
678
        if (ch.unicode() == 11)
679
            goto state_77;
680
        if (ch.unicode() >= 14 && ch.unicode() <= 47)
681
            goto state_77;
682
        if (ch.unicode() >= 58 && ch.unicode() <= 96)
683
            goto state_77;
684
        if (ch.unicode() >= 103)
685
            goto state_77;
686
        goto out;
687
    state_57:
688
        lastAcceptingPos = pos;
689
        token = QCss::INVALID;
690
        ch = next();
691
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
692
            goto state_30;
693
        if (ch.unicode() == 11)
694
            goto state_30;
695
        if (ch.unicode() >= 14 && ch.unicode() <= 33)
696
            goto state_30;
697
        if (ch.unicode() == 34)
698
            goto state_31;
699
        if (ch.unicode() >= 35 && ch.unicode() <= 91)
700
            goto state_30;
701
        if (ch.unicode() == 92)
702
            goto state_32;
703
        if (ch.unicode() >= 93 && ch.unicode() <= 96)
704
            goto state_30;
705
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
706
            goto state_30;
707
        if (ch.unicode() >= 123)
708
            goto state_30;
709
        goto out;
710
    state_58:
711
        lastAcceptingPos = pos;
712
        token = QCss::INVALID;
713
        ch = next();
714
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
715
            goto state_30;
716
        if (ch.unicode() == 11)
717
            goto state_30;
718
        if (ch.unicode() >= 14 && ch.unicode() <= 33)
719
            goto state_30;
720
        if (ch.unicode() == 34)
721
            goto state_31;
722
        if (ch.unicode() >= 35 && ch.unicode() <= 91)
723
            goto state_30;
724
        if (ch.unicode() == 92)
725
            goto state_32;
726
        if (ch.unicode() >= 93 && ch.unicode() <= 96)
727
            goto state_30;
728
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
729
            goto state_30;
730
        if (ch.unicode() >= 123)
731
            goto state_30;
732
        goto out;
733
    state_59:
734
        lastAcceptingPos = pos;
735
        token = QCss::INVALID;
736
        ch = next();
737
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
738
            goto state_30;
739
        if (ch.unicode() == 11)
740
            goto state_30;
741
        if (ch.unicode() >= 14 && ch.unicode() <= 33)
742
            goto state_30;
743
        if (ch.unicode() == 34)
744
            goto state_31;
745
        if (ch.unicode() >= 35 && ch.unicode() <= 91)
746
            goto state_30;
747
        if (ch.unicode() == 92)
748
            goto state_32;
749
        if (ch.unicode() >= 93 && ch.unicode() <= 96)
750
            goto state_30;
751
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
752
            goto state_30;
753
        if (ch.unicode() >= 123)
754
            goto state_30;
755
        goto out;
756
    state_60:
757
        lastAcceptingPos = pos;
758
        token = QCss::INVALID;
759
        ch = next();
760
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
761
            goto state_30;
762
        if (ch.unicode() == 10)
763
            goto state_78;
764
        if (ch.unicode() == 11)
765
            goto state_30;
766
        if (ch.unicode() >= 14 && ch.unicode() <= 33)
767
            goto state_30;
768
        if (ch.unicode() == 34)
769
            goto state_31;
770
        if (ch.unicode() >= 35 && ch.unicode() <= 91)
771
            goto state_30;
772
        if (ch.unicode() == 92)
773
            goto state_32;
774
        if (ch.unicode() >= 93 && ch.unicode() <= 96)
775
            goto state_30;
776
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
777
            goto state_30;
778
        if (ch.unicode() >= 123)
779
            goto state_30;
780
        goto out;
781
    state_61:
782
        lastAcceptingPos = pos;
783
        token = QCss::HASH;
784
        ch = next();
785
        if (ch.unicode() == 45)
786
            goto state_61;
787
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
788
            goto state_61;
789
        if (ch.unicode() == 92)
790
            goto state_62;
791
        if (ch.unicode() == 95)
792
            goto state_61;
793
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
794
            goto state_61;
795
        goto out;
796
    state_62:
797
        ch = next();
798
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
799
            goto state_79;
800
        if (ch.unicode() == 11)
801
            goto state_79;
802
        if (ch.unicode() >= 14 && ch.unicode() <= 47)
803
            goto state_79;
804
        if (ch.unicode() >= 58 && ch.unicode() <= 96)
805
            goto state_79;
806
        if (ch.unicode() >= 103)
807
            goto state_79;
808
        goto out;
809
    state_63:
810
        lastAcceptingPos = pos;
811
        token = QCss::HASH;
812
        ch = next();
813
        if (ch.unicode() == 45)
814
            goto state_61;
815
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
816
            goto state_61;
817
        if (ch.unicode() == 92)
818
            goto state_62;
819
        if (ch.unicode() == 95)
820
            goto state_61;
821
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
822
            goto state_61;
823
        goto out;
824
    state_64:
825
        lastAcceptingPos = pos;
826
        token = QCss::INVALID;
827
        ch = next();
828
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
829
            goto state_35;
830
        if (ch.unicode() == 11)
831
            goto state_35;
832
        if (ch.unicode() >= 14 && ch.unicode() <= 38)
833
            goto state_35;
834
        if (ch.unicode() == 39)
835
            goto state_36;
836
        if (ch.unicode() >= 40 && ch.unicode() <= 91)
837
            goto state_35;
838
        if (ch.unicode() == 92)
839
            goto state_37;
840
        if (ch.unicode() >= 93 && ch.unicode() <= 96)
841
            goto state_35;
842
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
843
            goto state_35;
844
        if (ch.unicode() >= 123)
845
            goto state_35;
846
        goto out;
847
    state_65:
848
        lastAcceptingPos = pos;
849
        token = QCss::INVALID;
850
        ch = next();
851
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
852
            goto state_35;
853
        if (ch.unicode() == 11)
854
            goto state_35;
855
        if (ch.unicode() >= 14 && ch.unicode() <= 38)
856
            goto state_35;
857
        if (ch.unicode() == 39)
858
            goto state_36;
859
        if (ch.unicode() >= 40 && ch.unicode() <= 91)
860
            goto state_35;
861
        if (ch.unicode() == 92)
862
            goto state_37;
863
        if (ch.unicode() >= 93 && ch.unicode() <= 96)
864
            goto state_35;
865
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
866
            goto state_35;
867
        if (ch.unicode() >= 123)
868
            goto state_35;
869
        goto out;
870
    state_66:
871
        lastAcceptingPos = pos;
872
        token = QCss::INVALID;
873
        ch = next();
874
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
875
            goto state_35;
876
        if (ch.unicode() == 11)
877
            goto state_35;
878
        if (ch.unicode() >= 14 && ch.unicode() <= 38)
879
            goto state_35;
880
        if (ch.unicode() == 39)
881
            goto state_36;
882
        if (ch.unicode() >= 40 && ch.unicode() <= 91)
883
            goto state_35;
884
        if (ch.unicode() == 92)
885
            goto state_37;
886
        if (ch.unicode() >= 93 && ch.unicode() <= 96)
887
            goto state_35;
888
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
889
            goto state_35;
890
        if (ch.unicode() >= 123)
891
            goto state_35;
892
        goto out;
893
    state_67:
894
        lastAcceptingPos = pos;
895
        token = QCss::INVALID;
896
        ch = next();
897
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
898
            goto state_35;
899
        if (ch.unicode() == 10)
900
            goto state_80;
901
        if (ch.unicode() == 11)
902
            goto state_35;
903
        if (ch.unicode() >= 14 && ch.unicode() <= 38)
904
            goto state_35;
905
        if (ch.unicode() == 39)
906
            goto state_36;
907
        if (ch.unicode() >= 40 && ch.unicode() <= 91)
908
            goto state_35;
909
        if (ch.unicode() == 92)
910
            goto state_37;
911
        if (ch.unicode() >= 93 && ch.unicode() <= 96)
912
            goto state_35;
913
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
914
            goto state_35;
915
        if (ch.unicode() >= 123)
916
            goto state_35;
917
        goto out;
918
    state_69:
919
        lastAcceptingPos = pos;
920
        token = QCss::NUMBER;
921
        ch = next();
922
        if (ch.unicode() == 37)
923
            goto state_41;
924
        if (ch.unicode() == 45)
925
            goto state_42;
926
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
927
            goto state_69;
928
        if (ch.unicode() == 92)
929
            goto state_45;
930
        if (ch.unicode() == 95)
931
            goto state_46;
932
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
933
            goto state_46;
934
        goto out;
935
    state_70:
936
        lastAcceptingPos = pos;
937
        token = QCss::LENGTH;
938
        ch = next();
939
        if (ch.unicode() == 45)
940
            goto state_71;
941
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
942
            goto state_71;
943
        if (ch.unicode() == 92)
944
            goto state_72;
945
        if (ch.unicode() == 95)
946
            goto state_71;
947
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
948
            goto state_71;
949
        goto out;
950
    state_71:
951
        lastAcceptingPos = pos;
952
        token = QCss::LENGTH;
953
        ch = next();
954
        if (ch.unicode() == 45)
955
            goto state_71;
956
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
957
            goto state_71;
958
        if (ch.unicode() == 92)
959
            goto state_72;
960
        if (ch.unicode() == 95)
961
            goto state_71;
962
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
963
            goto state_71;
964
        goto out;
965
    state_72:
966
        ch = next();
967
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
968
            goto state_81;
969
        if (ch.unicode() == 11)
970
            goto state_81;
971
        if (ch.unicode() >= 14 && ch.unicode() <= 47)
972
            goto state_81;
973
        if (ch.unicode() >= 58 && ch.unicode() <= 96)
974
            goto state_81;
975
        if (ch.unicode() >= 103)
976
            goto state_81;
977
        goto out;
978
    state_73:
979
        ch = next();
980
        if (ch.unicode() == 45) {
981
            token = QCss::CDO;
982
            goto found;
983
        }
984
        goto out;
985
    state_74:
986
        lastAcceptingPos = pos;
987
        token = QCss::ATKEYWORD_SYM;
988
        ch = next();
989
        if (ch.unicode() == 45)
990
            goto state_75;
991
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
992
            goto state_75;
993
        if (ch.unicode() == 92)
994
            goto state_76;
995
        if (ch.unicode() == 95)
996
            goto state_75;
997
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
998
            goto state_75;
999
        goto out;
1000
    state_75:
1001
        lastAcceptingPos = pos;
1002
        token = QCss::ATKEYWORD_SYM;
1003
        ch = next();
1004
        if (ch.unicode() == 45)
1005
            goto state_75;
1006
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
1007
            goto state_75;
1008
        if (ch.unicode() == 92)
1009
            goto state_76;
1010
        if (ch.unicode() == 95)
1011
            goto state_75;
1012
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
1013
            goto state_75;
1014
        goto out;
1015
    state_76:
1016
        ch = next();
1017
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
1018
            goto state_83;
1019
        if (ch.unicode() == 11)
1020
            goto state_83;
1021
        if (ch.unicode() >= 14 && ch.unicode() <= 47)
1022
            goto state_83;
1023
        if (ch.unicode() >= 58 && ch.unicode() <= 96)
1024
            goto state_83;
1025
        if (ch.unicode() >= 103)
1026
            goto state_83;
1027
        goto out;
1028
    state_77:
1029
        lastAcceptingPos = pos;
1030
        token = QCss::IDENT;
1031
        ch = next();
1032
        if (ch.unicode() == 40)
1033
            goto state_52;
1034
        if (ch.unicode() == 45)
1035
            goto state_53;
1036
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
1037
            goto state_53;
1038
        if (ch.unicode() == 92)
1039
            goto state_54;
1040
        if (ch.unicode() == 95)
1041
            goto state_53;
1042
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
1043
            goto state_53;
1044
        goto out;
1045
    state_78:
1046
        lastAcceptingPos = pos;
1047
        token = QCss::INVALID;
1048
        ch = next();
1049
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
1050
            goto state_30;
1051
        if (ch.unicode() == 11)
1052
            goto state_30;
1053
        if (ch.unicode() >= 14 && ch.unicode() <= 33)
1054
            goto state_30;
1055
        if (ch.unicode() == 34)
1056
            goto state_31;
1057
        if (ch.unicode() >= 35 && ch.unicode() <= 91)
1058
            goto state_30;
1059
        if (ch.unicode() == 92)
1060
            goto state_32;
1061
        if (ch.unicode() >= 93 && ch.unicode() <= 96)
1062
            goto state_30;
1063
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
1064
            goto state_30;
1065
        if (ch.unicode() >= 123)
1066
            goto state_30;
1067
        goto out;
1068
    state_79:
1069
        lastAcceptingPos = pos;
1070
        token = QCss::HASH;
1071
        ch = next();
1072
        if (ch.unicode() == 45)
1073
            goto state_61;
1074
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
1075
            goto state_61;
1076
        if (ch.unicode() == 92)
1077
            goto state_62;
1078
        if (ch.unicode() == 95)
1079
            goto state_61;
1080
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
1081
            goto state_61;
1082
        goto out;
1083
    state_80:
1084
        lastAcceptingPos = pos;
1085
        token = QCss::INVALID;
1086
        ch = next();
1087
        if (ch.unicode() >= 1 && ch.unicode() <= 9)
1088
            goto state_35;
1089
        if (ch.unicode() == 11)
1090
            goto state_35;
1091
        if (ch.unicode() >= 14 && ch.unicode() <= 38)
1092
            goto state_35;
1093
        if (ch.unicode() == 39)
1094
            goto state_36;
1095
        if (ch.unicode() >= 40 && ch.unicode() <= 91)
1096
            goto state_35;
1097
        if (ch.unicode() == 92)
1098
            goto state_37;
1099
        if (ch.unicode() >= 93 && ch.unicode() <= 96)
1100
            goto state_35;
1101
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
1102
            goto state_35;
1103
        if (ch.unicode() >= 123)
1104
            goto state_35;
1105
        goto out;
1106
    state_81:
1107
        lastAcceptingPos = pos;
1108
        token = QCss::LENGTH;
1109
        ch = next();
1110
        if (ch.unicode() == 45)
1111
            goto state_71;
1112
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
1113
            goto state_71;
1114
        if (ch.unicode() == 92)
1115
            goto state_72;
1116
        if (ch.unicode() == 95)
1117
            goto state_71;
1118
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
1119
            goto state_71;
1120
        goto out;
1121
    state_83:
1122
        lastAcceptingPos = pos;
1123
        token = QCss::ATKEYWORD_SYM;
1124
        ch = next();
1125
        if (ch.unicode() == 45)
1126
            goto state_75;
1127
        if (ch.unicode() >= 48 && ch.unicode() <= 57)
1128
            goto state_75;
1129
        if (ch.unicode() == 92)
1130
            goto state_76;
1131
        if (ch.unicode() == 95)
1132
            goto state_75;
1133
        if ((ch.unicode() >= 'a' && ch.unicode() <= 'z') || (ch.unicode() >= 'A' && ch.unicode() <= 'Z') || ch.unicode() >= 256)
1134
            goto state_75;
1135
        goto out;
1136
    found:
1137
    lastAcceptingPos = pos;
1138
1139
    out:
1140
    if (lastAcceptingPos != -1) {
1141
        lexemLength = lastAcceptingPos - lexemStart;
1142
        pos = lastAcceptingPos;
1143
    }
1144
    return token;
1145
}