]> granicus.if.org Git - php/commitdiff
- Fixed typoes.
authorDerick Rethans <derick@php.net>
Sun, 17 Feb 2008 18:17:01 +0000 (18:17 +0000)
committerDerick Rethans <derick@php.net>
Sun, 17 Feb 2008 18:17:01 +0000 (18:17 +0000)
ext/date/lib/parse_date.c
ext/date/lib/parse_date.re

index 39bea021d626f43a13544db22d4f6a5b0bf903a7..45d591bb29afd0d788c41385adce8c2de962b676 100644 (file)
@@ -1,4 +1,4 @@
-/* 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"
 /*
    +----------------------------------------------------------------------+
@@ -620,7 +620,7 @@ static void timelib_eat_spaces(char **ptr)
        }
 }
 
-static void timelib_eat_until_seperator(char **ptr)
+static void timelib_eat_until_separator(char **ptr)
 {
        while (strchr(" \t.,:;/-0123456789", **ptr) == NULL) {
                ++*ptr;
@@ -23036,7 +23036,7 @@ timelib_time *timelib_parse_from_format(char *format, char *string, int len, tim
                                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 nobe found", string, begin);
                                } else {
                                        s->time->h += tmp;
                                }
@@ -23091,7 +23091,7 @@ timelib_time *timelib_parse_from_format(char *format, char *string, int len, tim
                                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;
 
@@ -23099,13 +23099,13 @@ timelib_time *timelib_parse_from_format(char *format, char *string, int len, tim
                                ++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++;
                }
index 8e1798efc8540cf0197f89e51fc32e6c7f9ba239..21f4fa951661d5c4a782afeed36b6c2fa041bfb5 100644 (file)
@@ -618,7 +618,7 @@ static void timelib_eat_spaces(char **ptr)
        }
 }
 
-static void timelib_eat_until_seperator(char **ptr)
+static void timelib_eat_until_separator(char **ptr)
 {
        while (strchr(" \t.,:;/-0123456789", **ptr) == NULL) {
                ++*ptr;
@@ -1808,7 +1808,7 @@ timelib_time *timelib_parse_from_format(char *format, char *string, int len, tim
                                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 nobe found", string, begin);
                                } else {
                                        s->time->h += tmp;
                                }
@@ -1863,7 +1863,7 @@ timelib_time *timelib_parse_from_format(char *format, char *string, int len, tim
                                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;
 
@@ -1871,13 +1871,13 @@ timelib_time *timelib_parse_from_format(char *format, char *string, int len, tim
                                ++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++;
                }