@@ -749,7 +749,7 @@ static long timelib_lookup_zone(char **ptr, int *dst, char **tz_abbr, int *found
749
749
return value ;
750
750
}
751
751
752
- static long timelib_get_zone (char * * ptr , int * dst , timelib_time * t , int * tz_not_found , const timelib_tzdb * tzdb , timelib_tz_get_wrapper tz_wrapper )
752
+ long timelib_parse_zone (char * * ptr , int * dst , timelib_time * t , int * tz_not_found , const timelib_tzdb * tzdb , timelib_tz_get_wrapper tz_wrapper )
753
753
{
754
754
timelib_tzinfo * res ;
755
755
long retval = 0 ;
@@ -1161,7 +1161,7 @@ weekdayof = (reltextnumber|reltexttext) space (dayfull|dayabbr) space 'of
1161
1161
}
1162
1162
1163
1163
if (* ptr != '\0' ) {
1164
- s -> time -> z = timelib_get_zone ((char * * ) & ptr , & s -> time -> dst , s -> time , & tz_not_found , s -> tzdb , tz_get_wrapper );
1164
+ s -> time -> z = timelib_parse_zone ((char * * ) & ptr , & s -> time -> dst , s -> time , & tz_not_found , s -> tzdb , tz_get_wrapper );
1165
1165
if (tz_not_found ) {
1166
1166
add_error (s , "The timezone could not be found in the database" );
1167
1167
}
@@ -1202,7 +1202,7 @@ weekdayof = (reltextnumber|reltexttext) space (dayfull|dayabbr) space 'of
1202
1202
s->time->h = timelib_get_nr((char **) &ptr, 2);
1203
1203
s->time->i = timelib_get_nr((char **) &ptr, 2);
1204
1204
s->time->s = 0;
1205
- s->time->z = timelib_get_zone ((char **) &ptr, &s->time->dst, s->time, s->tzdb, tz_get_wrapper);
1205
+ s->time->z = timelib_parse_zone ((char **) &ptr, &s->time->dst, s->time, s->tzdb, tz_get_wrapper);
1206
1206
break;
1207
1207
case 1:
1208
1208
s->time->y = timelib_get_nr((char **) &ptr, 4);
@@ -1227,7 +1227,7 @@ weekdayof = (reltextnumber|reltexttext) space (dayfull|dayabbr) space 'of
1227
1227
s -> time -> s = timelib_get_nr ((char * * ) & ptr , 2 );
1228
1228
1229
1229
if (* ptr != '\0 ') {
1230
- s -> time -> z = timelib_get_zone ((char * * ) & ptr , & s -> time -> dst , s -> time , & tz_not_found , s -> tzdb , tz_get_wrapper );
1230
+ s -> time -> z = timelib_parse_zone ((char * * ) & ptr , & s -> time -> dst , s -> time , & tz_not_found , s -> tzdb , tz_get_wrapper );
1231
1231
if (tz_not_found ) {
1232
1232
add_error (s , "The timezone could not be found in the database ");
1233
1233
}
@@ -1429,7 +1429,7 @@ weekdayof = (reltextnumber|reltexttext) space (dayfull|dayabbr) space 'of
1429
1429
if (* ptr == '.') {
1430
1430
s -> time -> f = timelib_get_frac_nr ((char * * ) & ptr , 9 );
1431
1431
if (* ptr ) { /* timezone is optional */
1432
- s -> time -> z = timelib_get_zone ((char * * ) & ptr , & s -> time -> dst , s -> time , & tz_not_found , s -> tzdb , tz_get_wrapper );
1432
+ s -> time -> z = timelib_parse_zone ((char * * ) & ptr , & s -> time -> dst , s -> time , & tz_not_found , s -> tzdb , tz_get_wrapper );
1433
1433
if (tz_not_found ) {
1434
1434
add_error (s , "The timezone could not be found in the database ");
1435
1435
}
@@ -1532,7 +1532,7 @@ weekdayof = (reltextnumber|reltexttext) space (dayfull|dayabbr) space 'of
1532
1532
s -> time -> h = timelib_get_nr ((char * * ) & ptr , 2 );
1533
1533
s -> time -> i = timelib_get_nr ((char * * ) & ptr , 2 );
1534
1534
s -> time -> s = timelib_get_nr ((char * * ) & ptr , 2 );
1535
- s -> time -> z = timelib_get_zone ((char * * ) & ptr , & s -> time -> dst , s -> time , & tz_not_found , s -> tzdb , tz_get_wrapper );
1535
+ s -> time -> z = timelib_parse_zone ((char * * ) & ptr , & s -> time -> dst , s -> time , & tz_not_found , s -> tzdb , tz_get_wrapper );
1536
1536
if (tz_not_found ) {
1537
1537
add_error (s , "The timezone could not be found in the database ");
1538
1538
}
@@ -1645,7 +1645,7 @@ weekdayof = (reltextnumber|reltexttext) space (dayfull|dayabbr) space 'of
1645
1645
DEBUG_OUTPUT ("tzcorrection | tz ");
1646
1646
TIMELIB_INIT ;
1647
1647
TIMELIB_HAVE_TZ ();
1648
- s -> time -> z = timelib_get_zone ((char * * ) & ptr , & s -> time -> dst , s -> time , & tz_not_found , s -> tzdb , tz_get_wrapper );
1648
+ s -> time -> z = timelib_parse_zone ((char * * ) & ptr , & s -> time -> dst , s -> time , & tz_not_found , s -> tzdb , tz_get_wrapper );
1649
1649
if (tz_not_found ) {
1650
1650
add_error (s , "The timezone could not be found in the database ");
1651
1651
}
@@ -1698,7 +1698,7 @@ weekdayof = (reltextnumber|reltexttext) space (dayfull|dayabbr) space 'of
1698
1698
}
1699
1699
1700
1700
if (* ptr != '\0 ') {
1701
- s -> time -> z = timelib_get_zone ((char * * ) & ptr , & s -> time -> dst , s -> time , & tz_not_found , s -> tzdb , tz_get_wrapper );
1701
+ s -> time -> z = timelib_parse_zone ((char * * ) & ptr , & s -> time -> dst , s -> time , & tz_not_found , s -> tzdb , tz_get_wrapper );
1702
1702
if (tz_not_found ) {
1703
1703
add_error (s , "The timezone could not be found in the database ");
1704
1704
}
@@ -2054,7 +2054,7 @@ timelib_time *timelib_parse_from_format(char *format, char *string, int len, tim
2054
2054
case 'O ': /* timezone */
2055
2055
{
2056
2056
int tz_not_found ;
2057
- s -> time -> z = timelib_get_zone ((char * * ) & ptr , & s -> time -> dst , s -> time , & tz_not_found , s -> tzdb , tz_get_wrapper );
2057
+ s -> time -> z = timelib_parse_zone ((char * * ) & ptr , & s -> time -> dst , s -> time , & tz_not_found , s -> tzdb , tz_get_wrapper );
2058
2058
if (tz_not_found ) {
2059
2059
add_pbf_error (s , "The timezone could not be found in the database ", string , begin );
2060
2060
}
0 commit comments