Lines Matching refs:bp
96 const unsigned char *bp, *ep; in _strptime() local
108 bp = (const unsigned char *)buf; in _strptime()
115 while (isspace(*bp)) in _strptime()
116 bp++; in _strptime()
129 if (c != *bp++) in _strptime()
153 if (!(bp = _strptime(bp, _ctloc(d_t_fmt), tm, 0))) in _strptime()
159 if (!(bp = _strptime(bp, "%m/%d/%y", tm, 0))) in _strptime()
165 if (!(bp = _strptime(bp, "%Y-%m-%d", tm, 0))) in _strptime()
171 if (!(bp = _strptime(bp, "%H:%M", tm, 0))) in _strptime()
177 if (!(bp = _strptime(bp, "%I:%M:%S %p", tm, 0))) in _strptime()
183 if (!(bp = _strptime(bp, "%H:%M:%S", tm, 0))) in _strptime()
189 if (!(bp = _strptime(bp, _ctloc(t_fmt), tm, 0))) in _strptime()
195 if (!(bp = _strptime(bp, _ctloc(d_fmt), tm, 0))) in _strptime()
208 if (strncasecmp(_ctloc(day[i]), bp, len) == 0) in _strptime()
213 if (strncasecmp(_ctloc(abday[i]), bp, len) == 0) in _strptime()
222 bp += len; in _strptime()
233 if (strncasecmp(_ctloc(mon[i]), bp, len) == 0) in _strptime()
238 if (strncasecmp(_ctloc(abmon[i]), bp, len) == 0) in _strptime()
247 bp += len; in _strptime()
253 if (!(_conv_num(&bp, &i, 0, 99))) in _strptime()
260 if (isspace(*bp)) in _strptime()
261 bp++; in _strptime()
265 if (!(_conv_num(&bp, &tm->tm_mday, 1, 31))) in _strptime()
275 if (!(_conv_num(&bp, &tm->tm_hour, 0, 23))) in _strptime()
284 if (!(_conv_num(&bp, &tm->tm_hour, 1, 12))) in _strptime()
290 if (!(_conv_num(&bp, &tm->tm_yday, 1, 366))) in _strptime()
298 if (!(_conv_num(&bp, &tm->tm_min, 0, 59))) in _strptime()
304 if (!(_conv_num(&bp, &tm->tm_mon, 1, 12))) in _strptime()
314 if (strncasecmp(_ctloc(am_pm[0]), bp, len) == 0) { in _strptime()
320 bp += len; in _strptime()
325 if (strncasecmp(_ctloc(am_pm[1]), bp, len) == 0) { in _strptime()
331 bp += len; in _strptime()
340 if (!(_conv_num(&bp, &tm->tm_sec, 0, 60))) in _strptime()
344 if (!(epoch_to_tm(&bp, tm))) in _strptime()
357 if (!(_conv_num(&bp, &i, 0, 53))) in _strptime()
363 if (!(_conv_num(&bp, &tm->tm_wday, 0, 6))) in _strptime()
370 if (!(_conv_num(&bp, &i, 1, 7))) in _strptime()
379 if (!(_conv_num(&bp, &i, 0, 99))) in _strptime()
387 bp++; in _strptime()
388 while (isdigit(*bp)); in _strptime()
392 if (!(_conv_num(&bp, &i, 0, 53))) in _strptime()
398 if (!(_conv_num(&bp, &i, 0, 9999))) in _strptime()
408 if (!(_conv_num(&bp, &relyear, 0, 99))) in _strptime()
414 if (strncmp((const char *)bp, gmt, 3) == 0) { in _strptime()
418 bp += 3; in _strptime()
419 } else if (strncmp((const char *)bp, utc, 3) == 0) { in _strptime()
423 bp += 3; in _strptime()
425 ep = _find_string(bp, &i, in _strptime()
434 bp = ep; in _strptime()
453 while (isspace(*bp)) in _strptime()
454 bp++; in _strptime()
456 switch (*bp++) { in _strptime()
458 if (*bp++ != 'M') in _strptime()
462 if (*bp++ != 'T') in _strptime()
477 --bp; in _strptime()
478 ep = _find_string(bp, &i, nast, NULL, 4); in _strptime()
482 bp = ep; in _strptime()
485 ep = _find_string(bp, &i, nadt, NULL, 4); in _strptime()
490 bp = ep; in _strptime()
495 if (!isdigit(bp[0]) || !isdigit(bp[1])) in _strptime()
497 offs = ((bp[0]-'0') * 10 + (bp[1]-'0')) * SECSPERHOUR; in _strptime()
498 bp += 2; in _strptime()
499 if (*bp == ':') in _strptime()
500 bp++; in _strptime()
501 if (isdigit(*bp)) { in _strptime()
502 offs += (*bp++ - '0') * 10 * SECSPERMIN; in _strptime()
503 if (!isdigit(*bp)) in _strptime()
505 offs += (*bp++ - '0') * SECSPERMIN; in _strptime()
520 while (isspace(*bp)) in _strptime()
521 bp++; in _strptime()
582 return ((char *)bp); in _strptime()
634 _find_string(const u_char *bp, int *tgt, const char * const *n1, in _find_string() argument
644 if (strncasecmp(*n1, (const char *)bp, len) == 0) { in _find_string()
646 return bp + len; in _find_string()