Lines Matching refs:buf

87 _strptime(const char *buf, const char *fmt, struct tm *tm, int *GMTp,  in _strptime()  argument
114 while (*buf != 0 && in _strptime()
115 isspace_l((unsigned char)*buf, locale)) in _strptime()
116 buf++; in _strptime()
117 else if (c != *buf++) in _strptime()
128 if (*buf++ != '%') in _strptime()
133 buf = _strptime(buf, tptr->date_fmt, tm, GMTp, locale); in _strptime()
134 if (buf == NULL) in _strptime()
140 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
145 for (i = 0; len && *buf != 0 && in _strptime()
146 isdigit_l((unsigned char)*buf, locale); buf++) { in _strptime()
148 i += *buf - '0'; in _strptime()
158 buf = _strptime(buf, tptr->c_fmt, tm, GMTp, locale); in _strptime()
159 if (buf == NULL) in _strptime()
165 buf = _strptime(buf, "%m/%d/%y", tm, GMTp, locale); in _strptime()
166 if (buf == NULL) in _strptime()
184 buf = _strptime(buf, "%Y-%m-%d", tm, GMTp, locale); in _strptime()
185 if (buf == NULL) in _strptime()
191 buf = _strptime(buf, "%H:%M", tm, GMTp, locale); in _strptime()
192 if (buf == NULL) in _strptime()
197 buf = _strptime(buf, tptr->ampm_fmt, tm, GMTp, locale); in _strptime()
198 if (buf == NULL) in _strptime()
203 buf = _strptime(buf, "%H:%M:%S", tm, GMTp, locale); in _strptime()
204 if (buf == NULL) in _strptime()
209 buf = _strptime(buf, tptr->X_fmt, tm, GMTp, locale); in _strptime()
210 if (buf == NULL) in _strptime()
215 buf = _strptime(buf, tptr->x_fmt, tm, GMTp, locale); in _strptime()
216 if (buf == NULL) in _strptime()
222 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
226 for (i = 0; len && *buf != 0 && in _strptime()
227 isdigit_l((unsigned char)*buf, locale); buf++){ in _strptime()
229 i += *buf - '0'; in _strptime()
242 if (*buf == 0 || in _strptime()
243 isspace_l((unsigned char)*buf, locale)) in _strptime()
246 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
250 for (i = 0; len && *buf != 0 && in _strptime()
251 isdigit_l((unsigned char)*buf, locale); buf++){ in _strptime()
253 i += *buf - '0'; in _strptime()
284 isblank_l((unsigned char)*buf, locale)) { in _strptime()
285 buf++; in _strptime()
289 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
292 for (i = 0; len && *buf != 0 && in _strptime()
293 isdigit_l((unsigned char)*buf, locale); buf++) { in _strptime()
295 i += *buf - '0'; in _strptime()
317 if (strncasecmp_l(buf, tptr->am, len, locale) == 0) { in _strptime()
320 buf += len; in _strptime()
325 if (strncasecmp_l(buf, tptr->pm, len, locale) == 0) { in _strptime()
328 buf += len; in _strptime()
338 if (strncasecmp_l(buf, tptr->weekday[i], in _strptime()
342 if (strncasecmp_l(buf, tptr->wday[i], in _strptime()
349 buf += len; in _strptime()
362 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
366 for (i = 0; len && *buf != 0 && in _strptime()
367 isdigit_l((unsigned char)*buf, locale); buf++) { in _strptime()
369 i += *buf - '0'; in _strptime()
387 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
390 i = *buf++ - '0'; in _strptime()
405 if (*buf != 0 && in _strptime()
406 isspace_l((unsigned char)*buf, locale)) in _strptime()
407 buf++; in _strptime()
419 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
423 for (i = 0; len && *buf != 0 && in _strptime()
424 isdigit_l((unsigned char)*buf, locale); buf++) { in _strptime()
426 i += *buf - '0'; in _strptime()
444 if (strncasecmp_l(buf, in _strptime()
451 if (strncasecmp_l(buf, tptr->month[i], in _strptime()
463 if (strncasecmp_l(buf, tptr->mon[i], in _strptime()
472 buf += len; in _strptime()
478 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
482 for (i = 0; len && *buf != 0 && in _strptime()
483 isdigit_l((unsigned char)*buf, locale); buf++) { in _strptime()
485 i += *buf - '0'; in _strptime()
505 n = strtol_l(buf, &cp, 10, locale); in _strptime()
511 buf = cp; in _strptime()
522 if (*buf == 0 || in _strptime()
523 isspace_l((unsigned char)*buf, locale)) in _strptime()
526 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
530 for (i = 0; len && *buf != 0 && in _strptime()
531 isdigit_l((unsigned char)*buf, locale); buf++) { in _strptime()
533 i += *buf - '0'; in _strptime()
549 for (cp = buf; *cp && in _strptime()
552 if (cp - buf) { in _strptime()
553 zonestr = alloca(cp - buf + 1); in _strptime()
554 strncpy(zonestr, buf, cp - buf); in _strptime()
555 zonestr[cp - buf] = '\0'; in _strptime()
567 buf += cp - buf; in _strptime()
576 if (*buf != '+') { in _strptime()
577 if (*buf == '-') in _strptime()
583 buf++; in _strptime()
586 if (isdigit_l((unsigned char)*buf, locale)) { in _strptime()
588 i += *buf - '0'; in _strptime()
589 buf++; in _strptime()
608 while (isspace_l((unsigned char)*buf, locale)) in _strptime()
609 buf++; in _strptime()
696 return ((char *)buf); in _strptime()
700 strptime_l(const char * __restrict buf, const char * __restrict fmt, in strptime_l() argument
708 ret = _strptime(buf, fmt, tm, &gmt, loc); in strptime_l()
719 strptime(const char * __restrict buf, const char * __restrict fmt, in strptime() argument
722 return strptime_l(buf, fmt, tm, __get_locale()); in strptime()