Lines Matching refs:strp
1428 getzname(register const char *strp)
1432 while ((c = *strp) != '\0' && !is_digit(c) && c != ',' && c != '-' &&
1434 ++strp;
1435 return strp;
1449 getqzname(register const char *strp, const int delim)
1453 while ((c = *strp) != '\0' && c != delim)
1454 ++strp;
1455 return strp;
1466 getnum(register const char *strp, int *const nump, const int min, const int max)
1471 if (strp == NULL || !is_digit(c = *strp)) {
1482 c = *++strp;
1489 return strp;
1501 getsecs(register const char *strp, int_fast32_t *const secsp)
1512 strp = getnum(strp, &num, 0, HOURSPERDAY * DAYSPERWEEK - 1);
1513 if (strp == NULL)
1516 if (*strp == ':') {
1517 ++strp;
1518 strp = getnum(strp, &num, 0, MINSPERHOUR - 1);
1519 if (strp == NULL)
1522 if (*strp == ':') {
1523 ++strp;
1525 strp = getnum(strp, &num, 0, SECSPERMIN);
1526 if (strp == NULL)
1531 return strp;
1542 getoffset(register const char *strp, int_fast32_t *const offsetp)
1546 if (*strp == '-') {
1548 ++strp;
1549 } else if (*strp == '+')
1550 ++strp;
1551 strp = getsecs(strp, offsetp);
1552 if (strp == NULL)
1556 return strp;
1568 getrule(const char *strp, register struct rule *const rulep)
1570 if (*strp == 'J') {
1575 ++strp;
1576 strp = getnum(strp, &rulep->r_day, 1, DAYSPERNYEAR);
1577 } else if (*strp == 'M') {
1582 ++strp;
1583 strp = getnum(strp, &rulep->r_mon, 1, MONSPERYEAR);
1584 if (strp == NULL)
1586 if (*strp++ != '.')
1588 strp = getnum(strp, &rulep->r_week, 1, 5);
1589 if (strp == NULL)
1591 if (*strp++ != '.')
1593 strp = getnum(strp, &rulep->r_day, 0, DAYSPERWEEK - 1);
1594 } else if (is_digit(*strp)) {
1599 strp = getnum(strp, &rulep->r_day, 0, DAYSPERLYEAR - 1);
1601 if (strp == NULL)
1603 if (*strp == '/') {
1607 ++strp;
1608 strp = getoffset(strp, &rulep->r_time);
1610 return strp;