Lines Matching defs:pat
700 match(const char *name, const Char *pat, const Char *patend, int m_not)
707 patNext = pat;
711 while (pat < patend || *name) {
715 c = *pat; /* Only for M_MASK bits */
719 pwk = One_Char_mbtowc(&wc, pat, MB_LEN_MAX);
723 while ((*(pat + pwk) & M_MASK) == M_ALL) {
724 pat += pwk;
725 pwk = One_Char_mbtowc(&wc, pat, MB_LEN_MAX);
727 patNext = pat;
729 pat += pwk;
735 pat += pwk;
741 pat += pwk;
742 pwk = One_Char_mbtowc(&wc, pat, MB_LEN_MAX);
744 if ((negate_range = ((*pat & M_MASK) == m_not)) != 0) {
745 pat += pwk;
746 pwk = One_Char_mbtowc(&wc, pat, MB_LEN_MAX);
749 while ((*pat & M_MASK) != M_END) {
750 if ((*pat & M_MASK) == M_RNG) {
753 pat += pwk;
754 pwk = One_Char_mbtowc(&wc2, pat, MB_LEN_MAX);
760 pat += pwk;
762 pwk = One_Char_mbtowc(&wc, pat, MB_LEN_MAX);
764 pat += pwk;
765 pwk = One_Char_mbtowc(&wc, pat, MB_LEN_MAX);
773 pat += pwk;
778 pat = patNext;