Lines Matching defs:pattern
444 #define VSTRIMRIGHT 0x6 /* ${var%pattern} */
445 #define VSTRIMRIGHTMAX 0x7 /* ${var%%pattern} */
446 #define VSTRIMLEFT 0x8 /* ${var#pattern} */
447 #define VSTRIMLEFTMAX 0x9 /* ${var##pattern} */
531 union node *pattern;
4273 cmdtxt(np->nclist.pattern);
4917 #define EXP_CASE 0x10 /* keeps quotes around for CASE pattern */
5059 * Prepare a pattern for a expmeta (internal glob(3)) call.
5064 preglob(const char *pattern, int quoted, int flag)
5070 return _rmescapes((char *)pattern, flag);
5913 * Terminate the string and start recording the pattern
6364 * Returns true if the pattern matches the string.
6367 patmatch(char *pattern, const char *string)
6369 return pmatch(preglob(pattern, 0, 0), string);
6373 * See if a pattern matches in a case statement.
6376 casematch(union node *pattern, char *val)
6382 argbackq = pattern->narg.backquote;
6385 argstr(pattern->narg.text, EXP_TILDE | EXP_CASE);
7121 calcsize(n->nclist.pattern);
7234 new->nclist.pattern = copynode(n->nclist.pattern);
7578 for (patp = cp->nclist.pattern; patp; patp = patp->narg.next) {
9770 app = &cp->nclist.pattern;