-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuri.cc
10938 lines (10916 loc) · 208 KB
/
uri.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#line 1 "uri.rl"
#include "uri.h"
#include <sstream>
namespace sylar {
#line 9 "uri.cc"
static const int uri_parser_start = 451;
static const int uri_parser_first_final = 451;
static const int uri_parser_error = 0;
static const int uri_parser_en_main = 451;
#line 132 "uri.rl"
Uri::ptr Uri::Create(const std::string& uristr) {
Uri::ptr uri(new Uri);
int cs = 0;
const char* mark = 0;
#line 25 "uri.cc"
{
cs = uri_parser_start;
}
#line 139 "uri.rl"
const char *p = uristr.c_str();
const char *pe = p + uristr.size();
const char* eof = pe;
#line 35 "uri.cc"
{
if ( p == pe )
goto _test_eof;
switch ( cs )
{
case 451:
switch( (*p) ) {
case 34: goto st0;
case 35: goto st453;
case 37: goto st3;
case 47: goto st458;
case 58: goto st0;
case 60: goto st0;
case 62: goto st0;
case 63: goto st456;
case 96: goto st0;
case 127: goto st0;
}
if ( (*p) < 91 ) {
if ( (*p) > 32 ) {
if ( 65 <= (*p) && (*p) <= 90 )
goto tr461;
} else if ( (*p) >= 0 )
goto st0;
} else if ( (*p) > 94 ) {
if ( (*p) > 122 ) {
if ( 123 <= (*p) && (*p) <= 125 )
goto st0;
} else if ( (*p) >= 97 )
goto tr461;
} else
goto st0;
goto st452;
st452:
if ( ++p == pe )
goto _test_eof452;
case 452:
switch( (*p) ) {
case 34: goto st0;
case 35: goto st453;
case 37: goto st3;
case 47: goto st455;
case 58: goto st0;
case 60: goto st0;
case 62: goto st0;
case 63: goto st456;
case 96: goto st0;
case 127: goto st0;
}
if ( (*p) < 91 ) {
if ( 0 <= (*p) && (*p) <= 32 )
goto st0;
} else if ( (*p) > 94 ) {
if ( 123 <= (*p) && (*p) <= 125 )
goto st0;
} else
goto st0;
goto st452;
st0:
cs = 0;
goto _out;
tr467:
#line 16 "uri.rl"
{ mark = p; }
#line 104 "uri.rl"
{
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setQuery(std::string(mark, p - mark));
mark = NULL;
}
goto st453;
tr469:
#line 104 "uri.rl"
{
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setQuery(std::string(mark, p - mark));
mark = NULL;
}
goto st453;
tr474:
#line 17 "uri.rl"
{ mark = p; }
#line 43 "uri.rl"
{
if (mark != NULL) {
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setHost(std::string(mark, p - mark));
}
}
goto st453;
tr485:
#line 43 "uri.rl"
{
if (mark != NULL) {
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setHost(std::string(mark, p - mark));
}
}
goto st453;
tr489:
#line 17 "uri.rl"
{ mark = p; }
#line 28 "uri.rl"
{
if (p != mark) {
uri->setPort(atoi(mark));
}
mark = NULL;
}
goto st453;
tr493:
#line 28 "uri.rl"
{
if (p != mark) {
uri->setPort(atoi(mark));
}
mark = NULL;
}
goto st453;
tr548:
#line 17 "uri.rl"
{ mark = p; }
#line 43 "uri.rl"
{
if (mark != NULL) {
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setHost(std::string(mark, p - mark));
}
}
#line 78 "uri.rl"
{
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setPath(std::string(mark, p - mark));
mark = NULL;
}
goto st453;
tr559:
#line 43 "uri.rl"
{
if (mark != NULL) {
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setHost(std::string(mark, p - mark));
}
}
#line 17 "uri.rl"
{ mark = p; }
#line 78 "uri.rl"
{
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setPath(std::string(mark, p - mark));
mark = NULL;
}
goto st453;
tr563:
#line 78 "uri.rl"
{
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setPath(std::string(mark, p - mark));
mark = NULL;
}
goto st453;
tr566:
#line 17 "uri.rl"
{ mark = p; }
#line 28 "uri.rl"
{
if (p != mark) {
uri->setPort(atoi(mark));
}
mark = NULL;
}
#line 78 "uri.rl"
{
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setPath(std::string(mark, p - mark));
mark = NULL;
}
goto st453;
tr570:
#line 28 "uri.rl"
{
if (p != mark) {
uri->setPort(atoi(mark));
}
mark = NULL;
}
#line 17 "uri.rl"
{ mark = p; }
#line 78 "uri.rl"
{
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setPath(std::string(mark, p - mark));
mark = NULL;
}
goto st453;
st453:
if ( ++p == pe )
goto _test_eof453;
case 453:
#line 235 "uri.cc"
switch( (*p) ) {
case 37: goto tr463;
case 60: goto st0;
case 62: goto st0;
case 96: goto st0;
case 127: goto st0;
}
if ( (*p) < 34 ) {
if ( 0 <= (*p) && (*p) <= 32 )
goto st0;
} else if ( (*p) > 35 ) {
if ( (*p) > 94 ) {
if ( 123 <= (*p) && (*p) <= 125 )
goto st0;
} else if ( (*p) >= 91 )
goto st0;
} else
goto st0;
goto tr462;
tr462:
#line 16 "uri.rl"
{ mark = p; }
goto st454;
st454:
if ( ++p == pe )
goto _test_eof454;
case 454:
#line 263 "uri.cc"
switch( (*p) ) {
case 37: goto st1;
case 60: goto st0;
case 62: goto st0;
case 96: goto st0;
case 127: goto st0;
}
if ( (*p) < 34 ) {
if ( 0 <= (*p) && (*p) <= 32 )
goto st0;
} else if ( (*p) > 35 ) {
if ( (*p) > 94 ) {
if ( 123 <= (*p) && (*p) <= 125 )
goto st0;
} else if ( (*p) >= 91 )
goto st0;
} else
goto st0;
goto st454;
tr463:
#line 16 "uri.rl"
{ mark = p; }
goto st1;
st1:
if ( ++p == pe )
goto _test_eof1;
case 1:
#line 291 "uri.cc"
if ( (*p) < 65 ) {
if ( 48 <= (*p) && (*p) <= 57 )
goto st2;
} else if ( (*p) > 70 ) {
if ( 97 <= (*p) && (*p) <= 102 )
goto st2;
} else
goto st2;
goto st0;
st2:
if ( ++p == pe )
goto _test_eof2;
case 2:
if ( (*p) < 65 ) {
if ( 48 <= (*p) && (*p) <= 57 )
goto st454;
} else if ( (*p) > 70 ) {
if ( 97 <= (*p) && (*p) <= 102 )
goto st454;
} else
goto st454;
goto st0;
st3:
if ( ++p == pe )
goto _test_eof3;
case 3:
if ( (*p) < 65 ) {
if ( 48 <= (*p) && (*p) <= 57 )
goto st4;
} else if ( (*p) > 70 ) {
if ( 97 <= (*p) && (*p) <= 102 )
goto st4;
} else
goto st4;
goto st0;
st4:
if ( ++p == pe )
goto _test_eof4;
case 4:
if ( (*p) < 65 ) {
if ( 48 <= (*p) && (*p) <= 57 )
goto st452;
} else if ( (*p) > 70 ) {
if ( 97 <= (*p) && (*p) <= 102 )
goto st452;
} else
goto st452;
goto st0;
tr476:
#line 17 "uri.rl"
{ mark = p; }
#line 43 "uri.rl"
{
if (mark != NULL) {
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setHost(std::string(mark, p - mark));
}
}
goto st455;
tr486:
#line 43 "uri.rl"
{
if (mark != NULL) {
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setHost(std::string(mark, p - mark));
}
}
goto st455;
tr490:
#line 17 "uri.rl"
{ mark = p; }
#line 28 "uri.rl"
{
if (p != mark) {
uri->setPort(atoi(mark));
}
mark = NULL;
}
goto st455;
tr494:
#line 28 "uri.rl"
{
if (p != mark) {
uri->setPort(atoi(mark));
}
mark = NULL;
}
goto st455;
st455:
if ( ++p == pe )
goto _test_eof455;
case 455:
#line 384 "uri.cc"
switch( (*p) ) {
case 34: goto st0;
case 35: goto st453;
case 37: goto st5;
case 60: goto st0;
case 62: goto st0;
case 63: goto st456;
case 96: goto st0;
case 127: goto st0;
}
if ( (*p) < 91 ) {
if ( 0 <= (*p) && (*p) <= 32 )
goto st0;
} else if ( (*p) > 94 ) {
if ( 123 <= (*p) && (*p) <= 125 )
goto st0;
} else
goto st0;
goto st455;
st5:
if ( ++p == pe )
goto _test_eof5;
case 5:
if ( (*p) < 65 ) {
if ( 48 <= (*p) && (*p) <= 57 )
goto st6;
} else if ( (*p) > 70 ) {
if ( 97 <= (*p) && (*p) <= 102 )
goto st6;
} else
goto st6;
goto st0;
st6:
if ( ++p == pe )
goto _test_eof6;
case 6:
if ( (*p) < 65 ) {
if ( 48 <= (*p) && (*p) <= 57 )
goto st455;
} else if ( (*p) > 70 ) {
if ( 97 <= (*p) && (*p) <= 102 )
goto st455;
} else
goto st455;
goto st0;
tr482:
#line 17 "uri.rl"
{ mark = p; }
#line 43 "uri.rl"
{
if (mark != NULL) {
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setHost(std::string(mark, p - mark));
}
}
goto st456;
tr488:
#line 43 "uri.rl"
{
if (mark != NULL) {
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setHost(std::string(mark, p - mark));
}
}
goto st456;
tr492:
#line 17 "uri.rl"
{ mark = p; }
#line 28 "uri.rl"
{
if (p != mark) {
uri->setPort(atoi(mark));
}
mark = NULL;
}
goto st456;
tr496:
#line 28 "uri.rl"
{
if (p != mark) {
uri->setPort(atoi(mark));
}
mark = NULL;
}
goto st456;
tr556:
#line 17 "uri.rl"
{ mark = p; }
#line 43 "uri.rl"
{
if (mark != NULL) {
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setHost(std::string(mark, p - mark));
}
}
#line 78 "uri.rl"
{
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setPath(std::string(mark, p - mark));
mark = NULL;
}
goto st456;
tr562:
#line 43 "uri.rl"
{
if (mark != NULL) {
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setHost(std::string(mark, p - mark));
}
}
#line 17 "uri.rl"
{ mark = p; }
#line 78 "uri.rl"
{
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setPath(std::string(mark, p - mark));
mark = NULL;
}
goto st456;
tr565:
#line 78 "uri.rl"
{
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setPath(std::string(mark, p - mark));
mark = NULL;
}
goto st456;
tr569:
#line 17 "uri.rl"
{ mark = p; }
#line 28 "uri.rl"
{
if (p != mark) {
uri->setPort(atoi(mark));
}
mark = NULL;
}
#line 78 "uri.rl"
{
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setPath(std::string(mark, p - mark));
mark = NULL;
}
goto st456;
tr573:
#line 28 "uri.rl"
{
if (p != mark) {
uri->setPort(atoi(mark));
}
mark = NULL;
}
#line 17 "uri.rl"
{ mark = p; }
#line 78 "uri.rl"
{
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setPath(std::string(mark, p - mark));
mark = NULL;
}
goto st456;
st456:
if ( ++p == pe )
goto _test_eof456;
case 456:
#line 550 "uri.cc"
switch( (*p) ) {
case 34: goto st0;
case 35: goto tr467;
case 37: goto tr468;
case 60: goto st0;
case 62: goto st0;
case 96: goto st0;
case 127: goto st0;
}
if ( (*p) < 91 ) {
if ( 0 <= (*p) && (*p) <= 32 )
goto st0;
} else if ( (*p) > 94 ) {
if ( 123 <= (*p) && (*p) <= 125 )
goto st0;
} else
goto st0;
goto tr466;
tr466:
#line 16 "uri.rl"
{ mark = p; }
goto st457;
st457:
if ( ++p == pe )
goto _test_eof457;
case 457:
#line 577 "uri.cc"
switch( (*p) ) {
case 34: goto st0;
case 35: goto tr469;
case 37: goto st7;
case 60: goto st0;
case 62: goto st0;
case 96: goto st0;
case 127: goto st0;
}
if ( (*p) < 91 ) {
if ( 0 <= (*p) && (*p) <= 32 )
goto st0;
} else if ( (*p) > 94 ) {
if ( 123 <= (*p) && (*p) <= 125 )
goto st0;
} else
goto st0;
goto st457;
tr468:
#line 16 "uri.rl"
{ mark = p; }
goto st7;
st7:
if ( ++p == pe )
goto _test_eof7;
case 7:
#line 604 "uri.cc"
if ( (*p) < 65 ) {
if ( 48 <= (*p) && (*p) <= 57 )
goto st8;
} else if ( (*p) > 70 ) {
if ( 97 <= (*p) && (*p) <= 102 )
goto st8;
} else
goto st8;
goto st0;
st8:
if ( ++p == pe )
goto _test_eof8;
case 8:
if ( (*p) < 65 ) {
if ( 48 <= (*p) && (*p) <= 57 )
goto st457;
} else if ( (*p) > 70 ) {
if ( 97 <= (*p) && (*p) <= 102 )
goto st457;
} else
goto st457;
goto st0;
st458:
if ( ++p == pe )
goto _test_eof458;
case 458:
switch( (*p) ) {
case 34: goto st0;
case 35: goto st453;
case 37: goto st5;
case 47: goto st459;
case 60: goto st0;
case 62: goto st0;
case 63: goto st456;
case 96: goto st0;
case 127: goto st0;
}
if ( (*p) < 91 ) {
if ( 0 <= (*p) && (*p) <= 32 )
goto st0;
} else if ( (*p) > 94 ) {
if ( 123 <= (*p) && (*p) <= 125 )
goto st0;
} else
goto st0;
goto st455;
st459:
if ( ++p == pe )
goto _test_eof459;
case 459:
switch( (*p) ) {
case 2: goto tr472;
case 33: goto tr473;
case 35: goto tr474;
case 37: goto tr475;
case 47: goto tr476;
case 48: goto tr477;
case 49: goto tr478;
case 50: goto tr479;
case 58: goto tr481;
case 59: goto tr473;
case 61: goto tr473;
case 63: goto tr482;
case 64: goto tr483;
case 91: goto tr484;
case 95: goto tr473;
case 126: goto tr473;
}
if ( (*p) < 51 ) {
if ( 36 <= (*p) && (*p) <= 46 )
goto tr473;
} else if ( (*p) > 57 ) {
if ( (*p) > 90 ) {
if ( 97 <= (*p) && (*p) <= 122 )
goto tr473;
} else if ( (*p) >= 65 )
goto tr473;
} else
goto tr480;
goto st0;
tr472:
#line 17 "uri.rl"
{ mark = p; }
goto st9;
st9:
if ( ++p == pe )
goto _test_eof9;
case 9:
#line 693 "uri.cc"
if ( 48 <= (*p) && (*p) <= 52 )
goto st10;
goto st0;
st10:
if ( ++p == pe )
goto _test_eof10;
case 10:
if ( 48 <= (*p) && (*p) <= 57 )
goto st11;
goto st0;
st11:
if ( ++p == pe )
goto _test_eof11;
case 11:
if ( (*p) == 46 )
goto st12;
goto st0;
st12:
if ( ++p == pe )
goto _test_eof12;
case 12:
switch( (*p) ) {
case 2: goto st13;
case 48: goto st15;
case 49: goto st27;
case 50: goto st29;
}
if ( 51 <= (*p) && (*p) <= 57 )
goto st28;
goto st0;
st13:
if ( ++p == pe )
goto _test_eof13;
case 13:
if ( 48 <= (*p) && (*p) <= 52 )
goto st14;
goto st0;
st14:
if ( ++p == pe )
goto _test_eof14;
case 14:
if ( 48 <= (*p) && (*p) <= 57 )
goto st15;
goto st0;
st15:
if ( ++p == pe )
goto _test_eof15;
case 15:
if ( (*p) == 46 )
goto st16;
goto st0;
st16:
if ( ++p == pe )
goto _test_eof16;
case 16:
switch( (*p) ) {
case 2: goto st17;
case 48: goto st19;
case 49: goto st23;
case 50: goto st25;
}
if ( 51 <= (*p) && (*p) <= 57 )
goto st24;
goto st0;
st17:
if ( ++p == pe )
goto _test_eof17;
case 17:
if ( 48 <= (*p) && (*p) <= 52 )
goto st18;
goto st0;
st18:
if ( ++p == pe )
goto _test_eof18;
case 18:
if ( 48 <= (*p) && (*p) <= 57 )
goto st19;
goto st0;
st19:
if ( ++p == pe )
goto _test_eof19;
case 19:
if ( (*p) == 46 )
goto st20;
goto st0;
st20:
if ( ++p == pe )
goto _test_eof20;
case 20:
switch( (*p) ) {
case 2: goto st21;
case 48: goto st460;
case 49: goto st463;
case 50: goto st465;
}
if ( 51 <= (*p) && (*p) <= 57 )
goto st464;
goto st0;
st21:
if ( ++p == pe )
goto _test_eof21;
case 21:
if ( 48 <= (*p) && (*p) <= 52 )
goto st22;
goto st0;
st22:
if ( ++p == pe )
goto _test_eof22;
case 22:
if ( 48 <= (*p) && (*p) <= 57 )
goto st460;
goto st0;
st460:
if ( ++p == pe )
goto _test_eof460;
case 460:
switch( (*p) ) {
case 35: goto tr485;
case 47: goto tr486;
case 58: goto tr487;
case 63: goto tr488;
}
goto st0;
tr507:
#line 17 "uri.rl"
{ mark = p; }
#line 43 "uri.rl"
{
if (mark != NULL) {
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setHost(std::string(mark, p - mark));
}
}
goto st461;
tr487:
#line 43 "uri.rl"
{
if (mark != NULL) {
//std::cout << std::string(mark, fpc - mark) << std::endl;
uri->setHost(std::string(mark, p - mark));
}
}
goto st461;
st461:
if ( ++p == pe )
goto _test_eof461;
case 461:
#line 841 "uri.cc"
switch( (*p) ) {
case 35: goto tr489;
case 47: goto tr490;
case 63: goto tr492;
}
if ( 48 <= (*p) && (*p) <= 57 )
goto tr491;
goto st0;
tr491:
#line 17 "uri.rl"
{ mark = p; }
goto st462;
st462:
if ( ++p == pe )
goto _test_eof462;
case 462:
#line 858 "uri.cc"
switch( (*p) ) {
case 35: goto tr493;
case 47: goto tr494;
case 63: goto tr496;
}
if ( 48 <= (*p) && (*p) <= 57 )
goto st462;
goto st0;
st463:
if ( ++p == pe )
goto _test_eof463;
case 463:
switch( (*p) ) {
case 35: goto tr485;
case 47: goto tr486;
case 58: goto tr487;
case 63: goto tr488;
}
if ( 48 <= (*p) && (*p) <= 57 )
goto st464;
goto st0;
st464:
if ( ++p == pe )
goto _test_eof464;
case 464:
switch( (*p) ) {
case 35: goto tr485;
case 47: goto tr486;
case 58: goto tr487;
case 63: goto tr488;
}
if ( 48 <= (*p) && (*p) <= 57 )
goto st460;
goto st0;
st465:
if ( ++p == pe )
goto _test_eof465;
case 465:
switch( (*p) ) {
case 35: goto tr485;
case 47: goto tr486;
case 53: goto st466;
case 58: goto tr487;
case 63: goto tr488;
}
if ( 48 <= (*p) && (*p) <= 57 )
goto st460;
goto st0;
st466:
if ( ++p == pe )
goto _test_eof466;
case 466:
switch( (*p) ) {
case 35: goto tr485;
case 47: goto tr486;
case 58: goto tr487;
case 63: goto tr488;
}
if ( 48 <= (*p) && (*p) <= 53 )
goto st460;
goto st0;
st23:
if ( ++p == pe )
goto _test_eof23;
case 23:
if ( (*p) == 46 )
goto st20;
if ( 48 <= (*p) && (*p) <= 57 )
goto st24;
goto st0;
st24:
if ( ++p == pe )
goto _test_eof24;
case 24:
if ( (*p) == 46 )
goto st20;
if ( 48 <= (*p) && (*p) <= 57 )
goto st19;
goto st0;
st25:
if ( ++p == pe )
goto _test_eof25;
case 25:
switch( (*p) ) {
case 46: goto st20;
case 53: goto st26;
}
if ( 48 <= (*p) && (*p) <= 57 )
goto st19;
goto st0;
st26:
if ( ++p == pe )
goto _test_eof26;
case 26:
if ( (*p) == 46 )
goto st20;
if ( 48 <= (*p) && (*p) <= 53 )
goto st19;
goto st0;
st27:
if ( ++p == pe )
goto _test_eof27;
case 27:
if ( (*p) == 46 )
goto st16;
if ( 48 <= (*p) && (*p) <= 57 )
goto st28;
goto st0;
st28:
if ( ++p == pe )
goto _test_eof28;
case 28:
if ( (*p) == 46 )
goto st16;
if ( 48 <= (*p) && (*p) <= 57 )
goto st15;
goto st0;
st29:
if ( ++p == pe )
goto _test_eof29;
case 29:
switch( (*p) ) {
case 46: goto st16;
case 53: goto st30;
}
if ( 48 <= (*p) && (*p) <= 57 )
goto st15;
goto st0;
st30:
if ( ++p == pe )
goto _test_eof30;
case 30:
if ( (*p) == 46 )
goto st16;
if ( 48 <= (*p) && (*p) <= 53 )
goto st15;
goto st0;
tr473:
#line 17 "uri.rl"
{ mark = p; }
goto st467;
st467:
if ( ++p == pe )