Lines Matching +defs:match +defs:end

56 pm_list(const char *start, const char *end, const char c, int flags)
60 int match = 1, nomatch = 0;
66 if ((*p == '!' || *p == '^') && p < end) {
67 match = 0;
72 while (p < end) {
77 if ((rangeStart == '\0') || (p == end - 1)) {
79 return (match);
85 return (match);
93 return (match);
103 pm_list_w(const wchar_t *start, const wchar_t *end, const wchar_t c, int flags)
107 int match = 1, nomatch = 0;
113 if ((*p == L'!' || *p == L'^') && p < end) {
114 match = 0;
119 while (p < end) {
124 if ((rangeStart == L'\0') || (p == end - 1)) {
126 return (match);
132 return (match);
140 return (match);
173 const char *end;
194 /* ? always succeeds, unless we hit end of 's' */
213 * Find the end of the [...] character class,
216 end = p + 1;
217 while (*end != '\0' && *end != ']') {
218 if (*end == '\\' && end[1] != '\0')
219 ++end;
220 ++end;
222 if (*end == ']') {
223 /* We found [...], try to match it. */
224 if (!pm_list(p + 1, end, *s, flags))
226 p = end; /* Jump to trailing ']' char. */
229 /* No final ']', so just match '['. */
247 /* Note: pattern "/\./" won't match "/";
257 /* '$' is special only at end of pattern and only
278 const wchar_t *end;
299 /* ? always succeeds, unless we hit end of 's' */
318 * Find the end of the [...] character class,
321 end = p + 1;
322 while (*end != L'\0' && *end != L']') {
323 if (*end == L'\\' && end[1] != L'\0')
324 ++end;
325 ++end;
327 if (*end == L']') {
328 /* We found [...], try to match it. */
329 if (!pm_list_w(p + 1, end, *s, flags))
331 p = end; /* Jump to trailing ']' char. */
334 /* No final ']', so just match '['. */
352 /* Note: pattern "/\./" won't match "/";
362 /* '$' is special only at end of pattern and only
408 /* If start is unanchored, try to match start of each path element. */
450 /* If start is unanchored, try to match start of each path element. */