Lines Matching defs:pattern
716 * Terminate the string and start recording the pattern
1327 * Returns true if the pattern matches the string.
1331 patmatch(char *pattern, char *string, int squoted)
1334 if (pattern[0] == '!' && pattern[1] == '!')
1335 return 1 - pmatch(pattern + 2, string);
1338 return pmatch(pattern, string, squoted);
1343 pmatch(char *pattern, char *string, int squoted)
1348 p = pattern;
1491 * See if a pattern matches in a case statement.
1495 casematch(union node *pattern, char *val)
1502 argbackq = pattern->narg.backquote;
1505 argstr(pattern->narg.text, EXP_TILDE | EXP_CASE);