Lines Matching refs:regmatch
375 regmatch_T regmatch; in ex_sort() local
402 regmatch.regprog = NULL; in ex_sort()
458 else if (!ASCII_ISALPHA(*p) && regmatch.regprog == NULL) in ex_sort()
472 regmatch.regprog = vim_regcomp(last_search_pat(), RE_MAGIC); in ex_sort()
475 regmatch.regprog = vim_regcomp(p + 1, RE_MAGIC); in ex_sort()
476 if (regmatch.regprog == NULL) in ex_sort()
479 regmatch.rm_ic = p_ic; in ex_sort()
516 if (regmatch.regprog != NULL && vim_regexec(®match, s, 0)) in ex_sort()
520 start_col = (colnr_T)(regmatch.startp[0] - s); in ex_sort()
521 end_col = (colnr_T)(regmatch.endp[0] - s); in ex_sort()
524 start_col = (colnr_T)(regmatch.endp[0] - s); in ex_sort()
527 if (regmatch.regprog != NULL) in ex_sort()
593 if (regmatch.regprog != NULL) in ex_sort()
665 vim_regfree(regmatch.regprog); in ex_sort()
3680 regmmatch_T regmatch; in ex_substitute() local
3966 if (search_regcomp(pat, RE_SUBST, which_pat, SEARCH_HIS, ®match) == FAIL) in ex_substitute()
3975 regmatch.rmm_ic = TRUE; in ex_substitute()
3977 regmatch.rmm_ic = FALSE; in ex_substitute()
3999 nmatch = vim_regexec_multi(®match, curwin, curbuf, lnum, in ex_substitute()
4090 if (regmatch.startpos[0].lnum > 0) in ex_substitute()
4092 lnum += regmatch.startpos[0].lnum; in ex_substitute()
4093 sub_firstlnum += regmatch.startpos[0].lnum; in ex_substitute()
4094 nmatch -= regmatch.startpos[0].lnum; in ex_substitute()
4124 && regmatch.endpos[0].lnum == 0 in ex_substitute()
4125 && matchcol == regmatch.endpos[0].col) in ex_substitute()
4144 matchcol = regmatch.endpos[0].col; in ex_substitute()
4182 curwin->w_cursor.col = regmatch.startpos[0].col; in ex_substitute()
4205 curwin->w_cursor.col = regmatch.endpos[0].col - 1; in ex_substitute()
4209 curwin->w_cursor.col = regmatch.startpos[0].col; in ex_substitute()
4277 search_match_lines = regmatch.endpos[0].lnum in ex_substitute()
4278 - regmatch.startpos[0].lnum; in ex_substitute()
4279 search_match_endcol = regmatch.endpos[0].col in ex_substitute()
4385 curwin->w_cursor.col = regmatch.startpos[0].col; in ex_substitute()
4403 sublen = vim_regsub_multi(®match, in ex_substitute()
4404 sub_firstlnum - regmatch.startpos[0].lnum, in ex_substitute()
4441 int bytes_added = sublen - 1 - (regmatch.endpos[0].col in ex_substitute()
4442 - regmatch.startpos[0].col); in ex_substitute()
4447 total_added + regmatch.startpos[0].col, in ex_substitute()
4461 copy_len = regmatch.startpos[0].col - copycol; in ex_substitute()
4463 - regmatch.endpos[0].col) + sublen + 1; in ex_substitute()
4507 (void)vim_regsub_multi(®match, in ex_substitute()
4508 sub_firstlnum - regmatch.startpos[0].lnum, in ex_substitute()
4532 copycol = regmatch.endpos[0].col; in ex_substitute()
4621 && !re_multiline(regmatch.regprog))); in ex_substitute()
4635 || (nmatch = vim_regexec_multi(®match, curwin, in ex_substitute()
4638 || regmatch.startpos[0].lnum > 0) in ex_substitute()
4701 nmatch = vim_regexec_multi(®match, curwin, curbuf, in ex_substitute()
4713 lnum -= regmatch.startpos[0].lnum; in ex_substitute()
4791 vim_regfree(regmatch.regprog); in ex_substitute()
4890 regmmatch_T regmatch; in ex_global() local
4956 if (search_regcomp(pat, RE_BOTH, which_pat, SEARCH_HIS, ®match) == FAIL) in ex_global()
4965 match = vim_regexec_multi(®match, curwin, curbuf, lnum, in ex_global()
4978 match = vim_regexec_multi(®match, curwin, curbuf, lnum, in ex_global()
5014 vim_regfree(regmatch.regprog); in ex_global()