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;
133 static timelib_sll timelib_get_nr(char **ptr, int max_length)
139 while ((**ptr < '0') || (**ptr > '9')) {
140 if (**ptr == '\0') {
143 ++*ptr;
145 begin = *ptr;
146 while ((**ptr >= '0') && (**ptr <= '9') && len < max_length) {
147 ++*ptr;
150 end = *ptr;
158 static timelib_ull timelib_get_unsigned_nr(char **ptr, int max_length)
162 while (((**ptr < '0') || (**ptr > '9')) && (**ptr != '+') && (**ptr != '-')) {
163 if (**ptr == '\0') {
166 ++*ptr;
169 while (**ptr == '+' || **ptr == '-')
171 if (**ptr == '-') {
174 ++*ptr;
176 return dir * timelib_get_nr(ptr, max_length);
179 static long timelib_parse_tz_cor(char **ptr)
181 char *begin = *ptr, *end;
184 while (isdigit(**ptr) || **ptr == ':') {
185 ++*ptr;
187 end = *ptr;
212 static void timelib_eat_spaces(char **ptr)
214 while (**ptr == ' ' || **ptr == '\t') {
215 ++*ptr;
219 static void timelib_eat_until_separator(char **ptr)
221 while (strchr(" \t.,:;/-0123456789", **ptr) == NULL) {
222 ++*ptr;
226 static long timelib_get_zone(char **ptr, int *dst, timelib_time *t, int *tz_not_found, const timeli…
232 while (**ptr == ' ' || **ptr == '\t' || **ptr == '(') {
233 ++*ptr;
235 …if ((*ptr)[0] == 'G' && (*ptr)[1] == 'M' && (*ptr)[2] == 'T' && ((*ptr)[3] == '+' || (*ptr)[3] == …
236 *ptr += 3;
238 if (**ptr == '+') {
239 ++*ptr;
245 retval = -1 * timelib_parse_tz_cor(ptr);
246 } else if (**ptr == '-') {
247 ++*ptr;
253 retval = timelib_parse_tz_cor(ptr);
255 while (**ptr == ')') {
256 ++*ptr;
279 char *str, *ptr = NULL;
319 ptr++;
320 s->recurrences = timelib_get_unsigned_nr((char **) &ptr, 9);
339 current->y = timelib_get_nr((char **) &ptr, 4);
340 current->m = timelib_get_nr((char **) &ptr, 2);
341 current->d = timelib_get_nr((char **) &ptr, 2);
342 current->h = timelib_get_nr((char **) &ptr, 2);
343 current->i = timelib_get_nr((char **) &ptr, 2);
344 current->s = timelib_get_nr((char **) &ptr, 2);
356 ptr++;
358 if ( *ptr == 'T' ) {
360 ptr++;
362 if ( *ptr == '\0' ) {
367 nr = timelib_get_unsigned_nr((char **) &ptr, 12);
368 switch (*ptr) {
385 ptr++;
386 } while (!s->errors->error_count && *ptr);
396 s->period->y = timelib_get_unsigned_nr((char **) &ptr, 4);
397 ptr++;
398 s->period->m = timelib_get_unsigned_nr((char **) &ptr, 2);
399 ptr++;
400 s->period->d = timelib_get_unsigned_nr((char **) &ptr, 2);
401 ptr++;
402 s->period->h = timelib_get_unsigned_nr((char **) &ptr, 2);
403 ptr++;
404 s->period->i = timelib_get_unsigned_nr((char **) &ptr, 2);
405 ptr++;
406 s->period->s = timelib_get_unsigned_nr((char **) &ptr, 2);