Lines Matching +defs:match +defs:end
78 regmatch_t *match;
360 if (n <= 1 && (match[0].rm_so > le))
361 cspace(&SS, s, match[0].rm_so - le, APPEND);
364 if (lastempty || (match[0].rm_so - le) ||
365 match[0].rm_so != match[0].rm_eo) {
367 /* Want this match: append replacement. */
372 /* Want a later match: append original. */
373 if (match[0].rm_eo - le)
374 cspace(&SS, s, match[0].rm_eo - le,
380 /* Move past this match. */
381 s = ps + match[0].rm_eo;
382 slen = psl - match[0].rm_eo;
383 le = match[0].rm_eo;
386 * After a zero-length match, advance one byte,
387 * and at the end of the line, terminate.
389 if (match[0].rm_so == match[0].rm_eo) {
527 match[0].rm_so = start;
528 match[0].rm_eo = stop;
531 nomatch ? 0 : maxnsub + 1, match, eflags | REG_STARTEND);
542 * regsub - perform substitutions after a regexp match
573 } else if (match[no].rm_so != -1 && match[no].rm_eo != -1) {
574 len = match[no].rm_eo - match[no].rm_so;
576 memmove(dst, string + match[no].rm_so, len);
615 cfclose(struct s_command *cp, struct s_command *end)
618 for (; cp != end; cp = cp->next)