Lines Matching refs:pattern

77 fnmatch(const char *pattern, const char *string, int flags)  in fnmatch()  argument
81 return (fnmatch1(pattern, string, string, flags, initial, initial)); in fnmatch()
85 fnmatch1(const char *pattern, const char *string, const char *stringstart, in fnmatch1() argument
97 pclen = mbrtowc(&pc, pattern, MB_LEN_MAX, &patmbs); in fnmatch1()
100 pattern += pclen; in fnmatch1()
126 c = *pattern; in fnmatch1()
129 c = *++pattern; in fnmatch1()
156 bt_pattern = pattern, bt_patmbs = patmbs; in fnmatch1()
169 switch (rangematch(pattern, sc, flags, &newp, in fnmatch1()
174 pattern = newp; in fnmatch1()
183 pclen = mbrtowc(&pc, pattern, MB_LEN_MAX, in fnmatch1()
188 pattern += pclen; in fnmatch1()
223 pattern = bt_pattern, patmbs = bt_patmbs; in fnmatch1()
233 rangematch(const char *pattern, wchar_t test, int flags, char **newp, in rangematch() argument
250 if ((negate = (*pattern == '!' || *pattern == '^'))) in rangematch()
251 ++pattern; in rangematch()
262 origpat = pattern; in rangematch()
264 if (*pattern == ']' && pattern > origpat) { in rangematch()
265 pattern++; in rangematch()
267 } else if (*pattern == '\0') { in rangematch()
269 } else if (*pattern == '/' && (flags & FNM_PATHNAME)) { in rangematch()
271 } else if (*pattern == '\\' && !(flags & FNM_NOESCAPE)) in rangematch()
272 pattern++; in rangematch()
273 pclen = mbrtowc(&c, pattern, MB_LEN_MAX, patmbs); in rangematch()
276 pattern += pclen; in rangematch()
281 if (*pattern == '-' && *(pattern + 1) != EOS && in rangematch()
282 *(pattern + 1) != ']') { in rangematch()
283 if (*++pattern == '\\' && !(flags & FNM_NOESCAPE)) in rangematch()
284 if (*pattern != EOS) in rangematch()
285 pattern++; in rangematch()
286 pclen = mbrtowc(&c2, pattern, MB_LEN_MAX, patmbs); in rangematch()
289 pattern += pclen; in rangematch()
306 *newp = (char *)pattern; in rangematch()