Lines Matching defs:pattern
116 int match(string, pattern, ignore_case __WDL)
118 ZCONST char *pattern;
124 if (!(*pattern))
127 if ( (!(*string)) && (!(*pattern)) )
129 else if ( !(*pattern) )
131 else if (*pattern == '*') {
132 if (!*(pattern+1))
136 matched = match(string+k, pattern+1, ignore_case __WDL);
140 } else if (*pattern == '@') {
144 } else if (*pattern == '#') {
147 } else if (*pattern != '?') {
148 if (toupper(*string) != toupper(*pattern))
152 string++; pattern++;