@ -1,4 +1,5 @@
/* Generated by re2c 0.13.5 */
# line 1 "ext / standard / url_scanner_ex.re"
/*
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
| PHP Version 5 |
@ -99,6 +100,7 @@ PHP_INI_BEGIN()
STD_PHP_INI_ENTRY ( " url_rewriter.tags " , " a=href,area=href,frame=src,form=,fieldset= " , PHP_INI_ALL , OnUpdateTags , url_adapt_state_ex , php_basic_globals , basic_globals )
PHP_INI_END ( )
# line 107 "ext / standard / url_scanner_ex.re"
# define YYFILL(n) goto done
@ -117,6 +119,7 @@ static inline void append_modified_url(smart_str *url, smart_str *dest, smart_st
scan :
# line 123 "ext / standard / url_scanner_ex.c"
{
YYCTYPE yych ;
static const unsigned char yybm [ ] = {
@ -162,13 +165,19 @@ scan:
if ( yych < = ' 9 ' ) goto yy6 ;
if ( yych > = ' ; ' ) goto yy4 ;
+ + YYCURSOR ;
# line 125 "ext / standard / url_scanner_ex.re"
{ smart_str_append ( dest , url ) ; return ; }
# line 171 "ext / standard / url_scanner_ex.c"
yy4 :
+ + YYCURSOR ;
# line 126 "ext / standard / url_scanner_ex.re"
{ sep = separator ; goto scan ; }
# line 176 "ext / standard / url_scanner_ex.c"
yy6 :
+ + YYCURSOR ;
# line 127 "ext / standard / url_scanner_ex.re"
{ bash = p - 1 ; goto done ; }
# line 181 "ext / standard / url_scanner_ex.c"
yy8 :
+ + YYCURSOR ;
if ( YYLIMIT < = YYCURSOR ) YYFILL ( 1 ) ;
@ -176,8 +185,11 @@ yy8:
if ( yybm [ 0 + yych ] & 128 ) {
goto yy8 ;
}
# line 128 "ext / standard / url_scanner_ex.re"
{ goto scan ; }
# line 191 "ext / standard / url_scanner_ex.c"
}
# line 129 "ext / standard / url_scanner_ex.re"
done :
@ -362,6 +374,7 @@ state_plain_begin:
state_plain :
start = YYCURSOR ;
# line 378 "ext / standard / url_scanner_ex.c"
{
YYCTYPE yych ;
static const unsigned char yybm [ ] = {
@ -404,7 +417,9 @@ state_plain:
goto yy15 ;
}
+ + YYCURSOR ;
# line 313 "ext / standard / url_scanner_ex.re"
{ passthru ( STD_ARGS ) ; STATE = STATE_TAG ; goto state_tag ; }
# line 423 "ext / standard / url_scanner_ex.c"
yy15 :
+ + YYCURSOR ;
if ( YYLIMIT < = YYCURSOR ) YYFILL ( 1 ) ;
@ -412,13 +427,17 @@ yy15:
if ( yybm [ 0 + yych ] & 128 ) {
goto yy15 ;
}
# line 314 "ext / standard / url_scanner_ex.re"
{ passthru ( STD_ARGS ) ; goto state_plain ; }
# line 433 "ext / standard / url_scanner_ex.c"
}
# line 315 "ext / standard / url_scanner_ex.re"
state_tag :
start = YYCURSOR ;
# line 441 "ext / standard / url_scanner_ex.c"
{
YYCTYPE yych ;
static const unsigned char yybm [ ] = {
@ -469,10 +488,14 @@ yy20:
yych = * YYCURSOR ;
goto yy25 ;
yy21 :
# line 320 "ext / standard / url_scanner_ex.re"
{ handle_tag ( STD_ARGS ) ; /* Sets STATE */ ; passthru ( STD_ARGS ) ; if ( STATE = = STATE_PLAIN ) goto state_plain ; else goto state_next_arg ; }
# line 494 "ext / standard / url_scanner_ex.c"
yy22 :
+ + YYCURSOR ;
# line 321 "ext / standard / url_scanner_ex.re"
{ passthru ( STD_ARGS ) ; goto state_plain_begin ; }
# line 499 "ext / standard / url_scanner_ex.c"
yy24 :
+ + YYCURSOR ;
if ( YYLIMIT < = YYCURSOR ) YYFILL ( 1 ) ;
@ -483,6 +506,7 @@ yy25:
}
goto yy21 ;
}
# line 322 "ext / standard / url_scanner_ex.re"
state_next_arg_begin :
@ -491,6 +515,7 @@ state_next_arg_begin:
state_next_arg :
start = YYCURSOR ;
# line 519 "ext / standard / url_scanner_ex.c"
{
YYCTYPE yych ;
static const unsigned char yybm [ ] = {
@ -555,20 +580,28 @@ yy28:
+ + YYCURSOR ;
if ( ( yych = * YYCURSOR ) = = ' > ' ) goto yy39 ;
yy29 :
# line 333 "ext / standard / url_scanner_ex.re"
{ passthru ( STD_ARGS ) ; goto state_plain_begin ; }
# line 586 "ext / standard / url_scanner_ex.c"
yy30 :
+ + YYCURSOR ;
yy31 :
# line 330 "ext / standard / url_scanner_ex.re"
{ passthru ( STD_ARGS ) ; handle_form ( STD_ARGS ) ; goto state_plain_begin ; }
# line 592 "ext / standard / url_scanner_ex.c"
yy32 :
+ + YYCURSOR ;
yych = * YYCURSOR ;
goto yy38 ;
yy33 :
# line 331 "ext / standard / url_scanner_ex.re"
{ passthru ( STD_ARGS ) ; goto state_next_arg ; }
# line 600 "ext / standard / url_scanner_ex.c"
yy34 :
+ + YYCURSOR ;
# line 332 "ext / standard / url_scanner_ex.re"
{ - - YYCURSOR ; STATE = STATE_ARG ; goto state_arg ; }
# line 605 "ext / standard / url_scanner_ex.c"
yy36 :
yych = * + + YYCURSOR ;
goto yy29 ;
@ -586,11 +619,13 @@ yy39:
yych = * YYCURSOR ;
goto yy31 ;
}
# line 334 "ext / standard / url_scanner_ex.re"
state_arg :
start = YYCURSOR ;
# line 629 "ext / standard / url_scanner_ex.c"
{
YYCTYPE yych ;
static const unsigned char yybm [ ] = {
@ -638,10 +673,14 @@ yy42:
yych = * YYCURSOR ;
goto yy47 ;
yy43 :
# line 339 "ext / standard / url_scanner_ex.re"
{ passthru ( STD_ARGS ) ; handle_arg ( STD_ARGS ) ; STATE = STATE_BEFORE_VAL ; goto state_before_val ; }
# line 679 "ext / standard / url_scanner_ex.c"
yy44 :
+ + YYCURSOR ;
# line 340 "ext / standard / url_scanner_ex.re"
{ passthru ( STD_ARGS ) ; STATE = STATE_NEXT_ARG ; goto state_next_arg ; }
# line 684 "ext / standard / url_scanner_ex.c"
yy46 :
+ + YYCURSOR ;
if ( YYLIMIT < = YYCURSOR ) YYFILL ( 1 ) ;
@ -652,11 +691,13 @@ yy47:
}
goto yy43 ;
}
# line 341 "ext / standard / url_scanner_ex.re"
state_before_val :
start = YYCURSOR ;
# line 701 "ext / standard / url_scanner_ex.c"
{
YYCTYPE yych ;
static const unsigned char yybm [ ] = {
@ -703,13 +744,17 @@ yy50:
if ( yych = = ' ' ) goto yy57 ;
if ( yych = = ' = ' ) goto yy55 ;
yy51 :
# line 347 "ext / standard / url_scanner_ex.re"
{ - - YYCURSOR ; goto state_next_arg_begin ; }
# line 750 "ext / standard / url_scanner_ex.c"
yy52 :
+ + YYCURSOR ;
yych = * YYCURSOR ;
goto yy56 ;
yy53 :
# line 346 "ext / standard / url_scanner_ex.re"
{ passthru ( STD_ARGS ) ; STATE = STATE_VAL ; goto state_val ; }
# line 758 "ext / standard / url_scanner_ex.c"
yy54 :
yych = * + + YYCURSOR ;
goto yy51 ;
@ -731,12 +776,14 @@ yy57:
YYCURSOR = YYMARKER ;
goto yy51 ;
}
# line 348 "ext / standard / url_scanner_ex.re"
state_val :
start = YYCURSOR ;
# line 787 "ext / standard / url_scanner_ex.c"
{
YYCTYPE yych ;
static const unsigned char yybm [ ] = {
@ -797,7 +844,9 @@ state_val:
yych = * ( YYMARKER = + + YYCURSOR ) ;
if ( yych ! = ' > ' ) goto yy76 ;
yy63 :
# line 357 "ext / standard / url_scanner_ex.re"
{ passthru ( STD_ARGS ) ; goto state_next_arg_begin ; }
# line 850 "ext / standard / url_scanner_ex.c"
yy64 :
yych = * ( YYMARKER = + + YYCURSOR ) ;
if ( yych = = ' > ' ) goto yy63 ;
@ -807,7 +856,9 @@ yy65:
yych = * YYCURSOR ;
goto yy69 ;
yy66 :
# line 356 "ext / standard / url_scanner_ex.re"
{ handle_val ( STD_ARGS , 0 , ' ' ) ; goto state_next_arg_begin ; }
# line 862 "ext / standard / url_scanner_ex.c"
yy67 :
yych = * + + YYCURSOR ;
goto yy63 ;
@ -834,7 +885,9 @@ yy72:
goto yy63 ;
yy73 :
+ + YYCURSOR ;
# line 355 "ext / standard / url_scanner_ex.re"
{ handle_val ( STD_ARGS , 1 , ' \' ' ) ; goto state_next_arg_begin ; }
# line 891 "ext / standard / url_scanner_ex.c"
yy75 :
+ + YYCURSOR ;
if ( YYLIMIT < = YYCURSOR ) YYFILL ( 1 ) ;
@ -845,8 +898,11 @@ yy76:
}
if ( yych > = ' > ' ) goto yy72 ;
+ + YYCURSOR ;
# line 354 "ext / standard / url_scanner_ex.re"
{ handle_val ( STD_ARGS , 1 , ' " ' ) ; goto state_next_arg_begin ; }
# line 904 "ext / standard / url_scanner_ex.c"
}
# line 358 "ext / standard / url_scanner_ex.re"
stop :