Lines Matching full:pattern
10 pattern `131.155.72.0/255.255.254.0\' matches every address in the
47 +/* Returns true if the given string matches the pattern (which may contain
50 +int match_pattern_ylo(const char *s, const char *pattern)
54 + /* If at end of pattern, accept if also at end of string. */
55 + if (!*pattern)
59 + if (*pattern == '*')
62 + pattern++;
64 + /* If at end of pattern, accept immediately. */
65 + if (!*pattern)
68 + /* If next character in pattern is known, optimize. */
69 + if (*pattern != '?' && *pattern != '*')
71 + /* Look instances of the next character in pattern, and try
74 + if (*s == *pattern &&
75 + match_pattern_ylo(s + 1, pattern + 1))
84 + if (match_pattern_ylo(s, pattern))
96 + if (*pattern != '?' && *pattern != *s)
99 + /* Move to the next character, both in string and in pattern. */
101 + pattern++;