Home
last modified time | relevance | path

Searched refs:endp (Results 1 – 25 of 28) sorted by relevance

12

/vim-8.2.3635/src/
H A Dmark.c310 pos_T *startp, *endp; in getmark_buf_fnum() local
374 endp = &buf->b_visual.vi_end; in getmark_buf_fnum()
375 if (((c == '<') == LT_POS(*startp, *endp) || endp->lnum == 0) in getmark_buf_fnum()
379 posp = endp; in getmark_buf_fnum()
684 pos_T *posp, *startp, *endp; in ex_marks() local
715 endp = &curbuf->b_visual.vi_end; in ex_marks()
716 if ((LT_POS(*startp, *endp) || endp->lnum == 0) && startp->lnum != 0) in ex_marks()
719 posp = endp; in ex_marks()
721 show_one_mark('>', arg, posp == startp ? endp : startp, NULL, TRUE); in ex_marks()
H A Devalwindow.c339 char_u *endp; in get_winnr() local
342 count = strtol((char *)arg, (char **)&endp, 10); in get_winnr()
345 if (endp != NULL && *endp != '\0') in get_winnr()
347 if (STRCMP(endp, "j") == 0) in get_winnr()
349 else if (STRCMP(endp, "k") == 0) in get_winnr()
351 else if (STRCMP(endp, "h") == 0) in get_winnr()
353 else if (STRCMP(endp, "l") == 0) in get_winnr()
H A Dmisc2.c2042 char_u *p, *endp; in parse_shape_opt() local
2211 endp = vim_strchr(p, '-'); in parse_shape_opt()
2214 if (endp == NULL) in parse_shape_opt()
2215 endp = p + STRLEN(p); // find end of part in parse_shape_opt()
2217 else if (endp > commap || endp == NULL) in parse_shape_opt()
2218 endp = commap; in parse_shape_opt()
2220 if (slashp != NULL && slashp < endp) in parse_shape_opt()
2229 (int)(endp - p)); in parse_shape_opt()
2231 if (slashp != NULL && slashp < endp) in parse_shape_opt()
2234 p = endp; in parse_shape_opt()
H A Dfilepath.c109 char_u *endp, *save_endp; in shortpath_for_invalid_fname() local
122 save_endp = endp; in shortpath_for_invalid_fname()
132 while (endp > save_fname && !after_pathsep(save_fname, endp + 1)) in shortpath_for_invalid_fname()
133 --endp; in shortpath_for_invalid_fname()
134 if (endp <= save_fname) in shortpath_for_invalid_fname()
141 ch = *endp; in shortpath_for_invalid_fname()
142 *endp = 0; in shortpath_for_invalid_fname()
150 *endp = ch; // preserve the string in shortpath_for_invalid_fname()
156 --endp; in shortpath_for_invalid_fname()
167 sfx_len = (int)(save_endp - endp) + 1; in shortpath_for_invalid_fname()
[all …]
H A Dregexp.c1850 if (s == NULL || rsm.sm_match->endp[i] == NULL) in fill_submatch_list()
1853 s = vim_strnsave(s, rsm.sm_match->endp[i] - s); in fill_submatch_list()
2259 if (rex.reg_match->endp[no] == NULL) in vim_regsub_both()
2262 len = (int)(rex.reg_match->endp[no] - s); in vim_regsub_both()
2469 if (s == NULL || rsm.sm_match->endp[no] == NULL) in reg_submatch()
2472 retval = vim_strnsave(s, rsm.sm_match->endp[no] - s); in reg_submatch()
2538 if (s == NULL || rsm.sm_match->endp[no] == NULL) in reg_submatch_list()
2544 (int)(rsm.sm_match->endp[no] - s)) == FAIL) in reg_submatch_list()
H A Dsign.c976 char_u *endp; in sign_define_init_text() local
980 endp = text + (int)STRLEN(text); in sign_define_init_text()
983 for (s = text; s + 1 < endp; ++s) in sign_define_init_text()
987 --endp; in sign_define_init_text()
994 for (s = text; s < endp; s += (*mb_ptr2len)(s)) in sign_define_init_text()
1003 for (s = text; s < endp; ++s) in sign_define_init_text()
1010 if (s != endp || cells < 1 || cells > 2) in sign_define_init_text()
1019 len = (int)(endp - text + ((cells == 1) ? 1 : 0)); in sign_define_init_text()
H A Dfileio.c42 static linenr_T readfile_linenr(linenr_T linecnt, char_u *p, char_u *endp);
2688 char_u *endp) // end of more bytes read in readfile_linenr() argument
2694 for (s = p; s < endp; ++s) in readfile_linenr()
5435 char_u *endp; in file_pat_to_reg_pat() local
5486 endp = pat_end - 1; in file_pat_to_reg_pat()
5487 if (endp >= pat && *endp == '*') in file_pat_to_reg_pat()
5489 while (endp - pat > 0 && *endp == '*') in file_pat_to_reg_pat()
5490 endp--; in file_pat_to_reg_pat()
5493 for (p = pat; *p && nested >= 0 && p <= endp; p++) in file_pat_to_reg_pat()
H A Dregexp.h135 char_u *endp[NSUBEXP]; member
H A Dchange.c1837 char_u *endp = p; in open_line() local
1845 l = lead_repl_len - (int)(endp - p); in open_line()
1847 mch_memmove(endp + l, endp, in open_line()
1848 (size_t)((leader + lead_len) - endp)); in open_line()
H A Dregexp_nfa.c1367 char_u *endp; in nfa_regatom() local
1811 endp = skip_anyof(p); in nfa_regatom()
1812 if (*endp == ']') in nfa_regatom()
1819 result = nfa_recognize_char_class(regparse, endp, in nfa_regatom()
1831 regparse = endp; in nfa_regatom()
1858 while (regparse < endp) in nfa_regatom()
1980 && regparse + 1 <= endp in nfa_regatom()
2112 regparse = endp; in nfa_regatom()
7363 rex.reg_endp = rex.reg_match->endp; in nfa_regexec_both()
7462 if (rex.reg_match->endp[0] < rex.reg_match->startp[0]) in nfa_regexec_both()
[all …]
H A Dquickfix.c925 if (rmp->startp[midx] == NULL || rmp->endp[midx] == NULL) in qf_parse_fmt_f()
929 c = *rmp->endp[midx]; in qf_parse_fmt_f()
930 *rmp->endp[midx] = NUL; in qf_parse_fmt_f()
932 *rmp->endp[midx] = c; in qf_parse_fmt_f()
1028 if (rmp->startp[midx] == NULL || rmp->endp[midx] == NULL) in qf_parse_fmt_m()
1030 len = (int)(rmp->endp[midx] - rmp->startp[midx]); in qf_parse_fmt_m()
1065 if (rmp->startp[midx] == NULL || rmp->endp[midx] == NULL) in qf_parse_fmt_p()
1106 if (rmp->startp[midx] == NULL || rmp->endp[midx] == NULL) in qf_parse_fmt_s()
1108 len = (int)(rmp->endp[midx] - rmp->startp[midx]); in qf_parse_fmt_s()
1130 len = (int)(rmp->endp[midx] - rmp->startp[midx]); in qf_parse_fmt_o()
[all …]
H A Dspell.c330 *capcol = (int)(regmatch.endp[0] - ptr); in spell_check()
1277 char_u *endp; in spell_move_to() local
1350 endp = buf + len; in spell_move_to()
1351 while (p < endp) in spell_move_to()
1483 skip = (int)(p - endp); in spell_move_to()
2853 && regmatch.endp[0] == line + endcol) in check_need_cap()
H A Deval.c1286 char_u *endp, in set_var_lval() argument
1298 cc = *endp; in set_var_lval()
1299 *endp = NUL; in set_var_lval()
1339 *endp = cc; in set_var_lval()
1365 *endp = cc; in set_var_lval()
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()
H A Dsearch.c3436 (int)(incl_regmatch.endp[0] - incl_regmatch.startp[0]), in find_pattern_in_path()
3440 new_fname = file_name_in_line(incl_regmatch.endp[0], 0, in find_pattern_in_path()
3519 i = (int)(incl_regmatch.endp[0] in find_pattern_in_path()
3525 for (p = incl_regmatch.endp[0]; in find_pattern_in_path()
3535 p = incl_regmatch.endp[0]; in find_pattern_in_path()
3644 p = def_regmatch.endp[0]; in find_pattern_in_path()
H A Dpopupwin.c44 char_u *endp; in popup_options_one() local
59 endp = s; in popup_options_one()
61 n = strtol((char *)s, (char **)&endp, 10); in popup_options_one()
62 if (endp != NULL && *skipwhite(endp) != NUL) in popup_options_one()
H A Devalfunc.c7022 regmatch.endp[0] - regmatch.startp[0]); in find_some_match()
7026 (varnumber_T)(regmatch.endp[0] - expr); in find_some_match()
7037 if (regmatch.endp[i] == NULL) 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()
7068 (varnumber_T)(regmatch.endp[0] - str); in find_some_match()
9478 && *str != NUL && match && end < regmatch.endp[0])) in f_split()
9487 if (regmatch.endp[0] > str) in f_split()
9491 col = (*mb_ptr2len)(regmatch.endp[0]); in f_split()
9492 str = regmatch.endp[0]; in f_split()
H A Dnetbeans.c867 nb_unquote(char_u *p, char_u **endp) in nb_unquote() argument
917 if (endp != NULL) in nb_unquote()
918 *endp = p; in nb_unquote()
H A Dindent.c844 pos.col = (colnr_T)(*regmatch.endp - ml_get(lnum)); in get_number_indent()
973 bri = (*regmatch.endp - *regmatch.startp); in get_breakindent_win()
H A Ddiff.c2390 int *endp) // last char of the change in diff_find_change() argument
2505 if (*endp < ei_org) in diff_find_change()
2506 *endp = ei_org; in diff_find_change()
H A Dregexp_bt.c4856 rex.reg_endp = rex.reg_match->endp; in bt_regexec_both()
5033 if (rex.reg_match->endp[0] < rex.reg_match->startp[0]) in bt_regexec_both()
5034 rex.reg_match->endp[0] = rex.reg_match->startp[0]; in bt_regexec_both()
H A Dex_cmds.c521 end_col = (colnr_T)(regmatch.endp[0] - s); in ex_sort()
524 start_col = (colnr_T)(regmatch.endp[0] - s); in ex_sort()
/vim-8.2.3635/src/proto/
H A Ddiff.pro23 int diff_find_change(win_T *wp, linenr_T lnum, int *startp, int *endp);
H A Deval.pro28 void set_var_lval(lval_T *lp, char_u *endp, typval_T *rettv, int copy, int flags, char_u *op, int v…
/vim-8.2.3635/runtime/syntax/
H A Dopl.vim21 syn keyword OPLStatement proc endp abs acos addr adjustalloc alert alloc app
H A Dsicad.vim29 syn keyword sicadStatement endp

12