Lines Matching refs:strp

811 getzname(register const char *strp)
815 while ((c = *strp) != '\0' && !is_digit(c) && c != ',' && c != '-' &&
817 ++strp;
818 return strp;
832 getqzname(register const char *strp, const int delim)
836 while ((c = *strp) != '\0' && c != delim)
837 ++strp;
838 return strp;
849 getnum(register const char *strp, int *const nump, const int min, const int max)
854 if (strp == NULL || !is_digit(c = *strp))
861 c = *++strp;
866 return strp;
878 getsecs(register const char *strp, int_fast32_t *const secsp)
889 strp = getnum(strp, &num, 0, HOURSPERDAY * DAYSPERWEEK - 1);
890 if (strp == NULL)
893 if (*strp == ':') {
894 ++strp;
895 strp = getnum(strp, &num, 0, MINSPERHOUR - 1);
896 if (strp == NULL)
899 if (*strp == ':') {
900 ++strp;
902 strp = getnum(strp, &num, 0, SECSPERMIN);
903 if (strp == NULL)
908 return strp;
919 getoffset(register const char *strp, int_fast32_t *const offsetp)
923 if (*strp == '-') {
925 ++strp;
926 } else if (*strp == '+')
927 ++strp;
928 strp = getsecs(strp, offsetp);
929 if (strp == NULL)
933 return strp;
945 getrule(const char *strp, register struct rule *const rulep)
947 if (*strp == 'J') {
952 ++strp;
953 strp = getnum(strp, &rulep->r_day, 1, DAYSPERNYEAR);
954 } else if (*strp == 'M') {
959 ++strp;
960 strp = getnum(strp, &rulep->r_mon, 1, MONSPERYEAR);
961 if (strp == NULL)
963 if (*strp++ != '.')
965 strp = getnum(strp, &rulep->r_week, 1, 5);
966 if (strp == NULL)
968 if (*strp++ != '.')
970 strp = getnum(strp, &rulep->r_day, 0, DAYSPERWEEK - 1);
971 } else if (is_digit(*strp)) {
976 strp = getnum(strp, &rulep->r_day, 0, DAYSPERLYEAR - 1);
978 if (strp == NULL)
980 if (*strp == '/') {
984 ++strp;
985 strp = getoffset(strp, &rulep->r_time);
987 return strp;