Lines Matching refs:buf

88 _strptime(const char *buf, const char *fmt, struct tm *tm, int *GMTp,  in _strptime()  argument
115 while (*buf != 0 && in _strptime()
116 isspace_l((unsigned char)*buf, locale)) in _strptime()
117 buf++; in _strptime()
118 else if (c != *buf++) in _strptime()
129 if (*buf++ != '%') in _strptime()
134 buf = _strptime(buf, tptr->date_fmt, tm, GMTp, locale); in _strptime()
135 if (buf == NULL) in _strptime()
141 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
146 for (i = 0; len && *buf != 0 && in _strptime()
147 isdigit_l((unsigned char)*buf, locale); buf++) { in _strptime()
149 i += *buf - '0'; in _strptime()
159 buf = _strptime(buf, tptr->c_fmt, tm, GMTp, locale); in _strptime()
160 if (buf == NULL) in _strptime()
166 buf = _strptime(buf, "%m/%d/%y", tm, GMTp, locale); in _strptime()
167 if (buf == NULL) in _strptime()
185 buf = _strptime(buf, "%Y-%m-%d", tm, GMTp, locale); in _strptime()
186 if (buf == NULL) in _strptime()
192 buf = _strptime(buf, "%H:%M", tm, GMTp, locale); in _strptime()
193 if (buf == NULL) in _strptime()
198 buf = _strptime(buf, tptr->ampm_fmt, tm, GMTp, locale); in _strptime()
199 if (buf == NULL) in _strptime()
204 buf = _strptime(buf, "%H:%M:%S", tm, GMTp, locale); in _strptime()
205 if (buf == NULL) in _strptime()
210 buf = _strptime(buf, tptr->X_fmt, tm, GMTp, locale); in _strptime()
211 if (buf == NULL) in _strptime()
216 buf = _strptime(buf, tptr->x_fmt, tm, GMTp, locale); in _strptime()
217 if (buf == NULL) in _strptime()
223 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
227 for (i = 0; len && *buf != 0 && in _strptime()
228 isdigit_l((unsigned char)*buf, locale); buf++){ in _strptime()
230 i += *buf - '0'; in _strptime()
243 if (*buf == 0 || in _strptime()
244 isspace_l((unsigned char)*buf, locale)) in _strptime()
247 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
251 for (i = 0; len && *buf != 0 && in _strptime()
252 isdigit_l((unsigned char)*buf, locale); buf++){ in _strptime()
254 i += *buf - '0'; in _strptime()
282 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
286 for (i = 0; len && *buf != 0 && in _strptime()
287 isdigit_l((unsigned char)*buf, locale); buf++) { in _strptime()
289 i += *buf - '0'; in _strptime()
311 if (strncasecmp_l(buf, tptr->am, len, locale) == 0) { in _strptime()
314 buf += len; in _strptime()
319 if (strncasecmp_l(buf, tptr->pm, len, locale) == 0) { in _strptime()
322 buf += len; in _strptime()
332 if (strncasecmp_l(buf, tptr->weekday[i], in _strptime()
336 if (strncasecmp_l(buf, tptr->wday[i], in _strptime()
343 buf += len; in _strptime()
356 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
360 for (i = 0; len && *buf != 0 && in _strptime()
361 isdigit_l((unsigned char)*buf, locale); buf++) { in _strptime()
363 i += *buf - '0'; in _strptime()
381 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
384 i = *buf++ - '0'; in _strptime()
399 if (*buf != 0 && in _strptime()
400 isspace_l((unsigned char)*buf, locale)) in _strptime()
401 buf++; in _strptime()
413 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
417 for (i = 0; len && *buf != 0 && in _strptime()
418 isdigit_l((unsigned char)*buf, locale); buf++) { in _strptime()
420 i += *buf - '0'; in _strptime()
438 if (strncasecmp_l(buf, in _strptime()
445 if (strncasecmp_l(buf, tptr->month[i], in _strptime()
457 if (strncasecmp_l(buf, tptr->mon[i], in _strptime()
466 buf += len; in _strptime()
472 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
476 for (i = 0; len && *buf != 0 && in _strptime()
477 isdigit_l((unsigned char)*buf, locale); buf++) { in _strptime()
479 i += *buf - '0'; in _strptime()
499 n = strtol_l(buf, &cp, 10, locale); in _strptime()
505 buf = cp; in _strptime()
516 if (*buf == 0 || in _strptime()
517 isspace_l((unsigned char)*buf, locale)) in _strptime()
520 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
524 for (i = 0; len && *buf != 0 && in _strptime()
525 isdigit_l((unsigned char)*buf, locale); buf++) { in _strptime()
527 i += *buf - '0'; in _strptime()
543 for (cp = buf; *cp && in _strptime()
546 if (cp - buf) { in _strptime()
547 zonestr = alloca(cp - buf + 1); in _strptime()
548 strncpy(zonestr, buf, cp - buf); in _strptime()
549 zonestr[cp - buf] = '\0'; in _strptime()
561 buf += cp - buf; in _strptime()
570 if (*buf != '+') { in _strptime()
571 if (*buf == '-') in _strptime()
577 buf++; in _strptime()
580 if (isdigit_l((unsigned char)*buf, locale)) { in _strptime()
582 i += *buf - '0'; in _strptime()
583 buf++; in _strptime()
602 while (isspace_l((unsigned char)*buf, locale)) in _strptime()
603 buf++; in _strptime()
690 return ((char *)buf); in _strptime()
694 strptime_l(const char * __restrict buf, const char * __restrict fmt, in strptime_l() argument
702 ret = _strptime(buf, fmt, tm, &gmt, loc); in strptime_l()
713 strptime(const char * __restrict buf, const char * __restrict fmt, in strptime() argument
716 return strptime_l(buf, fmt, tm, __get_locale()); in strptime()