Lines Matching refs:match
81 regmatch_t *match;
389 if (lastempty || match[0].rm_so != match[0].rm_eo) {
391 re_off = match[0].rm_so;
398 /* Move past this match. */
399 if (match[0].rm_so != match[0].rm_eo) {
400 s += match[0].rm_eo;
401 slen -= match[0].rm_eo;
404 if (match[0].rm_so < slen)
405 cspace(&SS, s + match[0].rm_so, 1,
407 s += match[0].rm_so + 1;
408 slen -= match[0].rm_so + 1;
418 if (match[0].rm_eo == match[0].rm_so)
419 match[0].rm_eo = match[0].rm_so + 1;
420 s += match[0].rm_eo;
421 slen -= match[0].rm_eo;
430 re_off = match[0].rm_so + ((uintptr_t)s - (uintptr_t)ps);
436 s += match[0].rm_eo;
437 slen -= match[0].rm_eo;
656 match[0].rm_so = 0;
657 match[0].rm_eo = slen;
660 nomatch ? 0 : maxnsub + 1, match, eflags | REG_STARTEND);
672 * regsub - perform substitutions after a regexp match
705 } else if (match[no].rm_so != -1 && match[no].rm_eo != -1) {
706 len = match[no].rm_eo - match[no].rm_so;
708 (void) memmove(dst, string + match[no].rm_so, len);