Lines Matching refs:bp

119 fromzone(const unsigned char **bp, struct tm *tm, int mandatory)  in fromzone()  argument
125 for (p = buf, rp = *bp; !delim(*rp) && p < &buf[sizeof(buf) - 1]; rp++) in fromzone()
130 *bp = rp; in fromzone()
137 *bp = rp; in fromzone()
160 const unsigned char *bp, *ep, *zname; in strptime_l() local
165 bp = (const u_char *)buf; in strptime_l()
167 while (bp != NULL && (c = *fmt++) != '\0') { in strptime_l()
174 while (isspace(*bp)) in strptime_l()
175 bp++; in strptime_l()
186 if (c != *bp++) in strptime_l()
248 bp = (const u_char *)strptime((const char *)bp, in strptime_l()
258 bp = find_string(bp, &tm->tm_wday, in strptime_l()
267 bp = find_string(bp, &tm->tm_mon, in strptime_l()
276 bp = conv_num(bp, &i, 0, 99); in strptime_l()
289 bp = conv_num(bp, &tm->tm_mday, 1, 31); in strptime_l()
298 bp = conv_num(bp, &tm->tm_hour, 0, 23); in strptime_l()
307 bp = conv_num(bp, &tm->tm_hour, 1, 12); in strptime_l()
316 bp = conv_num(bp, &i, 1, 366); in strptime_l()
323 bp = conv_num(bp, &tm->tm_min, 0, 59); in strptime_l()
329 bp = conv_num(bp, &i, 1, 12); in strptime_l()
336 bp = find_string(bp, &i, _TIME_LOCALE(loc)->am_pm, in strptime_l()
345 bp = conv_num(bp, &tm->tm_sec, 0, 61); in strptime_l()
353 if (*bp < '0' || *bp > '9') { in strptime_l()
354 bp = NULL; in strptime_l()
358 sse = *bp++ - '0'; in strptime_l()
359 while (*bp >= '0' && *bp <= '9') { in strptime_l()
360 d = *bp++ - '0'; in strptime_l()
362 bp = NULL; in strptime_l()
367 bp = NULL; in strptime_l()
372 if (bp == NULL) in strptime_l()
376 bp = NULL; in strptime_l()
391 bp = conv_num(bp, &i, 0, 53); in strptime_l()
401 bp = conv_num(bp, &tm->tm_wday, 0, 6); in strptime_l()
407 bp = conv_num(bp, &i, 1, 7); in strptime_l()
416 bp = conv_num(bp, &i, 0, 99); in strptime_l()
423 bp++; in strptime_l()
424 while (isdigit(*bp)); in strptime_l()
428 bp = conv_num(bp, &i, 1, 53); in strptime_l()
433 bp = conv_num(bp, &i, 0, 9999); in strptime_l()
441 bp = conv_num(bp, &i, 0, 99); in strptime_l()
481 while (isspace(*bp)) in strptime_l()
482 bp++; in strptime_l()
484 zname = bp; in strptime_l()
485 switch (*bp++) { in strptime_l()
487 if (*bp++ != 'M') in strptime_l()
491 if (*bp++ != 'T') in strptime_l()
493 else if (!delim(*bp) && *bp++ != 'C') in strptime_l()
497 if (!delim(*bp)) in strptime_l()
515 bp = zname; in strptime_l()
518 if (delim(bp[1]) && in strptime_l()
519 ((*bp >= 'A' && *bp <= 'I') || in strptime_l()
520 (*bp >= 'L' && *bp <= 'Y'))) { in strptime_l()
523 if (*bp >= 'A' && *bp <= 'I') in strptime_l()
525 (int)*bp - ('A' - 1); in strptime_l()
526 else if (*bp >= 'L' && *bp <= 'M') in strptime_l()
527 tm->TM_GMTOFF = (int)*bp - 'A'; in strptime_l()
528 else if (*bp >= 'N' && *bp <= 'Y') in strptime_l()
529 tm->TM_GMTOFF = 'M' - (int)*bp; in strptime_l()
535 bp++; in strptime_l()
539 if (delim(bp[1]) && *bp == 'J') { in strptime_l()
546 bp++; in strptime_l()
554 if (delim(bp[0]) || delim(bp[1]) || in strptime_l()
555 delim(bp[2]) || !delim(bp[3])) in strptime_l()
557 ep = find_string(bp, &i, nast, NULL, 4); in strptime_l()
565 bp = ep; in strptime_l()
568 ep = find_string(bp, &i, nadt, NULL, 4); in strptime_l()
577 bp = ep; in strptime_l()
583 ep = find_string(bp, &i, in strptime_l()
594 bp = ep; in strptime_l()
601 if (fromzone(&bp, tm, mandatory)) in strptime_l()
607 if (isdigit(*bp)) { in strptime_l()
608 offs = offs * 10 + (*bp++ - '0'); in strptime_l()
612 if (i == 2 && *bp == ':') { in strptime_l()
613 bp++; in strptime_l()
618 if (isdigit(*bp)) in strptime_l()
636 bp = zname; in strptime_l()
658 while (isspace(*bp)) in strptime_l()
659 bp++; in strptime_l()
731 return __UNCONST(bp); in strptime_l()
763 find_string(const u_char *bp, int *tgt, const char * const *n1, in find_string() argument
773 if (strncasecmp(*n1, (const char *)bp, len) == 0) { in find_string()
775 return bp + len; in find_string()