Lines Matching refs:strp
872 getzname(register const char *strp) in getzname() argument
876 while ((c = *strp) != '\0' && !is_digit(c) && c != ',' && c != '-' && in getzname()
878 ++strp; in getzname()
879 return strp; in getzname()
893 getqzname(register const char *strp, const int delim) in getqzname() argument
897 while ((c = *strp) != '\0' && c != delim) in getqzname()
898 ++strp; in getqzname()
899 return strp; in getqzname()
910 getnum(register const char *strp, int *const nump, const int min, const int max) in getnum() argument
915 if (strp == NULL || !is_digit(c = *strp)) in getnum()
922 c = *++strp; in getnum()
927 return strp; in getnum()
939 getsecs(register const char *strp, int_fast32_t *const secsp) in getsecs() argument
950 strp = getnum(strp, &num, 0, HOURSPERDAY * DAYSPERWEEK - 1); in getsecs()
951 if (strp == NULL) in getsecs()
954 if (*strp == ':') { in getsecs()
955 ++strp; in getsecs()
956 strp = getnum(strp, &num, 0, MINSPERHOUR - 1); in getsecs()
957 if (strp == NULL) in getsecs()
960 if (*strp == ':') { in getsecs()
961 ++strp; in getsecs()
963 strp = getnum(strp, &num, 0, SECSPERMIN); in getsecs()
964 if (strp == NULL) in getsecs()
969 return strp; in getsecs()
980 getoffset(register const char *strp, int_fast32_t *const offsetp) in getoffset() argument
984 if (*strp == '-') { in getoffset()
986 ++strp; in getoffset()
987 } else if (*strp == '+') in getoffset()
988 ++strp; in getoffset()
989 strp = getsecs(strp, offsetp); in getoffset()
990 if (strp == NULL) in getoffset()
994 return strp; in getoffset()
1005 getrule(const char *strp, register struct rule *const rulep) in getrule() argument
1007 if (*strp == 'J') { in getrule()
1012 ++strp; in getrule()
1013 strp = getnum(strp, &rulep->r_day, 1, DAYSPERNYEAR); in getrule()
1014 } else if (*strp == 'M') { in getrule()
1019 ++strp; in getrule()
1020 strp = getnum(strp, &rulep->r_mon, 1, MONSPERYEAR); in getrule()
1021 if (strp == NULL) in getrule()
1023 if (*strp++ != '.') in getrule()
1025 strp = getnum(strp, &rulep->r_week, 1, 5); in getrule()
1026 if (strp == NULL) in getrule()
1028 if (*strp++ != '.') in getrule()
1030 strp = getnum(strp, &rulep->r_day, 0, DAYSPERWEEK - 1); in getrule()
1031 } else if (is_digit(*strp)) { in getrule()
1036 strp = getnum(strp, &rulep->r_day, 0, DAYSPERLYEAR - 1); in getrule()
1038 if (strp == NULL) in getrule()
1040 if (*strp == '/') { in getrule()
1044 ++strp; in getrule()
1045 strp = getoffset(strp, &rulep->r_time); in getrule()
1047 return strp; in getrule()