Lines Matching refs:pattern
58 PHPAPI int fnmatch(const char *pattern, const char *string, int flags) in fnmatch() argument
64 switch (c = *pattern++) { in fnmatch()
81 c = *pattern; in fnmatch()
84 c = *++pattern; in fnmatch()
107 if (!fnmatch(pattern, string, flags & ~FNM_PERIOD)) in fnmatch()
119 if ((pattern = in fnmatch()
120 rangematch(pattern, *string, flags)) == NULL) in fnmatch()
126 if ((c = *pattern++) == EOS) { in fnmatch()
128 --pattern; in fnmatch()
152 rangematch(const char *pattern, char test, int flags) in rangematch() argument
164 if ( (negate = (*pattern == '!' || *pattern == '^')) ) in rangematch()
165 ++pattern; in rangematch()
170 for (ok = 0; (c = *pattern++) != ']';) { in rangematch()
172 c = *pattern++; in rangematch()
179 if (*pattern == '-' in rangematch()
180 && (c2 = *(pattern+1)) != EOS && c2 != ']') { in rangematch()
181 pattern += 2; in rangematch()
183 c2 = *pattern++; in rangematch()
196 return (ok == negate ? NULL : pattern); in rangematch()