Lines Matching refs:ptr
53 #define YYMARKER s->ptr
60 #define TIMELIB_INIT s->cur = cursor; str = timelib_string(s); ptr = str
73 uchar *lim, *str, *ptr, *cur, *tok, *pos;
106 static timelib_sll timelib_get_nr(const char **ptr, int max_length)
113 while ((**ptr < '0') || (**ptr > '9')) {
114 if (**ptr == '\0') {
117 ++*ptr;
119 begin = *ptr;
120 while ((**ptr >= '0') && (**ptr <= '9') && len < max_length) {
121 ++*ptr;
124 end = *ptr;
132 static timelib_ull timelib_get_unsigned_nr(const char **ptr, int max_length)
136 while (((**ptr < '0') || (**ptr > '9')) && (**ptr != '+') && (**ptr != '-')) {
137 if (**ptr == '\0') {
140 ++*ptr;
143 while (**ptr == '+' || **ptr == '-')
145 if (**ptr == '-') {
148 ++*ptr;
150 return dir * timelib_get_nr(ptr, max_length);
172 const char *ptr = NULL;
212 ptr++;
213 s->recurrences = timelib_get_unsigned_nr(&ptr, 9);
232 current->y = timelib_get_nr(&ptr, 4);
233 current->m = timelib_get_nr(&ptr, 2);
234 current->d = timelib_get_nr(&ptr, 2);
235 current->h = timelib_get_nr(&ptr, 2);
236 current->i = timelib_get_nr(&ptr, 2);
237 current->s = timelib_get_nr(&ptr, 2);
249 ptr++;
251 if ( *ptr == 'T' ) {
253 ptr++;
255 if ( *ptr == '\0' ) {
260 nr = timelib_get_unsigned_nr(&ptr, 12);
261 switch (*ptr) {
278 ptr++;
279 } while (!s->errors->error_count && *ptr);
289 s->period->y = timelib_get_unsigned_nr(&ptr, 4);
290 ptr++;
291 s->period->m = timelib_get_unsigned_nr(&ptr, 2);
292 ptr++;
293 s->period->d = timelib_get_unsigned_nr(&ptr, 2);
294 ptr++;
295 s->period->h = timelib_get_unsigned_nr(&ptr, 2);
296 ptr++;
297 s->period->i = timelib_get_unsigned_nr(&ptr, 2);
298 ptr++;
299 s->period->s = timelib_get_unsigned_nr(&ptr, 2);