-/* Generated by re2c 0.10.1 on Sat Jun 3 12:59:33 2007 */
-#line 1 "ext/standard/url_scanner_ex.re"
+/* Generated by re2c 0.11.0 on Tue Jun 5 20:00:54 2007 */
+#line 1 "url_scanner_ex.re"
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
- | Copyright (c) 1997-2007 The PHP Group |
+ | Copyright (c) 1997-2006 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
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 97 "ext/standard/url_scanner_ex.re"
+#line 98 "url_scanner_ex.re"
#define YYFILL(n) goto done
128, 128, 128, 128, 128, 128, 128, 128,
};
-#line 149 "ext/standard/url_scanner_ex.c"
+#line 149 "url_scanner_ex.c"
{
YYCTYPE yych;
if(yych <= '9') goto yy6;
if(yych >= ';') goto yy4;
++YYCURSOR;
-#line 115 "ext/standard/url_scanner_ex.re"
+#line 116 "url_scanner_ex.re"
{ smart_str_append(dest, url); return; }
-#line 163 "ext/standard/url_scanner_ex.c"
+#line 163 "url_scanner_ex.c"
yy4:
++YYCURSOR;
-#line 116 "ext/standard/url_scanner_ex.re"
+#line 117 "url_scanner_ex.re"
{ sep = separator; goto scan; }
-#line 168 "ext/standard/url_scanner_ex.c"
+#line 168 "url_scanner_ex.c"
yy6:
++YYCURSOR;
-#line 117 "ext/standard/url_scanner_ex.re"
+#line 118 "url_scanner_ex.re"
{ bash = p - 1; goto done; }
-#line 173 "ext/standard/url_scanner_ex.c"
+#line 173 "url_scanner_ex.c"
yy8:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
if(yybm[0+yych] & 128) {
goto yy8;
}
-#line 118 "ext/standard/url_scanner_ex.re"
+#line 119 "url_scanner_ex.re"
{ goto scan; }
-#line 183 "ext/standard/url_scanner_ex.c"
+#line 183 "url_scanner_ex.c"
}
}
-#line 119 "ext/standard/url_scanner_ex.re"
+#line 120 "url_scanner_ex.re"
done:
128, 128, 128, 128, 128, 128, 128, 128,
};
-#line 390 "ext/standard/url_scanner_ex.c"
+#line 390 "url_scanner_ex.c"
{
YYCTYPE yych;
if(YYLIMIT == YYCURSOR) YYFILL(1);
goto yy15;
}
++YYCURSOR;
-#line 287 "ext/standard/url_scanner_ex.re"
+#line 288 "url_scanner_ex.re"
{ passthru(STD_ARGS); STATE = STATE_TAG; goto state_tag; }
-#line 401 "ext/standard/url_scanner_ex.c"
+#line 401 "url_scanner_ex.c"
yy15:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
if(yybm[0+yych] & 128) {
goto yy15;
}
-#line 288 "ext/standard/url_scanner_ex.re"
+#line 289 "url_scanner_ex.re"
{ passthru(STD_ARGS); goto state_plain; }
-#line 411 "ext/standard/url_scanner_ex.c"
+#line 411 "url_scanner_ex.c"
}
}
-#line 289 "ext/standard/url_scanner_ex.re"
+#line 290 "url_scanner_ex.re"
state_tag:
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 128, 0, 0, 0, 0, 0,
0, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
0, 0, 0, 0, 0, 0, 0, 0,
};
-#line 455 "ext/standard/url_scanner_ex.c"
+#line 455 "url_scanner_ex.c"
{
YYCTYPE yych;
if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
yych = *YYCURSOR;
- if(yych <= '@') goto yy22;
- if(yych <= 'Z') goto yy20;
- if(yych <= '`') goto yy22;
- if(yych >= '{') goto yy22;
+ if(yych <= '@') {
+ if(yych != ':') goto yy22;
+ } else {
+ if(yych <= 'Z') goto yy20;
+ if(yych <= '`') goto yy22;
+ if(yych >= '{') goto yy22;
+ }
yy20:
++YYCURSOR;
yych = *YYCURSOR;
goto yy25;
yy21:
-#line 294 "ext/standard/url_scanner_ex.re"
+#line 295 "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 471 "ext/standard/url_scanner_ex.c"
+#line 474 "url_scanner_ex.c"
yy22:
++YYCURSOR;
-#line 295 "ext/standard/url_scanner_ex.re"
+#line 296 "url_scanner_ex.re"
{ passthru(STD_ARGS); goto state_plain_begin; }
-#line 476 "ext/standard/url_scanner_ex.c"
+#line 479 "url_scanner_ex.c"
yy24:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
goto yy21;
}
}
-#line 296 "ext/standard/url_scanner_ex.re"
+#line 297 "url_scanner_ex.re"
state_next_arg_begin:
0, 0, 0, 0, 0, 0, 0, 0,
};
-#line 532 "ext/standard/url_scanner_ex.c"
+#line 535 "url_scanner_ex.c"
{
YYCTYPE yych;
if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
}
}
++YYCURSOR;
-#line 304 "ext/standard/url_scanner_ex.re"
+#line 305 "url_scanner_ex.re"
{ passthru(STD_ARGS); handle_form(STD_ARGS); goto state_plain_begin; }
-#line 560 "ext/standard/url_scanner_ex.c"
+#line 563 "url_scanner_ex.c"
yy30:
++YYCURSOR;
yych = *YYCURSOR;
goto yy37;
yy31:
-#line 305 "ext/standard/url_scanner_ex.re"
+#line 306 "url_scanner_ex.re"
{ passthru(STD_ARGS); goto state_next_arg; }
-#line 568 "ext/standard/url_scanner_ex.c"
+#line 571 "url_scanner_ex.c"
yy32:
++YYCURSOR;
-#line 306 "ext/standard/url_scanner_ex.re"
+#line 307 "url_scanner_ex.re"
{ --YYCURSOR; STATE = STATE_ARG; goto state_arg; }
-#line 573 "ext/standard/url_scanner_ex.c"
+#line 576 "url_scanner_ex.c"
yy34:
++YYCURSOR;
-#line 307 "ext/standard/url_scanner_ex.re"
+#line 308 "url_scanner_ex.re"
{ passthru(STD_ARGS); goto state_plain_begin; }
-#line 578 "ext/standard/url_scanner_ex.c"
+#line 581 "url_scanner_ex.c"
yy36:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
goto yy31;
}
}
-#line 308 "ext/standard/url_scanner_ex.re"
+#line 309 "url_scanner_ex.re"
state_arg:
0, 0, 0, 0, 0, 0, 0, 0,
};
-#line 631 "ext/standard/url_scanner_ex.c"
+#line 634 "url_scanner_ex.c"
{
YYCTYPE yych;
if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
yych = *YYCURSOR;
goto yy45;
yy41:
-#line 313 "ext/standard/url_scanner_ex.re"
+#line 314 "url_scanner_ex.re"
{ passthru(STD_ARGS); handle_arg(STD_ARGS); STATE = STATE_BEFORE_VAL; goto state_before_val; }
-#line 647 "ext/standard/url_scanner_ex.c"
+#line 650 "url_scanner_ex.c"
yy42:
++YYCURSOR;
-#line 314 "ext/standard/url_scanner_ex.re"
+#line 315 "url_scanner_ex.re"
{ passthru(STD_ARGS); STATE = STATE_NEXT_ARG; goto state_next_arg; }
-#line 652 "ext/standard/url_scanner_ex.c"
+#line 655 "url_scanner_ex.c"
yy44:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
goto yy41;
}
}
-#line 315 "ext/standard/url_scanner_ex.re"
+#line 316 "url_scanner_ex.re"
state_before_val:
0, 0, 0, 0, 0, 0, 0, 0,
};
-#line 705 "ext/standard/url_scanner_ex.c"
+#line 708 "url_scanner_ex.c"
{
YYCTYPE yych;
- unsigned int yyaccept = 0;
if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
yych = *YYCURSOR;
if(yych == ' ') goto yy48;
if(yych == '=') goto yy50;
goto yy52;
yy48:
- yyaccept = 0;
yych = *(YYMARKER = ++YYCURSOR);
if(yych == ' ') goto yy55;
if(yych == '=') goto yy53;
yy49:
-#line 321 "ext/standard/url_scanner_ex.re"
+#line 322 "url_scanner_ex.re"
{ --YYCURSOR; goto state_next_arg_begin; }
-#line 722 "ext/standard/url_scanner_ex.c"
+#line 723 "url_scanner_ex.c"
yy50:
++YYCURSOR;
yych = *YYCURSOR;
goto yy54;
yy51:
-#line 320 "ext/standard/url_scanner_ex.re"
+#line 321 "url_scanner_ex.re"
{ passthru(STD_ARGS); STATE = STATE_VAL; goto state_val; }
-#line 730 "ext/standard/url_scanner_ex.c"
+#line 731 "url_scanner_ex.c"
yy52:
yych = *++YYCURSOR;
goto yy49;
if(yych == ' ') goto yy55;
if(yych == '=') goto yy53;
YYCURSOR = YYMARKER;
- switch(yyaccept){
- case 0: goto yy49;
- }
+ goto yy49;
}
}
-#line 322 "ext/standard/url_scanner_ex.re"
+#line 323 "url_scanner_ex.re"
248, 248, 248, 248, 248, 248, 248, 248,
};
-#line 797 "ext/standard/url_scanner_ex.c"
+#line 796 "url_scanner_ex.c"
{
YYCTYPE yych;
- unsigned int yyaccept = 0;
if((YYLIMIT - YYCURSOR) < 3) YYFILL(3);
yych = *YYCURSOR;
if(yych <= ' ') {
goto yy63;
}
}
- yyaccept = 0;
yych = *(YYMARKER = ++YYCURSOR);
goto yy77;
yy61:
-#line 330 "ext/standard/url_scanner_ex.re"
+#line 331 "url_scanner_ex.re"
{ handle_val(STD_ARGS, 0, ' '); goto state_next_arg_begin; }
-#line 828 "ext/standard/url_scanner_ex.c"
+#line 825 "url_scanner_ex.c"
yy62:
- yyaccept = 0;
yych = *(YYMARKER = ++YYCURSOR);
goto yy69;
yy63:
goto yy67;
yy64:
++YYCURSOR;
-#line 331 "ext/standard/url_scanner_ex.re"
+#line 332 "url_scanner_ex.re"
{ passthru(STD_ARGS); goto state_next_arg_begin; }
-#line 840 "ext/standard/url_scanner_ex.c"
+#line 836 "url_scanner_ex.c"
yy66:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
}
goto yy61;
yy68:
- yyaccept = 0;
YYMARKER = ++YYCURSOR;
if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
yych = *YYCURSOR;
goto yy66;
}
yy71:
-#line 329 "ext/standard/url_scanner_ex.re"
+#line 330 "url_scanner_ex.re"
{ handle_val(STD_ARGS, 1, '\''); goto state_next_arg_begin; }
-#line 868 "ext/standard/url_scanner_ex.c"
+#line 863 "url_scanner_ex.c"
yy72:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
if(yych <= '=') goto yy75;
yy74:
YYCURSOR = YYMARKER;
- switch(yyaccept){
- case 0: goto yy61;
- }
+ goto yy61;
yy75:
yych = *++YYCURSOR;
goto yy71;
yy76:
- yyaccept = 0;
YYMARKER = ++YYCURSOR;
if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
yych = *YYCURSOR;
goto yy66;
}
yy79:
-#line 328 "ext/standard/url_scanner_ex.re"
+#line 329 "url_scanner_ex.re"
{ handle_val(STD_ARGS, 1, '"'); goto state_next_arg_begin; }
-#line 903 "ext/standard/url_scanner_ex.c"
+#line 895 "url_scanner_ex.c"
yy80:
++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
goto yy79;
}
}
-#line 332 "ext/standard/url_scanner_ex.re"
+#line 333 "url_scanner_ex.re"
stop: