Lines Matching refs:caps
505 int *ofs, struct cap *caps) in match() argument
517 res = match(r, pc + 3, s, len, ofs, caps); in match()
521 s, len, ofs, caps); in match()
538 if (!match(r, pc + 2, s, len, ofs, caps)) in match()
553 res = match(r, pc + 2, s, len, ofs, caps); in match()
561 res = match(r, pc + 2, s, len, ofs, caps); in match()
624 if (caps != NULL) in match()
625 caps[r->code[pc + 1]].ptr = s + *ofs; in match()
629 if (caps != NULL) in match()
630 caps[r->code[pc + 1]].len = (s + *ofs) - in match()
631 caps[r->code[pc + 1]].ptr; in match()
649 struct cap *caps) in slre_match() argument
654 res = match(r, 0, buf, len, &ofs, caps); in slre_match()
658 res = match(r, 0, buf, len, &ofs, caps); in slre_match()
671 struct cap caps[N_CAPS]; in main() local
705 (void) memset(caps, 0, sizeof(caps)); in main()
707 res = slre_match(&slre, data, len, caps); in main()
711 if (caps[i].len > 0) { in main()
713 caps[i].len, in main()
714 caps[i].len, caps[i].ptr); in main()