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()
285 isblank_l((unsigned char)*buf, locale)) { in _strptime()
286 buf++; in _strptime()
290 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
293 for (i = 0; len && *buf != 0 && in _strptime()
294 isdigit_l((unsigned char)*buf, locale); buf++) { in _strptime()
296 i += *buf - '0'; in _strptime()
318 if (strncasecmp_l(buf, tptr->am, len, locale) == 0) { in _strptime()
321 buf += len; in _strptime()
326 if (strncasecmp_l(buf, tptr->pm, len, locale) == 0) { in _strptime()
329 buf += len; in _strptime()
339 if (strncasecmp_l(buf, tptr->weekday[i], in _strptime()
343 if (strncasecmp_l(buf, tptr->wday[i], in _strptime()
350 buf += len; in _strptime()
363 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
367 for (i = 0; len && *buf != 0 && in _strptime()
368 isdigit_l((unsigned char)*buf, locale); buf++) { in _strptime()
370 i += *buf - '0'; in _strptime()
388 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
391 i = *buf++ - '0'; in _strptime()
406 if (*buf != 0 && in _strptime()
407 isspace_l((unsigned char)*buf, locale)) in _strptime()
408 buf++; in _strptime()
420 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
424 for (i = 0; len && *buf != 0 && in _strptime()
425 isdigit_l((unsigned char)*buf, locale); buf++) { in _strptime()
427 i += *buf - '0'; in _strptime()
445 if (strncasecmp_l(buf, in _strptime()
452 if (strncasecmp_l(buf, tptr->month[i], in _strptime()
464 if (strncasecmp_l(buf, tptr->mon[i], in _strptime()
473 buf += len; in _strptime()
479 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
483 for (i = 0; len && *buf != 0 && in _strptime()
484 isdigit_l((unsigned char)*buf, locale); buf++) { in _strptime()
486 i += *buf - '0'; in _strptime()
506 n = strtol_l(buf, &cp, 10, locale); in _strptime()
512 buf = cp; in _strptime()
523 if (*buf == 0 || in _strptime()
524 isspace_l((unsigned char)*buf, locale)) in _strptime()
527 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
531 for (i = 0; len && *buf != 0 && in _strptime()
532 isdigit_l((unsigned char)*buf, locale); buf++) { in _strptime()
534 i += *buf - '0'; in _strptime()
550 for (cp = buf; *cp && in _strptime()
553 if (cp - buf) { in _strptime()
554 zonestr = alloca(cp - buf + 1); in _strptime()
555 strncpy(zonestr, buf, cp - buf); in _strptime()
556 zonestr[cp - buf] = '\0'; in _strptime()
568 buf += cp - buf; in _strptime()
577 if (*buf != '+') { in _strptime()
578 if (*buf == '-') in _strptime()
584 buf++; in _strptime()
587 if (isdigit_l((unsigned char)*buf, locale)) { in _strptime()
589 i += *buf - '0'; in _strptime()
590 buf++; in _strptime()
609 while (isspace_l((unsigned char)*buf, locale)) in _strptime()
610 buf++; in _strptime()
697 return ((char *)buf); in _strptime()
701 strptime_l(const char * __restrict buf, const char * __restrict fmt, in strptime_l() argument
709 ret = _strptime(buf, fmt, tm, &gmt, loc); in strptime_l()
720 strptime(const char * __restrict buf, const char * __restrict fmt, in strptime() argument
723 return strptime_l(buf, fmt, tm, __get_locale()); in strptime()