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