Lines Matching refs:flags
58 PHPAPI int fnmatch(const char *pattern, const char *string, int flags) in fnmatch() argument
66 if ((flags & FNM_LEADING_DIR) && *string == '/') in fnmatch()
72 if (*string == '/' && (flags & FNM_PATHNAME)) in fnmatch()
74 if (*string == '.' && (flags & FNM_PERIOD) && in fnmatch()
76 ((flags & FNM_PATHNAME) && *(string - 1) == '/'))) in fnmatch()
86 if (*string == '.' && (flags & FNM_PERIOD) && in fnmatch()
88 ((flags & FNM_PATHNAME) && *(string - 1) == '/'))) in fnmatch()
93 if (flags & FNM_PATHNAME) in fnmatch()
94 return ((flags & FNM_LEADING_DIR) || in fnmatch()
99 else if (c == '/' && flags & FNM_PATHNAME) { in fnmatch()
107 if (!fnmatch(pattern, string, flags & ~FNM_PERIOD)) in fnmatch()
109 if (test == '/' && flags & FNM_PATHNAME) in fnmatch()
117 if (*string == '/' && flags & FNM_PATHNAME) in fnmatch()
120 rangematch(pattern, *string, flags)) == NULL) in fnmatch()
125 if (!(flags & FNM_NOESCAPE)) { in fnmatch()
135 else if ((flags & FNM_CASEFOLD) && in fnmatch()
139 else if ((flags & FNM_PREFIX_DIRS) && *string == EOS && in fnmatch()
152 rangematch(const char *pattern, char test, int flags) in rangematch() argument
167 if (flags & FNM_CASEFOLD) in rangematch()
171 if (c == '\\' && !(flags & FNM_NOESCAPE)) in rangematch()
176 if (flags & FNM_CASEFOLD) in rangematch()
182 if (c2 == '\\' && !(flags & FNM_NOESCAPE)) in rangematch()
187 if (flags & FNM_CASEFOLD) in rangematch()