Lines Matching refs:flags
59 PHPAPI int fnmatch(const char *pattern, const char *string, int flags) in fnmatch() argument
67 if ((flags & FNM_LEADING_DIR) && *string == '/') in fnmatch()
73 if (*string == '/' && (flags & FNM_PATHNAME)) in fnmatch()
75 if (*string == '.' && (flags & FNM_PERIOD) && in fnmatch()
77 ((flags & FNM_PATHNAME) && *(string - 1) == '/'))) in fnmatch()
87 if (*string == '.' && (flags & FNM_PERIOD) && in fnmatch()
89 ((flags & FNM_PATHNAME) && *(string - 1) == '/'))) in fnmatch()
94 if (flags & FNM_PATHNAME) in fnmatch()
95 return ((flags & FNM_LEADING_DIR) || in fnmatch()
100 else if (c == '/' && flags & FNM_PATHNAME) { in fnmatch()
108 if (!fnmatch(pattern, string, flags & ~FNM_PERIOD)) in fnmatch()
110 if (test == '/' && flags & FNM_PATHNAME) in fnmatch()
118 if (*string == '/' && flags & FNM_PATHNAME) in fnmatch()
121 rangematch(pattern, *string, flags)) == NULL) in fnmatch()
126 if (!(flags & FNM_NOESCAPE)) { in fnmatch()
136 else if ((flags & FNM_CASEFOLD) && in fnmatch()
140 else if ((flags & FNM_PREFIX_DIRS) && *string == EOS && in fnmatch()
153 rangematch(const char *pattern, char test, int flags) in rangematch() argument
168 if (flags & FNM_CASEFOLD) in rangematch()
172 if (c == '\\' && !(flags & FNM_NOESCAPE)) in rangematch()
177 if (flags & FNM_CASEFOLD) in rangematch()
183 if (c2 == '\\' && !(flags & FNM_NOESCAPE)) in rangematch()
188 if (flags & FNM_CASEFOLD) in rangematch()