|
|
|
@ -1,15 +1,15 @@ |
|
|
|
/* Generated by re2c 0.9.12.dev on Mon Dec 19 11:52:26 2005 */ |
|
|
|
/* Generated by re2c 0.9.11 on Sun Jan 1 14:41:26 2006 */ |
|
|
|
#line 1 "ext/date/lib/parse_date.re" |
|
|
|
/* |
|
|
|
+----------------------------------------------------------------------+ |
|
|
|
| PHP Version 5 | |
|
|
|
+----------------------------------------------------------------------+ |
|
|
|
| Copyright (c) 1997-2005 The PHP Group | |
|
|
|
| Copyright (c) 1997-2006 The PHP Group | |
|
|
|
+----------------------------------------------------------------------+ |
|
|
|
| This source file is subject to version 3.0 of the PHP license, | |
|
|
|
| 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 | |
|
|
|
| available through the world-wide-web at the following url: | |
|
|
|
| http://www.php.net/license/3_0.txt. | |
|
|
|
| http://www.php.net/license/3_01.txt | |
|
|
|
| If you did not receive a copy of the PHP license and are unable to | |
|
|
|
| obtain it through the world-wide-web, please send a note to | |
|
|
|
| license@php.net so we can mail you a copy immediately. | |
|
|
|
@ -588,8 +588,7 @@ static timelib_tz_lookup_table* zone_search(const char *word, long gmtoffset, in |
|
|
|
timelib_tz_lookup_table *tp, *first_found_elem; |
|
|
|
timelib_tz_lookup_table *fmp; |
|
|
|
|
|
|
|
if (strcasecmp("utc", word) == 0) |
|
|
|
{ |
|
|
|
if (strcasecmp("utc", word) == 0) { |
|
|
|
return timelib_timezone_utc; |
|
|
|
} |
|
|
|
|
|
|
|
@ -729,7 +728,7 @@ static int scan(Scanner *s) |
|
|
|
std: |
|
|
|
s->tok = cursor; |
|
|
|
s->len = 0; |
|
|
|
#line 838 "ext/date/lib/parse_date.re" |
|
|
|
#line 837 "ext/date/lib/parse_date.re" |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
@ -768,7 +767,7 @@ std: |
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, |
|
|
|
}; |
|
|
|
|
|
|
|
#line 772 "ext/date/lib/parse_date.c" |
|
|
|
#line 771 "ext/date/lib/parse_date.c" |
|
|
|
{ |
|
|
|
YYCTYPE yych; |
|
|
|
unsigned int yyaccept = 0; |
|
|
|
@ -860,7 +859,7 @@ yy2: |
|
|
|
yy3: |
|
|
|
YYDEBUG(3, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1333 "ext/date/lib/parse_date.re" |
|
|
|
#line 1332 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
int tz_not_found; |
|
|
|
DEBUG_OUTPUT("tzcorrection | tz"); |
|
|
|
@ -870,7 +869,7 @@ yy3: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_TIMEZONE; |
|
|
|
} |
|
|
|
#line 867 "ext/date/lib/parse_date.c" |
|
|
|
#line 866 "ext/date/lib/parse_date.c" |
|
|
|
yy4: |
|
|
|
YYDEBUG(4, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -988,13 +987,13 @@ yy7: |
|
|
|
yy8: |
|
|
|
YYDEBUG(8, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1399 "ext/date/lib/parse_date.re" |
|
|
|
#line 1398 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
/* printf("unexpected character: #%d, %c ", *s->tok, *s->tok); */ |
|
|
|
s->errors++; |
|
|
|
goto std; |
|
|
|
} |
|
|
|
#line 981 "ext/date/lib/parse_date.c" |
|
|
|
#line 980 "ext/date/lib/parse_date.c" |
|
|
|
yy9: |
|
|
|
YYDEBUG(9, *YYCURSOR); |
|
|
|
yyaccept = 0; |
|
|
|
@ -2048,11 +2047,11 @@ yy44: |
|
|
|
yy45: |
|
|
|
YYDEBUG(45, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1388 "ext/date/lib/parse_date.re" |
|
|
|
#line 1387 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
goto std; |
|
|
|
} |
|
|
|
#line 1960 "ext/date/lib/parse_date.c" |
|
|
|
#line 1959 "ext/date/lib/parse_date.c" |
|
|
|
yy46: |
|
|
|
YYDEBUG(46, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -2064,12 +2063,12 @@ yy47: |
|
|
|
yy48: |
|
|
|
YYDEBUG(48, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1393 "ext/date/lib/parse_date.re" |
|
|
|
#line 1392 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
s->pos = cursor; s->line++; |
|
|
|
goto std; |
|
|
|
} |
|
|
|
#line 1971 "ext/date/lib/parse_date.c" |
|
|
|
#line 1970 "ext/date/lib/parse_date.c" |
|
|
|
yy49: |
|
|
|
YYDEBUG(49, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -2277,7 +2276,7 @@ yy67: |
|
|
|
yy68: |
|
|
|
YYDEBUG(68, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1372 "ext/date/lib/parse_date.re" |
|
|
|
#line 1371 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
timelib_ull i; |
|
|
|
DEBUG_OUTPUT("relative"); |
|
|
|
@ -2292,7 +2291,7 @@ yy68: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_RELATIVE; |
|
|
|
} |
|
|
|
#line 2152 "ext/date/lib/parse_date.c" |
|
|
|
#line 2151 "ext/date/lib/parse_date.c" |
|
|
|
yy69: |
|
|
|
YYDEBUG(69, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -3269,7 +3268,7 @@ yy172: |
|
|
|
yy173: |
|
|
|
YYDEBUG(173, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1316 "ext/date/lib/parse_date.re" |
|
|
|
#line 1315 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
timelib_sll i; |
|
|
|
int behavior; |
|
|
|
@ -3285,7 +3284,7 @@ yy173: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_RELATIVE; |
|
|
|
} |
|
|
|
#line 2929 "ext/date/lib/parse_date.c" |
|
|
|
#line 2928 "ext/date/lib/parse_date.c" |
|
|
|
yy174: |
|
|
|
YYDEBUG(174, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -5047,7 +5046,7 @@ yy341: |
|
|
|
yy342: |
|
|
|
YYDEBUG(342, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1300 "ext/date/lib/parse_date.re" |
|
|
|
#line 1299 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
const timelib_relunit* relunit; |
|
|
|
DEBUG_OUTPUT("daytext"); |
|
|
|
@ -5062,7 +5061,7 @@ yy342: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_WEEKDAY; |
|
|
|
} |
|
|
|
#line 4366 "ext/date/lib/parse_date.c" |
|
|
|
#line 4365 "ext/date/lib/parse_date.c" |
|
|
|
yy343: |
|
|
|
YYDEBUG(343, *YYCURSOR); |
|
|
|
yyaccept = 1; |
|
|
|
@ -6054,7 +6053,7 @@ yy405: |
|
|
|
yy406: |
|
|
|
YYDEBUG(406, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1119 "ext/date/lib/parse_date.re" |
|
|
|
#line 1118 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("datetextual | datenoyear"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -6066,7 +6065,7 @@ yy406: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_DATE_TEXT; |
|
|
|
} |
|
|
|
#line 5242 "ext/date/lib/parse_date.c" |
|
|
|
#line 5241 "ext/date/lib/parse_date.c" |
|
|
|
yy407: |
|
|
|
YYDEBUG(407, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -6277,7 +6276,7 @@ yy427: |
|
|
|
yy428: |
|
|
|
YYDEBUG(428, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1344 "ext/date/lib/parse_date.re" |
|
|
|
#line 1343 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
int tz_not_found; |
|
|
|
DEBUG_OUTPUT("dateshortwithtimeshort | dateshortwithtimelong | dateshortwithtimelongtz"); |
|
|
|
@ -6304,7 +6303,7 @@ yy428: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_SHORTDATE_WITH_TIME; |
|
|
|
} |
|
|
|
#line 5436 "ext/date/lib/parse_date.c" |
|
|
|
#line 5435 "ext/date/lib/parse_date.c" |
|
|
|
yy429: |
|
|
|
YYDEBUG(429, *YYCURSOR); |
|
|
|
yyaccept = 7; |
|
|
|
@ -6663,7 +6662,7 @@ yy464: |
|
|
|
yy465: |
|
|
|
YYDEBUG(465, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1093 "ext/date/lib/parse_date.re" |
|
|
|
#line 1092 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("datenoday"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -6675,7 +6674,7 @@ yy465: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_DATE_NO_DAY; |
|
|
|
} |
|
|
|
#line 5733 "ext/date/lib/parse_date.c" |
|
|
|
#line 5732 "ext/date/lib/parse_date.c" |
|
|
|
yy466: |
|
|
|
YYDEBUG(466, *YYCURSOR); |
|
|
|
yyaccept = 6; |
|
|
|
@ -7048,7 +7047,7 @@ yy490: |
|
|
|
yy491: |
|
|
|
YYDEBUG(491, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1231 "ext/date/lib/parse_date.re" |
|
|
|
#line 1230 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("pgtextshort"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -7060,7 +7059,7 @@ yy491: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_PG_TEXT; |
|
|
|
} |
|
|
|
#line 6066 "ext/date/lib/parse_date.c" |
|
|
|
#line 6065 "ext/date/lib/parse_date.c" |
|
|
|
yy492: |
|
|
|
YYDEBUG(492, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -8893,7 +8892,7 @@ yy592: |
|
|
|
yy593: |
|
|
|
YYDEBUG(593, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1285 "ext/date/lib/parse_date.re" |
|
|
|
#line 1284 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("ago"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -8907,7 +8906,7 @@ yy593: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_AGO; |
|
|
|
} |
|
|
|
#line 7709 "ext/date/lib/parse_date.c" |
|
|
|
#line 7708 "ext/date/lib/parse_date.c" |
|
|
|
yy594: |
|
|
|
YYDEBUG(594, *YYCURSOR); |
|
|
|
yyaccept = 1; |
|
|
|
@ -11241,7 +11240,7 @@ yy702: |
|
|
|
yy703: |
|
|
|
YYDEBUG(703, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1132 "ext/date/lib/parse_date.re" |
|
|
|
#line 1131 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("datenoyearrev"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -11252,7 +11251,7 @@ yy703: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_DATE_TEXT; |
|
|
|
} |
|
|
|
#line 9830 "ext/date/lib/parse_date.c" |
|
|
|
#line 9829 "ext/date/lib/parse_date.c" |
|
|
|
yy704: |
|
|
|
YYDEBUG(704, *YYCURSOR); |
|
|
|
yyaccept = 10; |
|
|
|
@ -11362,7 +11361,7 @@ yy713: |
|
|
|
yy714: |
|
|
|
YYDEBUG(714, *YYCURSOR); |
|
|
|
|
|
|
|
#line 922 "ext/date/lib/parse_date.re" |
|
|
|
#line 921 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("timetiny12 | timeshort12 | timelong12"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -11378,7 +11377,7 @@ yy714: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_TIME12; |
|
|
|
} |
|
|
|
#line 9934 "ext/date/lib/parse_date.c" |
|
|
|
#line 9933 "ext/date/lib/parse_date.c" |
|
|
|
yy715: |
|
|
|
YYDEBUG(715, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -11398,7 +11397,7 @@ yy716: |
|
|
|
yy717: |
|
|
|
YYDEBUG(717, *YYCURSOR); |
|
|
|
|
|
|
|
#line 939 "ext/date/lib/parse_date.re" |
|
|
|
#line 938 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
int tz_not_found; |
|
|
|
DEBUG_OUTPUT("timeshort24 | timelong24 | iso8601long"); |
|
|
|
@ -11421,7 +11420,7 @@ yy717: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_TIME24_WITH_ZONE; |
|
|
|
} |
|
|
|
#line 9971 "ext/date/lib/parse_date.c" |
|
|
|
#line 9970 "ext/date/lib/parse_date.c" |
|
|
|
yy718: |
|
|
|
YYDEBUG(718, *YYCURSOR); |
|
|
|
yyaccept = 11; |
|
|
|
@ -11664,7 +11663,7 @@ yy742: |
|
|
|
yy743: |
|
|
|
YYDEBUG(743, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1066 "ext/date/lib/parse_date.re" |
|
|
|
#line 1065 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("datefull"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -11677,7 +11676,7 @@ yy743: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_DATE_FULL; |
|
|
|
} |
|
|
|
#line 10175 "ext/date/lib/parse_date.c" |
|
|
|
#line 10174 "ext/date/lib/parse_date.c" |
|
|
|
yy744: |
|
|
|
YYDEBUG(744, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -12312,7 +12311,7 @@ yy811: |
|
|
|
yy812: |
|
|
|
YYDEBUG(812, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1080 "ext/date/lib/parse_date.re" |
|
|
|
#line 1079 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("pointed date"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -12324,7 +12323,7 @@ yy812: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_DATE_FULL_POINTED; |
|
|
|
} |
|
|
|
#line 10684 "ext/date/lib/parse_date.c" |
|
|
|
#line 10683 "ext/date/lib/parse_date.c" |
|
|
|
yy813: |
|
|
|
YYDEBUG(813, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -12905,7 +12904,7 @@ yy857: |
|
|
|
yy858: |
|
|
|
YYDEBUG(858, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1053 "ext/date/lib/parse_date.re" |
|
|
|
#line 1052 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("gnudateshort"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -12917,7 +12916,7 @@ yy858: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_ISO_DATE; |
|
|
|
} |
|
|
|
#line 11185 "ext/date/lib/parse_date.c" |
|
|
|
#line 11184 "ext/date/lib/parse_date.c" |
|
|
|
yy859: |
|
|
|
YYDEBUG(859, *YYCURSOR); |
|
|
|
yyaccept = 12; |
|
|
|
@ -13000,7 +12999,7 @@ yy866: |
|
|
|
yy867: |
|
|
|
YYDEBUG(867, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1026 "ext/date/lib/parse_date.re" |
|
|
|
#line 1025 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("americanshort | american"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -13014,7 +13013,7 @@ yy867: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_AMERICAN; |
|
|
|
} |
|
|
|
#line 11264 "ext/date/lib/parse_date.c" |
|
|
|
#line 11263 "ext/date/lib/parse_date.c" |
|
|
|
yy868: |
|
|
|
YYDEBUG(868, *YYCURSOR); |
|
|
|
yyaccept = 13; |
|
|
|
@ -13263,7 +13262,7 @@ yy899: |
|
|
|
yy900: |
|
|
|
YYDEBUG(900, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1257 "ext/date/lib/parse_date.re" |
|
|
|
#line 1256 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
int tz_not_found; |
|
|
|
DEBUG_OUTPUT("clf"); |
|
|
|
@ -13281,7 +13280,7 @@ yy900: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_CLF; |
|
|
|
} |
|
|
|
#line 11465 "ext/date/lib/parse_date.c" |
|
|
|
#line 11464 "ext/date/lib/parse_date.c" |
|
|
|
yy901: |
|
|
|
YYDEBUG(901, *YYCURSOR); |
|
|
|
yyaccept = 14; |
|
|
|
@ -13677,7 +13676,7 @@ yy952: |
|
|
|
yy953: |
|
|
|
YYDEBUG(953, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1244 "ext/date/lib/parse_date.re" |
|
|
|
#line 1243 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("pgtextreverse"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -13689,7 +13688,7 @@ yy953: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_PG_TEXT; |
|
|
|
} |
|
|
|
#line 11765 "ext/date/lib/parse_date.c" |
|
|
|
#line 11764 "ext/date/lib/parse_date.c" |
|
|
|
yy954: |
|
|
|
YYDEBUG(954, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -13822,7 +13821,7 @@ yy964: |
|
|
|
yy965: |
|
|
|
YYDEBUG(965, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1276 "ext/date/lib/parse_date.re" |
|
|
|
#line 1275 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("year4"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -13830,7 +13829,7 @@ yy965: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_CLF; |
|
|
|
} |
|
|
|
#line 11881 "ext/date/lib/parse_date.c" |
|
|
|
#line 11880 "ext/date/lib/parse_date.c" |
|
|
|
yy966: |
|
|
|
YYDEBUG(966, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -13966,7 +13965,7 @@ yy973: |
|
|
|
yy974: |
|
|
|
YYDEBUG(974, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1106 "ext/date/lib/parse_date.re" |
|
|
|
#line 1105 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("datenodayrev"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -13978,7 +13977,7 @@ yy974: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_DATE_NO_DAY; |
|
|
|
} |
|
|
|
#line 12008 "ext/date/lib/parse_date.c" |
|
|
|
#line 12007 "ext/date/lib/parse_date.c" |
|
|
|
yy975: |
|
|
|
YYDEBUG(975, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -14187,7 +14186,7 @@ yy993: |
|
|
|
yy994: |
|
|
|
YYDEBUG(994, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1212 "ext/date/lib/parse_date.re" |
|
|
|
#line 1211 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
timelib_sll w, d; |
|
|
|
DEBUG_OUTPUT("isoweek"); |
|
|
|
@ -14205,7 +14204,7 @@ yy994: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_ISO_WEEK; |
|
|
|
} |
|
|
|
#line 12195 "ext/date/lib/parse_date.c" |
|
|
|
#line 12194 "ext/date/lib/parse_date.c" |
|
|
|
yy995: |
|
|
|
YYDEBUG(995, *YYCURSOR); |
|
|
|
++YYCURSOR; |
|
|
|
@ -14213,7 +14212,7 @@ yy995: |
|
|
|
yy996: |
|
|
|
YYDEBUG(996, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1193 "ext/date/lib/parse_date.re" |
|
|
|
#line 1192 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
timelib_sll w, d; |
|
|
|
DEBUG_OUTPUT("isoweekday"); |
|
|
|
@ -14231,7 +14230,7 @@ yy996: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_ISO_WEEK; |
|
|
|
} |
|
|
|
#line 12217 "ext/date/lib/parse_date.c" |
|
|
|
#line 12216 "ext/date/lib/parse_date.c" |
|
|
|
yy997: |
|
|
|
YYDEBUG(997, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -14300,7 +14299,7 @@ yy999: |
|
|
|
yy1000: |
|
|
|
YYDEBUG(1000, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1180 "ext/date/lib/parse_date.re" |
|
|
|
#line 1179 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("pgydotd"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -14312,7 +14311,7 @@ yy1000: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_PG_YEARDAY; |
|
|
|
} |
|
|
|
#line 12290 "ext/date/lib/parse_date.c" |
|
|
|
#line 12289 "ext/date/lib/parse_date.c" |
|
|
|
yy1001: |
|
|
|
YYDEBUG(1001, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -14418,7 +14417,7 @@ yy1006: |
|
|
|
yy1007: |
|
|
|
YYDEBUG(1007, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1144 "ext/date/lib/parse_date.re" |
|
|
|
#line 1143 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("datenocolon"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -14429,7 +14428,7 @@ yy1007: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_DATE_NOCOLON; |
|
|
|
} |
|
|
|
#line 12389 "ext/date/lib/parse_date.c" |
|
|
|
#line 12388 "ext/date/lib/parse_date.c" |
|
|
|
yy1008: |
|
|
|
YYDEBUG(1008, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -14527,7 +14526,7 @@ yy1017: |
|
|
|
yy1018: |
|
|
|
YYDEBUG(1018, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1156 "ext/date/lib/parse_date.re" |
|
|
|
#line 1155 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
int tz_not_found; |
|
|
|
DEBUG_OUTPUT("xmlrpc | xmlrpcnocolon | soap | wddx"); |
|
|
|
@ -14550,7 +14549,7 @@ yy1018: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_XMLRPC_SOAP; |
|
|
|
} |
|
|
|
#line 12488 "ext/date/lib/parse_date.c" |
|
|
|
#line 12487 "ext/date/lib/parse_date.c" |
|
|
|
yy1019: |
|
|
|
YYDEBUG(1019, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -15166,7 +15165,7 @@ yy1108: |
|
|
|
yy1109: |
|
|
|
YYDEBUG(1109, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1041 "ext/date/lib/parse_date.re" |
|
|
|
#line 1040 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("iso8601date | iso8601dateslash | dateslash"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -15177,7 +15176,7 @@ yy1109: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_ISO_DATE; |
|
|
|
} |
|
|
|
#line 12933 "ext/date/lib/parse_date.c" |
|
|
|
#line 12932 "ext/date/lib/parse_date.c" |
|
|
|
yy1110: |
|
|
|
YYDEBUG(1110, *YYCURSOR); |
|
|
|
yyaccept = 19; |
|
|
|
@ -16130,7 +16129,7 @@ yy1200: |
|
|
|
yy1201: |
|
|
|
YYDEBUG(1201, *YYCURSOR); |
|
|
|
|
|
|
|
#line 963 "ext/date/lib/parse_date.re" |
|
|
|
#line 962 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("gnunocolon"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -16151,7 +16150,7 @@ yy1201: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_GNU_NOCOLON; |
|
|
|
} |
|
|
|
#line 13721 "ext/date/lib/parse_date.c" |
|
|
|
#line 13720 "ext/date/lib/parse_date.c" |
|
|
|
yy1202: |
|
|
|
YYDEBUG(1202, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -16248,7 +16247,7 @@ yy1208: |
|
|
|
yy1209: |
|
|
|
YYDEBUG(1209, *YYCURSOR); |
|
|
|
|
|
|
|
#line 1008 "ext/date/lib/parse_date.re" |
|
|
|
#line 1007 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
int tz_not_found; |
|
|
|
DEBUG_OUTPUT("iso8601nocolon"); |
|
|
|
@ -16265,7 +16264,7 @@ yy1209: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_ISO_NOCOLON; |
|
|
|
} |
|
|
|
#line 13819 "ext/date/lib/parse_date.c" |
|
|
|
#line 13818 "ext/date/lib/parse_date.c" |
|
|
|
yy1210: |
|
|
|
YYDEBUG(1210, *YYCURSOR); |
|
|
|
yyaccept = 22; |
|
|
|
@ -16584,7 +16583,7 @@ yy1233: |
|
|
|
yy1234: |
|
|
|
YYDEBUG(1234, *YYCURSOR); |
|
|
|
|
|
|
|
#line 898 "ext/date/lib/parse_date.re" |
|
|
|
#line 897 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
timelib_ull i; |
|
|
|
|
|
|
|
@ -16607,7 +16606,7 @@ yy1234: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_RELATIVE; |
|
|
|
} |
|
|
|
#line 14105 "ext/date/lib/parse_date.c" |
|
|
|
#line 14104 "ext/date/lib/parse_date.c" |
|
|
|
yy1235: |
|
|
|
YYDEBUG(1235, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -16689,7 +16688,7 @@ yy1242: |
|
|
|
yy1243: |
|
|
|
YYDEBUG(1243, *YYCURSOR); |
|
|
|
|
|
|
|
#line 886 "ext/date/lib/parse_date.re" |
|
|
|
#line 885 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("tomorrow"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -16700,7 +16699,7 @@ yy1243: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_RELATIVE; |
|
|
|
} |
|
|
|
#line 14180 "ext/date/lib/parse_date.c" |
|
|
|
#line 14179 "ext/date/lib/parse_date.c" |
|
|
|
yy1244: |
|
|
|
YYDEBUG(1244, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -16714,7 +16713,7 @@ yy1245: |
|
|
|
yy1246: |
|
|
|
YYDEBUG(1246, *YYCURSOR); |
|
|
|
|
|
|
|
#line 876 "ext/date/lib/parse_date.re" |
|
|
|
#line 875 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("midnight | today"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -16723,7 +16722,7 @@ yy1246: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_RELATIVE; |
|
|
|
} |
|
|
|
#line 14197 "ext/date/lib/parse_date.c" |
|
|
|
#line 14196 "ext/date/lib/parse_date.c" |
|
|
|
yy1247: |
|
|
|
YYDEBUG(1247, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -16818,7 +16817,7 @@ yy1254: |
|
|
|
yy1255: |
|
|
|
YYDEBUG(1255, *YYCURSOR); |
|
|
|
|
|
|
|
#line 855 "ext/date/lib/parse_date.re" |
|
|
|
#line 854 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("now"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -16826,7 +16825,7 @@ yy1255: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_RELATIVE; |
|
|
|
} |
|
|
|
#line 14282 "ext/date/lib/parse_date.c" |
|
|
|
#line 14281 "ext/date/lib/parse_date.c" |
|
|
|
yy1256: |
|
|
|
YYDEBUG(1256, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -16852,7 +16851,7 @@ yy1257: |
|
|
|
yy1258: |
|
|
|
YYDEBUG(1258, *YYCURSOR); |
|
|
|
|
|
|
|
#line 864 "ext/date/lib/parse_date.re" |
|
|
|
#line 863 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("noon"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -16863,7 +16862,7 @@ yy1258: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_RELATIVE; |
|
|
|
} |
|
|
|
#line 14313 "ext/date/lib/parse_date.c" |
|
|
|
#line 14312 "ext/date/lib/parse_date.c" |
|
|
|
yy1259: |
|
|
|
YYDEBUG(1259, *YYCURSOR); |
|
|
|
yych = *++YYCURSOR; |
|
|
|
@ -16932,7 +16931,7 @@ yy1266: |
|
|
|
yy1267: |
|
|
|
YYDEBUG(1267, *YYCURSOR); |
|
|
|
|
|
|
|
#line 843 "ext/date/lib/parse_date.re" |
|
|
|
#line 842 "ext/date/lib/parse_date.re" |
|
|
|
{ |
|
|
|
DEBUG_OUTPUT("yesterday"); |
|
|
|
TIMELIB_INIT; |
|
|
|
@ -16943,10 +16942,10 @@ yy1267: |
|
|
|
TIMELIB_DEINIT; |
|
|
|
return TIMELIB_RELATIVE; |
|
|
|
} |
|
|
|
#line 14375 "ext/date/lib/parse_date.c" |
|
|
|
#line 14374 "ext/date/lib/parse_date.c" |
|
|
|
} |
|
|
|
} |
|
|
|
#line 1404 "ext/date/lib/parse_date.re" |
|
|
|
#line 1403 "ext/date/lib/parse_date.re" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|