Lines Matching defs:strp
971 getzname(register const char *strp)
975 while ((c = *strp) != '\0' && !is_digit(c) && c != ',' && c != '-' &&
977 ++strp;
978 return strp;
992 getqzname(register const char *strp, const int delim)
996 while ((c = *strp) != '\0' && c != delim)
997 ++strp;
998 return strp;
1009 getnum(register const char *strp, int *const nump, const int min, const int max)
1014 if (strp == NULL || !is_digit(c = *strp)) {
1025 c = *++strp;
1032 return strp;
1044 getsecs(register const char *strp, int_fast32_t *const secsp)
1055 strp = getnum(strp, &num, 0, HOURSPERDAY * DAYSPERWEEK - 1);
1056 if (strp == NULL)
1059 if (*strp == ':') {
1060 ++strp;
1061 strp = getnum(strp, &num, 0, MINSPERHOUR - 1);
1062 if (strp == NULL)
1065 if (*strp == ':') {
1066 ++strp;
1068 strp = getnum(strp, &num, 0, SECSPERMIN);
1069 if (strp == NULL)
1074 return strp;
1085 getoffset(register const char *strp, int_fast32_t *const offsetp)
1089 if (*strp == '-') {
1091 ++strp;
1092 } else if (*strp == '+')
1093 ++strp;
1094 strp = getsecs(strp, offsetp);
1095 if (strp == NULL)
1099 return strp;
1111 getrule(const char *strp, register struct rule *const rulep)
1113 if (*strp == 'J') {
1118 ++strp;
1119 strp = getnum(strp, &rulep->r_day, 1, DAYSPERNYEAR);
1120 } else if (*strp == 'M') {
1125 ++strp;
1126 strp = getnum(strp, &rulep->r_mon, 1, MONSPERYEAR);
1127 if (strp == NULL)
1129 if (*strp++ != '.')
1131 strp = getnum(strp, &rulep->r_week, 1, 5);
1132 if (strp == NULL)
1134 if (*strp++ != '.')
1136 strp = getnum(strp, &rulep->r_day, 0, DAYSPERWEEK - 1);
1137 } else if (is_digit(*strp)) {
1142 strp = getnum(strp, &rulep->r_day, 0, DAYSPERLYEAR - 1);
1144 if (strp == NULL)
1146 if (*strp == '/') {
1150 ++strp;
1151 strp = getoffset(strp, &rulep->r_time);
1153 return strp;