Lines Matching refs:pattern
59 PHPAPI int fnmatch(const char *pattern, const char *string, int flags) in fnmatch() argument
65 switch (c = *pattern++) { in fnmatch()
82 c = *pattern; in fnmatch()
85 c = *++pattern; in fnmatch()
108 if (!fnmatch(pattern, string, flags & ~FNM_PERIOD)) in fnmatch()
120 if ((pattern = in fnmatch()
121 rangematch(pattern, *string, flags)) == NULL) in fnmatch()
127 if ((c = *pattern++) == EOS) { in fnmatch()
129 --pattern; in fnmatch()
153 rangematch(const char *pattern, char test, int flags) in rangematch() argument
165 if ( (negate = (*pattern == '!' || *pattern == '^')) ) in rangematch()
166 ++pattern; in rangematch()
171 for (ok = 0; (c = *pattern++) != ']';) { in rangematch()
173 c = *pattern++; in rangematch()
180 if (*pattern == '-' in rangematch()
181 && (c2 = *(pattern+1)) != EOS && c2 != ']') { in rangematch()
182 pattern += 2; in rangematch()
184 c2 = *pattern++; in rangematch()
197 return (ok == negate ? NULL : pattern); in rangematch()