Home
last modified time | relevance | path

Searched refs:regmatch (Results 1 – 25 of 35) sorted by relevance

12

/vim-8.2.3635/src/
H A Dsearch.c187 regmatch->rmm_maxcol = 0; in search_regcomp()
189 if (regmatch->regprog == NULL) in search_regcomp()
576 regmatch->regprog = NULL; in last_pat_prog()
622 regmmatch_T regmatch; in searchit() local
756 if (regmatch.regprog == NULL) in searchit()
2889 regmmatch_T regmatch; in is_zero_width() local
2936 && regmatch.startpos[0].lnum == regmatch.endpos[0].lnum in is_zero_width()
2937 && regmatch.startpos[0].col == regmatch.endpos[0].col); in is_zero_width()
3356 regmatch_T regmatch; in find_pattern_in_path() local
3370 regmatch.regprog = NULL; in find_pattern_in_path()
[all …]
H A Dex_cmds.c375 regmatch_T regmatch; in ex_sort() local
402 regmatch.regprog = NULL; 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(&regmatch, s, 0)) in ex_sort()
527 if (regmatch.regprog != NULL) in ex_sort()
593 if (regmatch.regprog != NULL) in ex_sort()
3680 regmmatch_T regmatch; in ex_substitute() local
3975 regmatch.rmm_ic = TRUE; in ex_substitute()
3977 regmatch.rmm_ic = FALSE; in ex_substitute()
[all …]
H A Dsyntax.c896 regmmatch_T regmatch; in syn_match_linecont() local
1781 regmmatch_T regmatch; in syn_current_attr() local
1990 r = syn_regexec(&regmatch, in syn_current_attr()
2802 regmmatch_T regmatch; in find_endpos() local
2876 regmatch.rmm_ic = spp->sp_ic; in find_endpos()
3066 col = regmatch->startpos[0].col; in syn_add_end_off()
3072 col = regmatch->endpos[0].col; in syn_add_end_off()
3118 col = regmatch->endpos[0].col; in syn_add_start_off()
3124 col = regmatch->startpos[0].col; in syn_add_start_off()
5927 regmatch_T regmatch; in get_id_list() local
[all …]
H A Dindent.c823 regmatch_T regmatch; in get_number_indent() local
835 if (regmatch.regprog != NULL) in get_number_indent()
837 regmatch.rm_ic = FALSE; in get_number_indent()
847 vim_regfree(regmatch.regprog); in get_number_indent()
961 regmatch_T regmatch; in get_breakindent_win() local
963 regmatch.regprog = vim_regcomp(curbuf->b_p_flp, in get_breakindent_win()
965 if (regmatch.regprog != NULL) in get_breakindent_win()
967 regmatch.rm_ic = FALSE; in get_breakindent_win()
968 if (vim_regexec(&regmatch, line, 0)) in get_breakindent_win()
973 bri = (*regmatch.endp - *regmatch.startp); in get_breakindent_win()
[all …]
H A Dcmdhist.c453 regmatch_T regmatch; in del_history_entry() local
460 regmatch.regprog = NULL; in del_history_entry()
461 regmatch.rm_ic = FALSE; // always match case in del_history_entry()
467 && (regmatch.regprog = vim_regcomp(str, RE_MAGIC + RE_STRING)) in del_history_entry()
476 if (vim_regexec(&regmatch, hisptr->hisstr, (colnr_T)0)) in del_history_entry()
498 vim_regfree(regmatch.regprog); in del_history_entry()
H A Dtag.c1282 pats->regmatch.regprog = vim_regcomp(pats->pat, in prepare_pats()
1285 pats->regmatch.regprog = NULL; in prepare_pats()
1683 orgpat.regmatch.regprog = NULL; in find_tags()
1794 orgpat.regmatch.rm_ic = ((p_ic || !noic) in find_tags()
1800 orgpat.regmatch.rm_ic = (p_ic || !noic); in find_tags()
2186 orgpat.regmatch.rm_ic = (p_ic || !noic); in find_tags()
2423 if (orgpat.regmatch.rm_ic) in find_tags()
2448 if (orgpat.regmatch.rm_ic) in find_tags()
2450 orgpat.regmatch.rm_ic = FALSE; in find_tags()
2453 orgpat.regmatch.rm_ic = TRUE; in find_tags()
[all …]
H A Dcmdexpand.c1933 regmatch_T regmatch; in ExpandFromContext() local
2088 if (regmatch.regprog == NULL) in ExpandFromContext()
2092 regmatch.rm_ic = ignorecase(pat); in ExpandFromContext()
2096 ret = ExpandSettings(xp, &regmatch, num_file, file); in ExpandFromContext()
2098 ret = ExpandMappings(&regmatch, num_file, file); in ExpandFromContext()
2169 regmatch.rm_ic = TRUE; in ExpandFromContext()
2170 ret = ExpandGeneric(xp, &regmatch, num_file, file, in ExpandFromContext()
2176 vim_regfree(regmatch.regprog); in ExpandFromContext()
2194 regmatch_T *regmatch, in ExpandGeneric() argument
2219 if (vim_regexec(regmatch, str, (colnr_T)0)) in ExpandGeneric()
[all …]
H A Dquickfix.c1168 regmatch_T *regmatch, in qf_parse_match() argument
1230 regmatch_T regmatch; in qf_parse_get_fields() local
1253 regmatch.rm_ic = TRUE; in qf_parse_get_fields()
5807 regmatch->regprog = NULL; in vgr_init_regmatch()
5822 regmatch->rmm_ic = p_ic; in vgr_init_regmatch()
5823 regmatch->rmm_maxcol = 0; in vgr_init_regmatch()
5931 regmmatch_T *regmatch, in vgr_match_buflines() argument
5980 col = regmatch->endpos[0].col in vgr_match_buflines()
8189 regmatch_T regmatch; in ex_helpgrep() local
8230 regmatch.rm_ic = FALSE; in ex_helpgrep()
[all …]
H A Dfilepath.c3346 regmatch_T regmatch; in dos_expandpath() local
3436 regmatch.rm_ic = TRUE; // Always ignore case in dos_expandpath()
3437 regmatch.regprog = vim_regcomp(pat, RE_MAGIC); in dos_expandpath()
3490 || (regmatch.regprog != NULL in dos_expandpath()
3491 && (vim_regexec(&regmatch, p, (colnr_T)0) in dos_expandpath()
3538 vim_regfree(regmatch.regprog); in dos_expandpath()
3591 regmatch_T regmatch; in unix_expandpath() local
3680 regmatch.rm_ic = TRUE; // 'wildignorecase' set in unix_expandpath()
3685 regmatch.regprog = vim_regcomp(pat, RE_MAGIC); in unix_expandpath()
3723 && ((regmatch.regprog != NULL && vim_regexec(&regmatch, in unix_expandpath()
[all …]
H A Dinsexpand.c1187 regmatch_T regmatch; in ins_compl_dictionaries() local
1233 regmatch.regprog = vim_regcomp(ptr, RE_MAGIC); in ins_compl_dictionaries()
1240 if (regmatch.regprog == NULL) in ins_compl_dictionaries()
1245 regmatch.rm_ic = ignorecase(pat); in ins_compl_dictionaries()
1280 spell_dump_compl(ptr, regmatch.rm_ic, &dir, 0); in ins_compl_dictionaries()
1287 &regmatch, buf, &dir); in ins_compl_dictionaries()
1297 vim_regfree(regmatch.regprog); in ins_compl_dictionaries()
1307 regmatch_T *regmatch, in ins_compl_files() argument
1337 ptr = regmatch->startp[0]; in ins_compl_files()
1343 (int)(ptr - regmatch->startp[0]), in ins_compl_files()
[all …]
H A Darglist.c426 regmatch_T regmatch; in do_arglist() local
431 regmatch.rm_ic = p_fic; // ignore case when 'fileignorecase' is set in do_arglist()
438 regmatch.regprog = vim_regcomp(p, magic_isset() ? RE_MAGIC : 0); in do_arglist()
439 if (regmatch.regprog == NULL) in do_arglist()
447 if (vim_regexec(&regmatch, alist_name(&ARGLIST[match]), in do_arglist()
460 vim_regfree(regmatch.regprog); in do_arglist()
H A Deval.c1954 regmatch_T regmatch; in pattern_match() local
1960 if (regmatch.regprog != NULL) in pattern_match()
1962 regmatch.rm_ic = ic; in pattern_match()
1964 vim_regfree(regmatch.regprog); in pattern_match()
6353 regmatch_T regmatch; in do_string_sub() local
6371 regmatch.rm_ic = p_ic; in do_string_sub()
6373 if (regmatch.regprog != NULL) in do_string_sub()
6380 if (regmatch.startp[0] == regmatch.endp[0]) in do_string_sub()
6404 (regmatch.endp[0] - regmatch.startp[0]))) == FAIL) in do_string_sub()
6417 tail = regmatch.endp[0]; in do_string_sub()
[all …]
H A Devalfunc.c6857 regmatch_T regmatch; in find_some_match() local
6968 regmatch.rm_ic = p_ic; in find_some_match()
7022 regmatch.endp[0] - regmatch.startp[0]); in find_some_match()
7044 regmatch.startp[i], in find_some_match()
7045 (int)(regmatch.endp[i] - regmatch.startp[i])) in find_some_match()
7057 regmatch.endp[0] - regmatch.startp[0]); in find_some_match()
7072 vim_regfree(regmatch.regprog); in find_some_match()
9427 regmatch_T regmatch; in f_split() local
9466 regmatch.rm_ic = FALSE; in f_split()
9474 end = regmatch.startp[0]; in f_split()
[all …]
H A Dspell.c321 regmatch_T regmatch; in spell_check() local
325 regmatch.regprog = wp->w_s->b_cap_prog; in spell_check()
326 regmatch.rm_ic = FALSE; in spell_check()
327 r = vim_regexec(&regmatch, ptr, 0); in spell_check()
328 wp->w_s->b_cap_prog = regmatch.regprog; in spell_check()
330 *capcol = (int)(regmatch.endp[0] - ptr); in spell_check()
2811 regmatch_T regmatch; in check_need_cap() local
2844 regmatch.regprog = curwin->w_s->b_cap_prog; in check_need_cap()
2845 regmatch.rm_ic = FALSE; in check_need_cap()
2852 if (vim_regexec(&regmatch, p, 0) in check_need_cap()
[all …]
H A Dfindfile.c2429 regmatch_T regmatch; in uniquefy_paths() local
2454 regmatch.rm_ic = TRUE; // always ignore case in uniquefy_paths()
2455 regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING); in uniquefy_paths()
2457 if (regmatch.regprog == NULL) in uniquefy_paths()
2492 && vim_regexec(&regmatch, path_cutoff, (colnr_T)0) in uniquefy_paths()
2505 if (vim_regexec(&regmatch, pathsep_p + 1, (colnr_T)0) in uniquefy_paths()
2590 vim_regfree(regmatch.regprog); in uniquefy_paths()
H A Dex_eval.c1685 regmatch_T regmatch; in ex_catch() local
1784 regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING); in ex_catch()
1786 regmatch.rm_ic = FALSE; in ex_catch()
1790 if (regmatch.regprog == NULL) in ex_catch()
1801 caught = vim_regexec_nl(&regmatch, in ex_catch()
1804 vim_regfree(regmatch.regprog); in ex_catch()
H A Dfileio.c5352 regmatch_T regmatch; in match_file_pat() local
5355 regmatch.rm_ic = p_fic; // ignore case if 'fileignorecase' is set in match_file_pat()
5357 regmatch.regprog = *prog; in match_file_pat()
5359 regmatch.regprog = vim_regcomp(pattern, RE_MAGIC); in match_file_pat()
5367 if (regmatch.regprog != NULL in match_file_pat()
5369 && (vim_regexec(&regmatch, fname, (colnr_T)0) in match_file_pat()
5371 && vim_regexec(&regmatch, sfname, (colnr_T)0)))) in match_file_pat()
5372 || (!allow_dirs && vim_regexec(&regmatch, tail, (colnr_T)0)))) in match_file_pat()
5376 *prog = regmatch.regprog; in match_file_pat()
5378 vim_regfree(regmatch.regprog); in match_file_pat()
H A Dbuffer.c2616 regmatch_T regmatch; in buflist_findpat() local
2624 regmatch.regprog = vim_regcomp(p, magic_isset() ? RE_MAGIC : 0); in buflist_findpat()
2625 if (regmatch.regprog == NULL) in buflist_findpat()
2636 && buflist_match(&regmatch, buf, FALSE) != NULL) in buflist_findpat()
2658 vim_regfree(regmatch.regprog); in buflist_findpat()
2733 regmatch_T regmatch; in ExpandBufnames() local
2737 regmatch.regprog = vim_regcomp(patc + attempt * 11, RE_MAGIC); in ExpandBufnames()
2738 if (regmatch.regprog == NULL) in ExpandBufnames()
2762 p = buflist_match(&regmatch, buf, p_wic); in ExpandBufnames()
2793 vim_regfree(regmatch.regprog); in ExpandBufnames()
[all …]
H A Dgui.c5342 regmatch_T regmatch; in gui_do_findrepl() local
5393 regmatch.regprog = vim_regcomp(ga.ga_data, RE_MAGIC + RE_STRING); in gui_do_findrepl()
5394 regmatch.rm_ic = 0; in gui_do_findrepl()
5395 if (regmatch.regprog != NULL) in gui_do_findrepl()
5398 if (vim_regexec_nl(&regmatch, p, (colnr_T)0) in gui_do_findrepl()
5399 && regmatch.startp[0] == p) in gui_do_findrepl()
5410 del_bytes((long)(regmatch.endp[0] - regmatch.startp[0]), in gui_do_findrepl()
5417 vim_regfree(regmatch.regprog); in gui_do_findrepl()
H A Dregexp.c2849 regmatch_T regmatch; in vim_regexec_prog() local
2851 regmatch.regprog = *prog; in vim_regexec_prog()
2852 regmatch.rm_ic = ignore_case; in vim_regexec_prog()
2853 r = vim_regexec_string(&regmatch, line, col, FALSE); in vim_regexec_prog()
2854 *prog = regmatch.regprog; in vim_regexec_prog()
H A Doption.c6419 regmatch_T *regmatch, in ExpandSettings() argument
6433 int ic = regmatch->rm_ic; // remember the ignore-case flag in ExpandSettings()
6440 regmatch->rm_ic = ic; in ExpandSettings()
6444 if (vim_regexec(regmatch, (char_u *)names[match], (colnr_T)0)) in ExpandSettings()
6464 if (vim_regexec(regmatch, str, (colnr_T)0) in ExpandSettings()
6466 && vim_regexec(regmatch, in ExpandSettings()
6478 if (vim_regexec(regmatch, name_buf, (colnr_T)0)) in ExpandSettings()
6514 if (vim_regexec(regmatch, name_buf, (colnr_T)0)) in ExpandSettings()
6526 if (vim_regexec(regmatch, name_buf, (colnr_T)0)) in ExpandSettings()
6541 regmatch->rm_ic = TRUE; // ignore case here in ExpandSettings()
[all …]
/vim-8.2.3635/src/proto/
H A Dsearch.pro2 int search_regcomp(char_u *pat, int pat_save, int pat_use, int options, regmmatch_T *regmatch);
24 void last_pat_prog(regmmatch_T *regmatch);
H A Dmap.pro11 int ExpandMappings(regmatch_T *regmatch, int *num_file, char_u ***file);
H A Doption.pro64 int ExpandSettings(expand_T *xp, regmatch_T *regmatch, int *num_file, char_u ***file);
H A Duserfunc.pro36 void list_functions(regmatch_T *regmatch);

12