Lines Matching refs:ptr
67 #define YYMARKER s->ptr
74 #define TIMELIB_INIT s->cur = cursor; str = timelib_string(s); ptr = str
89 uchar *lim, *str, *ptr, *cur, *tok, *pos;
131 static timelib_sll timelib_get_nr(char **ptr, int max_length)
137 while ((**ptr < '0') || (**ptr > '9')) {
138 if (**ptr == '\0') {
141 ++*ptr;
143 begin = *ptr;
144 while ((**ptr >= '0') && (**ptr <= '9') && len < max_length) {
145 ++*ptr;
148 end = *ptr;
156 static timelib_ull timelib_get_unsigned_nr(char **ptr, int max_length)
160 while (((**ptr < '0') || (**ptr > '9')) && (**ptr != '+') && (**ptr != '-')) {
161 if (**ptr == '\0') {
164 ++*ptr;
167 while (**ptr == '+' || **ptr == '-')
169 if (**ptr == '-') {
172 ++*ptr;
174 return dir * timelib_get_nr(ptr, max_length);
177 static void timelib_eat_spaces(char **ptr)
179 while (**ptr == ' ' || **ptr == '\t') {
180 ++*ptr;
184 static void timelib_eat_until_separator(char **ptr)
186 while (strchr(" \t.,:;/-0123456789", **ptr) == NULL) {
187 ++*ptr;
191 static long timelib_get_zone(char **ptr, int *dst, timelib_time *t, int *tz_not_found, const timeli…
197 while (**ptr == ' ' || **ptr == '\t' || **ptr == '(') {
198 ++*ptr;
200 …if ((*ptr)[0] == 'G' && (*ptr)[1] == 'M' && (*ptr)[2] == 'T' && ((*ptr)[3] == '+' || (*ptr)[3] == …
201 *ptr += 3;
203 if (**ptr == '+') {
204 ++*ptr;
210 retval = -1 * timelib_parse_tz_cor(ptr);
211 } else if (**ptr == '-') {
212 ++*ptr;
218 retval = timelib_parse_tz_cor(ptr);
220 while (**ptr == ')') {
221 ++*ptr;
244 char *str, *ptr = NULL;
284 ptr++;
285 s->recurrences = timelib_get_unsigned_nr((char **) &ptr, 9);
304 current->y = timelib_get_nr((char **) &ptr, 4);
305 current->m = timelib_get_nr((char **) &ptr, 2);
306 current->d = timelib_get_nr((char **) &ptr, 2);
307 current->h = timelib_get_nr((char **) &ptr, 2);
308 current->i = timelib_get_nr((char **) &ptr, 2);
309 current->s = timelib_get_nr((char **) &ptr, 2);
321 ptr++;
323 if ( *ptr == 'T' ) {
325 ptr++;
327 if ( *ptr == '\0' ) {
332 nr = timelib_get_unsigned_nr((char **) &ptr, 12);
333 switch (*ptr) {
350 ptr++;
351 } while (!s->errors->error_count && *ptr);
361 s->period->y = timelib_get_unsigned_nr((char **) &ptr, 4);
362 ptr++;
363 s->period->m = timelib_get_unsigned_nr((char **) &ptr, 2);
364 ptr++;
365 s->period->d = timelib_get_unsigned_nr((char **) &ptr, 2);
366 ptr++;
367 s->period->h = timelib_get_unsigned_nr((char **) &ptr, 2);
368 ptr++;
369 s->period->i = timelib_get_unsigned_nr((char **) &ptr, 2);
370 ptr++;
371 s->period->s = timelib_get_unsigned_nr((char **) &ptr, 2);