Lines Matching defs:match
29 * match shell file patterns -- derived from Bourne and Korn shell gmatch()
168 * match a single pattern
518 * match any pattern in a group
537 * subgroup match
538 * 0 returned if no match
540 * match group begin offsets are even elements of sub
541 * match group end offsets are odd elements of sub
552 Match_t match;
555 match.last_s = e = s + strlen(s);
558 match.best.next_s = 0;
559 match.current.groups = 0;
560 if ((i = grpmatch(&match, 0, s, (char*)p, e, flags)) || match.best.next_s)
563 match.current = match.best;
564 match.current.groups++;
565 match.current.end[0] = match.current.next_s;
572 if ((flags & STR_RIGHT) && match.current.next_s != e)
576 match.current.beg[0] = s;
578 if (n > match.current.groups)
579 n = match.current.groups;
582 sub[i * 2] = match.current.end[i] ? match.current.beg[i] - s : 0;
583 sub[i * 2 + 1] = match.current.end[i] ? match.current.end[i] - s : 0;
590 * returns 1 for match 0 otherwise