Lines Matching refs:strp

136 static const char *	getzname(const char * strp) ATTRIBUTE_PURE;
137 static const char * getqzname(const char * strp, const int delim)
139 static const char * getnum(const char * strp, int * nump, int min,
141 static const char * getsecs(const char * strp, int_fast32_t * secsp);
142 static const char * getoffset(const char * strp, int_fast32_t * offsetp);
143 static const char * getrule(const char * strp, struct rule * rulep);
649 getzname(register const char *strp) in getzname() argument
653 while ((c = *strp) != '\0' && !is_digit(c) && c != ',' && c != '-' && in getzname()
655 ++strp; in getzname()
656 return strp; in getzname()
669 getqzname(register const char *strp, const int delim) in getqzname() argument
673 while ((c = *strp) != '\0' && c != delim) in getqzname()
674 ++strp; in getqzname()
675 return strp; in getqzname()
686 getnum(register const char *strp, int *const nump, const int min, const int max) in getnum() argument
691 if (strp == NULL || !is_digit(c = *strp)) in getnum()
698 c = *++strp; in getnum()
703 return strp; in getnum()
715 getsecs(register const char *strp, int_fast32_t *const secsp) in getsecs() argument
725 strp = getnum(strp, &num, 0, HOURSPERDAY * DAYSPERWEEK - 1); in getsecs()
726 if (strp == NULL) in getsecs()
729 if (*strp == ':') { in getsecs()
730 ++strp; in getsecs()
731 strp = getnum(strp, &num, 0, MINSPERHOUR - 1); in getsecs()
732 if (strp == NULL) in getsecs()
735 if (*strp == ':') { in getsecs()
736 ++strp; in getsecs()
738 strp = getnum(strp, &num, 0, SECSPERMIN); in getsecs()
739 if (strp == NULL) in getsecs()
744 return strp; in getsecs()
755 getoffset(register const char *strp, int_fast32_t *const offsetp) in getoffset() argument
759 if (*strp == '-') { in getoffset()
761 ++strp; in getoffset()
762 } else if (*strp == '+') in getoffset()
763 ++strp; in getoffset()
764 strp = getsecs(strp, offsetp); in getoffset()
765 if (strp == NULL) in getoffset()
769 return strp; in getoffset()
780 getrule(const char *strp, register struct rule *const rulep) in getrule() argument
782 if (*strp == 'J') { in getrule()
787 ++strp; in getrule()
788 strp = getnum(strp, &rulep->r_day, 1, DAYSPERNYEAR); in getrule()
789 } else if (*strp == 'M') { in getrule()
794 ++strp; in getrule()
795 strp = getnum(strp, &rulep->r_mon, 1, MONSPERYEAR); in getrule()
796 if (strp == NULL) in getrule()
798 if (*strp++ != '.') in getrule()
800 strp = getnum(strp, &rulep->r_week, 1, 5); in getrule()
801 if (strp == NULL) in getrule()
803 if (*strp++ != '.') in getrule()
805 strp = getnum(strp, &rulep->r_day, 0, DAYSPERWEEK - 1); in getrule()
806 } else if (is_digit(*strp)) { in getrule()
811 strp = getnum(strp, &rulep->r_day, 0, DAYSPERLYEAR - 1); in getrule()
813 if (strp == NULL) in getrule()
815 if (*strp == '/') { in getrule()
819 ++strp; in getrule()
820 strp = getoffset(strp, &rulep->r_time); in getrule()
822 return strp; in getrule()