Lines Matching refs:match
160 regmatch_t match[1];
178 * column, so that we search a minimal distance and still match
238 match[0].rm_so = coff;
239 match[0].rm_eo = len;
246 eval = regexec(&sp->re_c, l, 1, match,
247 (match[0].rm_so == 0 ? 0 : REG_NOTBOL) | REG_STARTEND);
264 match[0].rm_so, match[0].rm_eo);
267 rm->cno = match[0].rm_so;
306 regmatch_t match[1];
317 * match special patterns, e.g., \> for the end of a word. This is
319 * it for comparison with the location of the match.
378 match[0].rm_so = 0;
379 match[0].rm_eo = len;
382 TRACE(sp, "B search: %lu from 0 to %qu\n", lno, match[0].rm_eo);
385 eval = regexec(&sp->re_c, l, 1, match,
386 (match[0].rm_eo == len ? 0 : REG_NOTEOL) | REG_STARTEND);
397 /* Check for a match starting past the cursor. */
398 if (coff != 0 && match[0].rm_so >= coff)
407 match[0].rm_so, match[0].rm_eo);
410 * We now have the first match on the line. Step through the
412 * match. This is painful, we need a better interface to regex
416 last = match[0].rm_so++;
417 if (match[0].rm_so >= len)
419 match[0].rm_eo = len;
420 eval = regexec(&sp->re_c, l, 1, match,
421 (match[0].rm_so == 0 ? 0 : REG_NOTBOL) |
432 if (coff && match[0].rm_so >= coff)