-/* Generated by re2c 0.12.1 on Sun Feb 3 15:07:12 2008 */
+/* Generated by re2c 0.12.1 on Sun Feb 17 19:16:04 2008 */
#line 1 "ext/date/lib/parse_date.re"
/*
+----------------------------------------------------------------------+
}
}
-static void timelib_eat_until_seperator(char **ptr)
+static void timelib_eat_until_separator(char **ptr)
{
while (strchr(" \t.,:;/-0123456789", **ptr) == NULL) {
++*ptr;
if (s->time->h == TIMELIB_UNSET) {
add_pbf_error(s, "Meridian can only come after an hour has been found", string, begin);
} else if ((tmp = timelib_meridian_with_check((char **) &ptr, s->time->h)) == TIMELIB_UNSET) {
- add_pbf_error(s, "A meridian could no tbe found", string, begin);
+ add_pbf_error(s, "A meridian could not be found", string, begin);
} else {
s->time->h += tmp;
}
if (*ptr == ';' || *ptr == ':' || *ptr == '/' || *ptr == '.' || *ptr == ',' || *ptr == '-') {
++ptr;
} else {
- add_pbf_error(s, "The seperation symbol ([;:/.,-]) could not be found", string, begin);
+ add_pbf_error(s, "The separation symbol ([;:/.,-]) could not be found", string, begin);
}
break;
++ptr;
break;
- case '*': // random chars until a seperator or number ([ \t.,:;/-0123456789])
- timelib_eat_until_seperator((char **) &ptr);
+ case '*': // random chars until a separator or number ([ \t.,:;/-0123456789])
+ timelib_eat_until_separator((char **) &ptr);
break;
default:
if (*fptr != *ptr) {
- add_pbf_error(s, "The format seperator does not match", string, begin);
+ add_pbf_error(s, "The format separator does not match", string, begin);
}
ptr++;
}
}
}
-static void timelib_eat_until_seperator(char **ptr)
+static void timelib_eat_until_separator(char **ptr)
{
while (strchr(" \t.,:;/-0123456789", **ptr) == NULL) {
++*ptr;
if (s->time->h == TIMELIB_UNSET) {
add_pbf_error(s, "Meridian can only come after an hour has been found", string, begin);
} else if ((tmp = timelib_meridian_with_check((char **) &ptr, s->time->h)) == TIMELIB_UNSET) {
- add_pbf_error(s, "A meridian could no tbe found", string, begin);
+ add_pbf_error(s, "A meridian could not be found", string, begin);
} else {
s->time->h += tmp;
}
if (*ptr == ';' || *ptr == ':' || *ptr == '/' || *ptr == '.' || *ptr == ',' || *ptr == '-') {
++ptr;
} else {
- add_pbf_error(s, "The seperation symbol ([;:/.,-]) could not be found", string, begin);
+ add_pbf_error(s, "The separation symbol ([;:/.,-]) could not be found", string, begin);
}
break;
++ptr;
break;
- case '*': // random chars until a seperator or number ([ \t.,:;/-0123456789])
- timelib_eat_until_seperator((char **) &ptr);
+ case '*': // random chars until a separator or number ([ \t.,:;/-0123456789])
+ timelib_eat_until_separator((char **) &ptr);
break;
default:
if (*fptr != *ptr) {
- add_pbf_error(s, "The format seperator does not match", string, begin);
+ add_pbf_error(s, "The format separator does not match", string, begin);
}
ptr++;
}