Home
last modified time | relevance | path

Searched refs:vim_strchr (Results 1 – 25 of 97) sorted by relevance

1234

/vim-8.2.3635/src/
H A Dmisc1.c80 string = vim_strchr(part_buf, ':'); in get_leader_len()
88 && vim_strchr(part_buf, COM_MIDDLE) == NULL in get_leader_len()
89 && vim_strchr(part_buf, COM_END) == NULL) in get_leader_len()
119 if (vim_strchr(part_buf, COM_BLANK) != NULL in get_leader_len()
173 if (vim_strchr(part_buf, COM_NEST) == NULL) in get_leader_len()
218 string = vim_strchr(part_buf, ':'); in get_last_leader_offset()
247 if (vim_strchr(part_buf, COM_BLANK) != NULL in get_last_leader_offset()
285 if (vim_strchr(part_buf, COM_NEST) != NULL) in get_last_leader_offset()
306 string = vim_strchr(part_buf2, ':'); in get_last_leader_offset()
1141 if (vim_strchr(p_debug, 'e') != NULL) in vim_beep()
[all …]
H A Dtextobject.c77 || vim_strchr((char_u *)".!?)]\"'", c) != NULL) in findsent()
85 if (vim_strchr((char_u *) ".!?", c) != NULL) in findsent()
88 if (vim_strchr((char_u *) ")]\"'", c) != NULL in findsent()
89 && vim_strchr((char_u *) ".!?)]\"'", gchar_pos(&tpos)) == NULL) in findsent()
97 cpo_J = vim_strchr(p_cpo, CPO_ENDOFSENT) != NULL; in findsent()
114 while (vim_strchr((char_u *)")]\"'", c = gchar_pos(&tpos)) in findsent()
177 int posix = (vim_strchr(p_cpo, CPO_PARA) != NULL); in findpar()
1081 p_cpo = (char_u *)(vim_strchr(p_cpo, CPO_MATCHBSL) != NULL ? "%M" : "%"); in current_block()
1666 else if (escape != NULL && vim_strchr(escape, c)) in find_next_quote()
1699 while (col_start - n > 0 && vim_strchr(escape, in find_prev_quote()
H A Doptionstr.c620 if (vim_strchr(STL_ALL, *s) == NULL) in check_stl_option()
976 else if (vim_strchr(*varp, ',') != NULL) in did_set_string_option()
1296 if (vim_strchr((char_u *)COM_ALL, *s) == NULL in did_set_string_option()
1375 if (vim_strchr((char_u *)"!\"%'/:<@cfhnrs", *s) == NULL) in did_set_string_option()
1694 km_stopsel = (vim_strchr(p_km, 'o') != NULL); in did_set_string_option()
1695 km_startsel = (vim_strchr(p_km, 'a') != NULL); in did_set_string_option()
1851 if (vim_strchr((char_u *)".wbuksid]tU", *s) == NULL) in did_set_string_option()
2050 p = vim_strchr(*varp, ','); in did_set_string_option()
2121 if (vim_strchr((char_u *)CSQF_CMDS, *p) == NULL in did_set_string_option()
2123 || vim_strchr((char_u *)CSQF_FLAGS, p[1]) == NULL in did_set_string_option()
[all …]
H A Dcmdexpand.c758 else if (vim_strchr((char_u *)"*?[", *s) != NULL) in expand_showtail()
885 && vim_strchr(tail, '$') == NULL in addstar()
886 && vim_strchr(retval, '`') == NULL) in addstar()
1185 && vim_strchr((char_u *)"|\"", *arg) == NULL) in set_one_cmd_context()
1544 while ((xp->xp_pattern = vim_strchr(arg, ' ')) != NULL) in set_one_cmd_context()
1589 while ((xp->xp_pattern = vim_strchr(arg, ' ')) != NULL) in set_one_cmd_context()
1777 while ((xp->xp_pattern = vim_strchr(arg, ' ')) != NULL) in set_one_cmd_context()
2350 e = vim_strchr(s, ';'); in expand_shellcmd()
2352 e = vim_strchr(s, ':'); in expand_shellcmd()
2503 e = vim_strchr(s, '\n'); in ExpandUserDefined()
[all …]
H A Dhelp.c422 || (vim_strchr((char_u *)"%_z@", arg[1]) != NULL in find_help_tags()
477 || vim_strchr((char_u *)"?@[\\]^", s[1]) != NULL))) in find_help_tags()
862 && (s = vim_strchr(IObuff + 1, '*')) in fix_help_buffer()
1071 p1 = vim_strchr(IObuff, '*'); // find first '*' in helptags_one()
1089 && (vim_strchr((char_u *)" \t\n\r", s[1]) != NULL in helptags_one()
1110 p2 = vim_strchr(p2 + 1, '*'); in helptags_one()
H A Dmap.c441 do_backslash = (vim_strchr(p_cpo, CPO_BSLASH) == NULL); in do_map()
1003 if (vim_strchr(modechars, 'n') != NULL) in mode_str2flags()
1005 if (vim_strchr(modechars, 'v') != NULL) in mode_str2flags()
1007 if (vim_strchr(modechars, 'x') != NULL) in mode_str2flags()
1009 if (vim_strchr(modechars, 's') != NULL) in mode_str2flags()
1011 if (vim_strchr(modechars, 'o') != NULL) in mode_str2flags()
1013 if (vim_strchr(modechars, 'i') != NULL) in mode_str2flags()
1015 if (vim_strchr(modechars, 'l') != NULL) in mode_str2flags()
1017 if (vim_strchr(modechars, 'c') != NULL) in mode_str2flags()
1124 cpo_bslash = (vim_strchr(p_cpo, CPO_BSLASH) != NULL); in translate_mapping()
[all …]
H A Dnormal.c952 && vim_strchr(p_cpo, CPO_DIGRAPH) == NULL) in normal_cmd()
3806 if (vim_strchr(aux_ptr, *ptr) != NULL) in nv_ident()
4048 && vim_strchr(p_ww, 's') != NULL) in nv_right()
4050 && vim_strchr(p_ww, 'l') != NULL) in nv_right()
4052 && vim_strchr(p_ww, '>') != NULL)) in nv_right()
4136 && vim_strchr(p_ww, 'b') != NULL) in nv_left()
4138 && vim_strchr(p_ww, 'h') != NULL) in nv_left()
4140 && vim_strchr(p_ww, '<') != NULL)) in nv_left()
4520 if (vim_strchr((char_u *) in nv_brackets()
5317 if (vim_strchr(p_ww, '~') != NULL in n_swapchar()
[all …]
H A Dfilepath.c363 if (vim_strchr(*fnamep, '~') != NULL) in modify_fname()
655 p = vim_strchr(s, sep); in modify_fname()
663 p = vim_strchr(s, sep); in modify_fname()
2281 if (vim_strchr(arg2, 'b') != NULL) in f_writefile()
2283 if (vim_strchr(arg2, 'a') != NULL) in f_writefile()
2286 if (vim_strchr(arg2, 's') != NULL) in f_writefile()
2288 else if (vim_strchr(arg2, 'S') != NULL) in f_writefile()
2880 retval = vim_strchr(path, ':'); in get_past_head()
3221 if (vim_strchr(tail, '.') == NULL) in match_suffix()
3803 else if (vim_strchr((char_u *) in has_env_var()
[all …]
H A Dbuffer.c3170 if (vim_strchr(eap->arg, 't')) in buflist_list()
3201 || (vim_strchr(eap->arg, '+') in buflist_list()
3203 || (vim_strchr(eap->arg, 'a') in buflist_list()
3205 || (vim_strchr(eap->arg, 'h') in buflist_list()
3208 || (vim_strchr(eap->arg, 'R') in buflist_list()
3210 || (vim_strchr(eap->arg, '?') in buflist_list()
3212 || (vim_strchr(eap->arg, 'F') in buflist_list()
3219 || (vim_strchr(eap->arg, '#') in buflist_list()
4478 if (vim_strchr(STL_ALL, *s) == NULL) in build_stl_str_hl()
5147 || vim_strchr(fname, '~') != NULL in fix_fname()
[all …]
H A Dregister.c178 || (!writing && vim_strchr((char_u *) in valid_yank_reg()
1321 if (curr->y_type == MCHAR && vim_strchr(p_cpo, CPO_REGAPPEND) == NULL) in op_yank()
1627 ptr = vim_strchr(ptr, '\n'); in do_put()
2345 if (arg != NULL && vim_strchr(arg, name) == NULL in ex_display()
2348 && (name != '*' || vim_strchr(arg, '+') == NULL) in ex_display()
2421 && (arg == NULL || vim_strchr(arg, '.') != NULL) && !got_int in ex_display()
2429 if (last_cmdline != NULL && (arg == NULL || vim_strchr(arg, ':') != NULL) in ex_display()
2438 && (arg == NULL || vim_strchr(arg, '%') != NULL) && !got_int in ex_display()
2446 if ((arg == NULL || vim_strchr(arg, '%') != NULL) && !got_int) in ex_display()
2461 && (arg == NULL || vim_strchr(arg, '/') != NULL) && !got_int in ex_display()
[all …]
H A Dbufwrite.c750 && (!append || vim_strchr(p_cpo, CPO_FNAMEAPP) != NULL) in buf_write()
751 && vim_strchr(p_cpo, CPO_FNAMEW) != NULL) in buf_write()
926 && (overwriting || vim_strchr(p_cpo, CPO_PLUS) != NULL)) in buf_write()
1118 if (vim_strchr(p_cpo, CPO_FWRITE) != NULL) in buf_write()
1536 if (file_readonly && vim_strchr(p_cpo, CPO_FWRITE) != NULL) in buf_write()
1620 && vim_strchr(p_cpo, CPO_FWRITE) == NULL) in buf_write()
1630 if (forceit && overwriting && vim_strchr(p_cpo, CPO_KEEPRO) == NULL) in buf_write()
1831 if (forceit && vim_strchr(p_cpo, CPO_FWRITE) == NULL in buf_write()
2422 && (overwriting || vim_strchr(p_cpo, CPO_PLUS) != NULL)) in buf_write()
H A Dos_amiga.c500 if (vim_strchr((char_u *)av, ' ')) in mch_check_win()
503 if (vim_strchr((char_u *)av, ' ')) in mch_check_win()
785 return (vim_strchr(fname, ':') != NULL && *fname != ':'); in mch_isFullName()
1647 else if (vim_strchr((char_u *)"*?[(#", *p) != NULL) in mch_has_exp_wildcard()
1661 if (vim_strchr((char_u *) in mch_has_wildcard()
H A Dregexp.c483 reg_cpo_lit = vim_strchr(p_cpo, CPO_LITERAL) != NULL; in get_cpo_flags()
484 reg_cpo_bsl = vim_strchr(p_cpo, CPO_BACKSL) != NULL; in get_cpo_flags()
514 && (vim_strchr(REGEXP_INRANGE, p[1]) != NULL in skip_anyof()
515 || (!reg_cpo_lit && vim_strchr(REGEXP_ABBR, p[1]) != NULL))) in skip_anyof()
804 vim_strchr(META, c) in peekchr()
827 else if (vim_strchr(REGEXP_ABBR, c)) in peekchr()
1653 return vim_strchr(s, c); in cstrchr()
1666 return vim_strchr(s, c); in cstrchr()
2139 else if (vim_strchr((char_u *)"uUlLeE", *src)) in vim_regsub_both()
H A Dtag.c1863 if ((s = vim_strchr(s, ',')) == NULL) in find_tags()
2268 tagp.tagname_end = vim_strchr(lbuf, TAB); in find_tags()
3044 p_7f = vim_strchr(lbuf, 0x7f); in parse_tag_line()
3048 if (vim_strchr(lbuf, '\n') == NULL) in parse_tag_line()
3066 p = vim_strchr(p_7f, Ctrl_A); in parse_tag_line()
3099 p = vim_strchr(lbuf, TAB); in parse_tag_line()
3108 p = vim_strchr(p, TAB); in parse_tag_line()
3149 while ((p = vim_strchr(p, '\t')) != NULL) in test_for_static()
3247 pc = vim_strchr(p, ':'); in parse_match()
3248 pt = vim_strchr(p, '\t'); in parse_match()
[all …]
H A Dgui.c112 && !vim_strchr(p_go, GO_FORG) in gui_start()
527 if (vim_strchr(p_go, GO_NOSYSMENU) == NULL) in gui_init()
760 if (vim_strchr(p_go, GO_MENUS) == NULL) in gui_init()
1415 if (vim_strchr(p_go, GO_TOOLBAR) != NULL) in gui_position_components()
1427 if (vim_strchr(p_go, GO_TOOLBAR) != NULL) in gui_position_components()
1509 if (vim_strchr(p_go, GO_TOOLBAR) != NULL) in gui_get_base_height()
1522 if (vim_strchr(p_go, GO_FOOTER) != NULL) in gui_get_base_height()
3484 grey_new = (vim_strchr(p_go, GO_GREY) != NULL); in gui_init_which_components()
4317 if (vim_strchr(p_go, GO_TOOLBAR) != NULL) in gui_update_scrollbars()
4584 if (vim_strchr(p_go, GO_HORSCROLL) == NULL in gui_find_longest_lnum()
[all …]
H A Devalvars.c869 else if (vim_strchr((char_u *)"+-*/%.", *expr) != NULL) in ex_let()
1316 && vim_strchr((char_u *)"$@&", *arg) != NULL) in ex_let_one()
1343 && vim_strchr(endchars, *skipwhite(arg)) == NULL) in ex_let_one()
1388 && vim_strchr(endchars, *skipwhite(p)) == NULL)) in ex_let_one()
1487 if (op != NULL && vim_strchr((char_u *)"+-*/%", *op) != NULL) in ex_let_one()
1490 && vim_strchr(endchars, *skipwhite(arg + 1)) == NULL) in ex_let_one()
1528 if (endchars != NULL && vim_strchr(endchars, in ex_let_one()
2972 if (vim_strchr(name + 2, ':') != NULL in find_var_ht()
2973 || vim_strchr(name + 2, AUTOLOAD_CHAR) != NULL) in find_var_ht()
3239 && vim_strchr((char_u *)"gwbt", name[0]) != NULL) in set_var_const()
[all …]
H A Dscriptfile.c1472 if (vim_strchr(p_cpo, *f) == NULL in do_source()
1473 && (t = vim_strchr(si->sn_save_cpo, *f)) != NULL) in do_source()
1477 if (vim_strchr((char_u *)CPO_VIM, *f) == NULL in do_source()
1478 && vim_strchr(si->sn_save_cpo, *f) == NULL) in do_source()
1794 && vim_strchr(p_cpo, CPO_CONCAT) == NULL) in getsourceline()
2032 for (p = scriptname + 9; (p = vim_strchr(p, AUTOLOAD_CHAR)) != NULL; in autoload_name()
2055 p = vim_strchr(name, AUTOLOAD_CHAR); in script_autoload()
H A Doption.c111 if (vim_strchr(p, ' ') != NULL) in set_init_1()
679 if (escape && vim_strchr(val, ' ') != NULL) in set_string_default_esc()
2044 && vim_strchr(s + 2, *s) != NULL) in do_set()
2055 && vim_strchr(s + 1, *s) != NULL) in do_set()
2890 p = vim_strchr(p_shm, SHM_SEARCH); in set_bool_option()
4876 && vim_strchr(*valuep, ',') != NULL) in put_setstring()
5861 && vim_strchr(p_cpo, CPO_BUFOPT) != NULL))) in buf_copy_options()
6702 ( vim_strchr(p_shm, x) != NULL in shortmess()
6703 || (vim_strchr(p_shm, 'a') != NULL in shortmess()
6704 && vim_strchr((char_u *)SHM_A, x) != NULL)); in shortmess()
[all …]
H A Dos_vms.c460 if (vim_strchr(pat[i],'$') || vim_strchr(pat[i],'~')) in mch_expand_wildcards()
708 if ((cp = vim_strchr( fname, ';')) != NULL) // remove version in vms_remove_version()
H A Dex_docmd.c2000 if (vim_strchr(p_cpo, CPO_MINUS) != NULL) in do_one_cmd()
2818 eap->nextcmd = vim_strchr(eap->cmd, '\n'); in parse_command_modifiers()
2848 if (vim_strchr((char_u *)".=", *n) != NULL in parse_command_modifiers()
3441 if (vim_strchr((char_u *)"{('[\"@&$", *p) != NULL in find_ex_command()
4782 if (vim_strchr((char_u *)"%#<", *p) == NULL) in expand_filename()
4803 if (vim_strchr(repl, '$') != NULL || vim_strchr(repl, '~') != NULL) in expand_filename()
4844 if (vim_strchr(ESCAPE_CHARS, *l) != NULL) in expand_filename()
4914 if (vim_strchr(eap->arg, '$') != NULL in expand_filename()
4915 || vim_strchr(eap->arg, '~') != NULL) in expand_filename()
5077 if ((vim_strchr(p_cpo, CPO_BAR) == NULL in separate_nextcmd()
[all …]
H A Dops.c674 if (vim_strchr(p_cpo, CPO_EMPTYREGION) != NULL) in op_delete()
894 if ( vim_strchr(p_cpo, CPO_DOLLAR) != NULL in op_delete()
2032 || (vim_strchr(p_cpo, CPO_JOINSP) == NULL in do_join()
2160 (vim_strchr(p_cpo, CPO_JOINCOL) != NULL ? currsize : col); in do_join()
2500 do_hex = (vim_strchr(curbuf->b_p_nf, 'x') != NULL); // "heX" in do_addsub()
2501 do_oct = (vim_strchr(curbuf->b_p_nf, 'o') != NULL); // "Octal" in do_addsub()
2502 do_bin = (vim_strchr(curbuf->b_p_nf, 'b') != NULL); // "Bin" in do_addsub()
3501 int redo_yank = vim_strchr(p_cpo, CPO_YANK) != NULL && !gui_yank; in do_pending_operator()
3563 if (vim_strchr(p_cpo, CPO_REDO) == NULL) in do_pending_operator()
3867 && vim_strchr(p_cpo, CPO_EMPTYREGION) != NULL); in do_pending_operator()
[all …]
H A Dsearch.c808 if (vim_strchr(p_cpo, CPO_SEARCH) != NULL) in searchit()
923 if (vim_strchr(p_cpo, CPO_SEARCH) != NULL) in searchit()
1803 if (vim_strchr(p_cpo, CPO_SCOLON) == NULL && count == 1 && t_cmd) in searchc()
2111 cpo_match = (vim_strchr(p_cpo, CPO_MATCH) != NULL); in findmatchlimit()
2112 cpo_bsl = (vim_strchr(p_cpo, CPO_MATCHBSL) != NULL); in findmatchlimit()
2468 && vim_strchr(linep + pos.col + 1, '(') != NULL) in findmatchlimit()
2671 && vim_strchr((char_u *)"(){}[]", c) != NULL in findmatchlimit()
2730 if (vim_strchr(p, ';') != NULL) // there may be comments in check_linecomment()
2760 while ((p = vim_strchr(p, '/')) != NULL) in check_linecomment()
2864 if (vim_strchr(p_cpo, CPO_SHOWMATCH) != NULL) in showmatch()
[all …]
H A Dex_cmds.c269 *has_tab = (vim_strchr(first, TAB) != NULL); in linelen()
1252 || vim_strchr(p_cpo, CPO_REMMARK) == NULL) in do_filter()
1668 for (p = opt; (p = vim_strchr(p, '%')) != NULL; ++p) in append_redir()
1935 if (vim_strchr(p_cpo, CPO_ALTWRITE) != NULL in do_write()
2112 && vim_strchr(p_cpo, CPO_OVERNEW) == NULL) in check_overwrite()
3309 p = vim_strchr(eap->nextcmd, NL); in ex_append()
3745 if (vim_strchr((char_u *)"/?&", *cmd) == NULL) in ex_substitute()
3777 && vim_strchr(p_cpo, CPO_SUBPERCENT) != NULL) in ex_substitute()
4188 if (vim_strchr(p_cpo, CPO_UNDO) != NULL) in ex_substitute()
4362 if (vim_strchr(p_cpo, CPO_UNDO) != NULL) in ex_substitute()
[all …]
H A Dstrings.c92 if (vim_strchr(esc_chars, *p) != NULL || (bsl && rem_backslash(p))) in vim_strsave_escaped_ext()
109 if (vim_strchr(esc_chars, *p) != NULL || (bsl && rem_backslash(p))) in vim_strsave_escaped_ext()
590 vim_strchr(char_u *string, int c) in vim_strchr() function
697 if (vim_strchr(charset, *s) != NULL) in vim_strpbrk()
1567 p = vim_strchr(fromstr, *in_str); in f_tr()
2591 tp = (char *)vim_strchr((char_u *)tmp, in vim_vsnprintf_typval()
2632 tp = (char *)vim_strchr((char_u *)tmp, in vim_vsnprintf_typval()
H A Dcmdhist.c281 if (vim_strchr((char_u *)":=@>?/", name[0]) != NULL && name[1] == NUL) in get_histtype()
673 p = vim_strchr(p + 3, '='); in remove_key_from_history()
712 || vim_strchr((char_u *)":=@>/?", *end) != NULL) in ex_history()

1234