Home
last modified time | relevance | path

Searched refs:STRLEN (Results 1 – 25 of 131) sorted by relevance

123456

/vim-8.2.3635/src/
H A Dfindfile.c857 if (STRLEN(file_path) + STRLEN(stackp->ffs_fix_path) + 1 in vim_findfile()
1002 len = (int)STRLEN(file_path); in vim_findfile()
2076 p += STRLEN(line_english); in file_name_in_line()
2078 p += STRLEN(line_transl); in file_name_in_line()
2136 len = (int)STRLEN(ptr); in find_file_name_in_path()
2158 len = (int)STRLEN(ptr); in find_file_name_in_path()
2344 len = (int)STRLEN(curdir); in expand_path_option()
2359 len = (int)STRLEN(buf); in expand_path_option()
2442 len = (int)STRLEN(pattern); in uniquefy_paths()
2477 len = (int)STRLEN(path); in uniquefy_paths()
[all …]
H A Dscriptfile.c162 len += STRLEN(type_name); in estack_sfile()
285 buflen = STRLEN(buf); in do_in_path()
307 tail = buf + STRLEN(buf); in do_in_path()
394 len = (int)(STRLEN(start_dir) + STRLEN(name)); in do_in_path_and_pp()
405 len = (int)(STRLEN(opt_dir) + STRLEN(name)); in do_in_path_and_pp()
557 insp = p_rtp + STRLEN(p_rtp); in add_pack_dir_to_rtp()
564 oldlen = STRLEN(p_rtp); in add_pack_dir_to_rtp()
636 len = (int)STRLEN(ffname) + (int)STRLEN(ftpat); in load_pack_plugin()
759 len = (int)STRLEN(plugpat) + (int)STRLEN(eap->arg) + 5; in ex_packadd()
873 e = s + STRLEN(s); in ExpandRTDir()
[all …]
H A Dif_xcmdsrv.c236 p = alloc(STRLEN(name) + 10); in serverRegisterName()
356 STRLEN(propInfo) + 1); in serverChangeRegisteredWindow()
443 length = STRLEN(name) + STRLEN(p_enc) + STRLEN(cmd) + 14; in serverSendToVim()
455 length += STRLEN(property + length + 1) + 1; in serverSendToVim()
751 length = STRLEN(p_enc) + STRLEN(str) + 14; in serverSendReply()
757 length += STRLEN(property + length); in serverSendReply()
797 len = STRLEN(*str) + 1; in serverReadReply()
876 (int)STRLEN(VIM_VERSION_SHORT) + 1); in SendInit()
1318 (void)ga_grow(&reply, 50 + STRLEN(p_enc)); in server_parse_message()
1321 reply.ga_len = 14 + STRLEN(p_enc) + STRLEN(serial); in server_parse_message()
[all …]
H A Dhelp.c74 p = arg + STRLEN(arg) - 1; in ex_help()
97 len = (int)STRLEN(matches[i]); in ex_help()
231 int len = (int)STRLEN(arg); in check_help_lang()
602 len = (int)STRLEN(file[i]) - 3; in cleanup_help_tags()
610 if (j != i && (int)STRLEN(file[j]) == len + 3 in cleanup_help_tags()
622 len = (int)STRLEN(file[i]) - 3; in cleanup_help_tags()
732 len = (int)STRLEN(line); in fix_help_buffer()
977 dirlen = (int)STRLEN(dir); in helptags_one()
1014 s = alloc(18 + (unsigned)STRLEN(tagfname)); in helptags_one()
1099 s = alloc(p2 - p1 + STRLEN(fname) + 2); in helptags_one()
[all …]
H A Dvim9script.c182 size_t len = STRLEN(eap->cmd) + 8; in ex_incdec()
487 len = STRLEN(si->sn_name) - STRLEN(tail) + STRLEN(tv.vval.v_string) + 2; in handle_import()
506 size_t len = 7 + STRLEN(tv.vval.v_string) + 1; in handle_import()
565 size_t len = STRLEN(name); in handle_import()
705 if (STRLEN(name) < sizeof(buffer) - 15) in find_exported()
709 funcname = alloc(STRLEN(name) + 15); in find_exported()
759 return arg + STRLEN(arg); in vim9_declare_scriptvar()
766 return arg + STRLEN(arg); in vim9_declare_scriptvar()
776 return arg + STRLEN(arg); in vim9_declare_scriptvar()
781 return arg + STRLEN(arg); in vim9_declare_scriptvar()
[all …]
H A Dstrings.c26 len = STRLEN(string) + 1; in vim_strsave()
497 q = ptr + STRLEN(ptr); in del_trailing_spaces()
520 size_t tolen = STRLEN(to); in vim_strcat()
782 len += (unsigned)STRLEN(str); in string_quote()
1038 len = (int)STRLEN(str); in f_strgetchar()
1239 slen = (int)STRLEN(p); in f_strcharpart()
1328 slen = (int)STRLEN(p); in f_strpart()
1504 if (STRLEN(fromstr) != STRLEN(tostr)) in f_tr()
1662 tail = head + STRLEN(head); in f_trim()
1847 size_t len = STRLEN(str); in vim_snprintf_add()
[all …]
H A Dops.c493 s_len = (unsigned)STRLEN(s); in block_insert()
907 int len = (int)STRLEN(curline); in op_delete()
1095 oldlen = STRLEN(oldp); in op_replace()
1112 n = (int)STRLEN(newp); in op_replace()
1638 len = STRLEN(firstline); in op_insert()
2037 currsize = (int)STRLEN(curr); in do_join()
2128 currsize = (int)STRLEN(curr); in do_join()
2704 ? (int)STRLEN(ptr) - col in do_addsub()
2853 length -= (int)STRLEN(buf2); in do_addsub()
3123 && (long)STRLEN(s) < len) in cursor_pos_info()
[all …]
H A Dfilepath.c275 *fnamelen = (int)STRLEN(p); in shortpath_for_partial()
445 namelen = STRLEN(dirname); in modify_fname()
706 *fnamelen = (int)STRLEN(p); in modify_fname()
1051 len = (int)STRLEN(fname); in f_fnamemodify()
2023 len = STRLEN(p); in f_resolve()
2098 cpy = alloc(STRLEN(p) + STRLEN(buf) + 1); in f_resolve()
2170 q = p + STRLEN(p); in f_resolve()
2609 dirlen = STRLEN(homedir); in home_replace()
3010 dest = alloc(STRLEN(fname1) + STRLEN(fname2) + 3); in concat_fnames()
3498 len = (int)STRLEN(buf); in dos_expandpath()
[all …]
H A Dmisc1.c202 i = (int)STRLEN(line); in get_last_leader_offset()
310 len2 = (int)STRLEN(string); in get_last_leader_offset()
1190 && STRLEN(homedrive) + STRLEN(homepath) < MAXPATHL) in init_homedir()
1217 && STRLEN(exp) + STRLEN(p) < MAXPATHL) in init_homedir()
1558 && (STRLEN(var) + STRLEN(tail) + 1 < (unsigned)dstlen)) in expand_env_esc()
1561 dstlen -= (int)STRLEN(var); in expand_env_esc()
1562 c = (int)STRLEN(var); in expand_env_esc()
1800 pend = p + STRLEN(p); in vim_getenv()
1932 envbuf = alloc(STRLEN(name) + STRLEN(val) + 2); in vim_setenv()
2109 int n = (int)STRLEN(name); in match_user()
[all …]
H A Dif_perl.xs372 static SV* (*Perl_newSV)(pTHX_ STRLEN);
374 static SV* (*Perl_newSVpv)(pTHX_ const char*, STRLEN);
385 static void (*Perl_save_strlen)(pTHX_ STRLEN* ptr);
403 static char* (*Perl_sv_2pv)(pTHX_ SV*, STRLEN*);
405 static char* (*Perl_sv_2pvbyte)(pTHX_ SV*, STRLEN*);
442 static STRLEN* (*Perl_Tna_ptr)(register PerlInterpreter*);
1043 STRLEN length; in ex_perl()
1336 STRLEN err_len = 0; in do_perleval()
1401 STRLEN length; in ex_perldo()
1621 STRLEN len;
[all …]
H A Dspellfile.c1481 if (STRLEN(from) != STRLEN(to)) in set_sofo()
2360 + STRLEN(items[0]) in spell_read_aff()
3279 tp = p + STRLEN(p); in process_compflags()
3555 l = (int)STRLEN(line); in spell_read_dic()
4127 l = (int)STRLEN(rline); in spell_read_wordfile()
5055 l = (int)STRLEN(p); in write_vim_spell()
5529 len = (int)STRLEN(fname); in spell_make_sugfile()
6402 l = (int)STRLEN(buf); in init_spellfile()
6407 l = (int)STRLEN(buf); in init_spellfile()
6411 l = (int)STRLEN(buf); in init_spellfile()
[all …]
H A Dusercmd.c476 len = (int)STRLEN(cmd->uc_name) + 4; in uc_list()
509 len += (int)STRLEN(IObuff + len); in uc_list()
517 len += (int)STRLEN(IObuff + len); in uc_list()
533 len += (int)STRLEN(IObuff + len); in uc_list()
546 len += (int)STRLEN(IObuff + len); in uc_list()
927 len = STRLEN(cmd->uc_name); in uc_add_command()
1025 if (p[STRLEN(p) - 1] != '}') in may_get_cmd_block()
1318 result = STRLEN(mod_str); in add_cmd_modifier()
1521 result = STRLEN(eap->arg); in uc_check_code()
1526 result = STRLEN(eap->arg) + 2; in uc_check_code()
[all …]
H A Dcindent.c48 cinw_len = (int)STRLEN(curbuf->b_p_cinw) + 1; in cin_is_cinword()
294 s += STRLEN(s); in cin_skipcomment()
302 s += STRLEN(s); in cin_skipcomment()
555 int l = (int)STRLEN(word); in cin_starts_with()
682 int len = (int)STRLEN(find); in cin_ends_in()
691 r = skipwhite(r + STRLEN(ignore)); in cin_ends_in()
2201 lead_start_len = (int)STRLEN(lead_start); in get_c_indent()
3358 n = (int)STRLEN(l); in get_c_indent()
3414 && l[STRLEN(l) - 1] == '\\') in get_c_indent()
3839 if (*l != NUL && l[STRLEN(l) - 1] == '\\') in get_c_indent()
[all …]
H A Dmessage.c301 half = i = (int)STRLEN(s); in trunc_string()
316 for (i = (int)STRLEN(s); in trunc_string()
327 len = STRLEN(s); in trunc_string()
341 len = STRLEN(s + i) + 1; in trunc_string()
482 Buf = alloc(STRLEN(sname) + STRLEN(p)); in get_emsg_source()
982 len = (int)STRLEN(s); in add_msg_hist()
1632 retval += (int)STRLEN(s); in msg_outtrans_len_attr()
1823 if ((int)(STRLEN(s) + STRLEN(buf)) < len) in str2specialbuf()
1857 trail = s + STRLEN(s); in msg_prt_line()
3944 hotkp += STRLEN(hotkp); in msg_show_console_dialog()
[all …]
H A Dmemline.c1189 len = (int)STRLEN(fname); in ml_recover()
2079 s = alloc(STRLEN(f) + 1); in make_percent_swname()
2368 i = (int)STRLEN(names[num_names - 1]) - (int)STRLEN(names[num_names]); in recov_file_names()
2397 i = STRLEN(names[num_names]) - STRLEN(names[num_names - 1]); in recov_file_names()
3276 if (STRLEN(line) > 0) in ml_append_int()
3398 len = (colnr_T)STRLEN(line); in ml_replace()
3548 textlen = STRLEN(text) + 1; in adjust_text_props_for_delete()
4454 if (STRLEN(tail) + STRLEN(buf) >= MAXPATHL) in resolve_symlink()
5055 name = alloc(STRLEN(fname) in findswapname()
5056 + STRLEN(_("Swap file \"")) in findswapname()
[all …]
H A Dspell.c926 len = (int)STRLEN(p); in match_checkcompoundpattern()
1313 len = (int)STRLEN(line); in spell_move_to()
1346 spell_cat_line(buf + STRLEN(buf), in spell_move_to()
1892 l = (int)STRLEN(s); in init_syl_tab()
2024 len = (int)STRLEN(lang); in did_set_spelllang()
2834 endcol = (colnr_T)STRLEN(line); in check_need_cap()
2887 addlen = (int)(STRLEN(repl_to) - STRLEN(repl_from)); in ex_spellrepall()
2910 p = alloc(STRLEN(line) + addlen + 1); in ex_spellrepall()
3952 patlen = (int)STRLEN(pat); in spell_dump_compl()
4133 : STRNCMP(p, pat, STRLEN(pat)) == 0) in dump_word()
[all …]
H A Dregister.c442 lp = alloc(STRLEN(*pp) + STRLEN(p) + 1); in stuff_yank()
1289 endcol = (colnr_T)STRLEN(p); in op_yank()
1324 + STRLEN(y_current->y_array[0]) + 1); in op_yank()
1751 yanklen = (int)STRLEN(y_array[0]); in do_put()
1843 oldlen = (int)STRLEN(oldp); in do_put()
1874 yanklen = (int)STRLEN(y_array[i]); in do_put()
2040 oldlen = (int)STRLEN(oldp); in do_put()
2147 lendiff = (int)STRLEN(ptr); in do_put()
2167 lendiff -= (int)STRLEN(ml_get(lnum)); in do_put()
2685 len += (long)STRLEN(retval + len); in get_reg_contents()
[all …]
H A Dcmdhist.c100 int short_names_count = (int)STRLEN(short_names); in get_history_arg()
232 && (type != HIST_SEARCH || sep == p[STRLEN(p) + 1])) in in_history()
271 int len = (int)STRLEN(name); in get_histtype()
335 len = (int)STRLEN(new_entry); in add_to_history()
719 if (STRNICMP(arg, "all", STRLEN(arg)) == 0) in ex_history()
768 trunc_string(hist[i].hisstr, IObuff + STRLEN(IObuff), in ex_history()
769 (int)Columns - 10, IOSIZE - (int)STRLEN(IObuff)); in ex_history()
H A Dtag.c1451 p += STRLEN(p); in find_tagfunc_tags()
1455 p += STRLEN(p); in find_tagfunc_tags()
1459 p += STRLEN(p); in find_tagfunc_tags()
1464 p += STRLEN(p); in find_tagfunc_tags()
1470 p += STRLEN(p); in find_tagfunc_tags()
1490 p += STRLEN(p); in find_tagfunc_tags()
1492 p += STRLEN(p); in find_tagfunc_tags()
1494 p += STRLEN(p); in find_tagfunc_tags()
3168 p += STRLEN(p) + 1; in matching_line_len()
3170 p += STRLEN(p) + 1; in matching_line_len()
[all …]
H A Dos_mswin.c417 size_t len = STRLEN(p); in slash_adjust()
517 p = buf + STRLEN(buf); in vim_stat()
1449 prt_name = alloc(STRLEN(printer_name) in mch_print_init()
1450 + STRLEN(port_name) + STRLEN(text)); in mch_print_init()
1817 len = (int)STRLEN(fname); in resolve_shortcut()
1943 data.cbData = (DWORD)STRLEN(p_enc) + 1; in serverSendEnc()
2045 size_t len = STRLEN(str) + STRLEN(err) + 5; in Messaging_WndProc()
2277 ok_name = alloc(STRLEN(name) + 10); in serverSetName()
2280 p = ok_name + STRLEN(name); in serverSetName()
2385 if (STRLEN(name) > 1 && !vim_isdigit(name[STRLEN(name) - 1])) in serverSendToVim()
[all …]
H A Dhardcopy.c213 commap = option_str + STRLEN(option_str); in parse_list_options()
737 sprintf((char *)IObuff + STRLEN(IObuff), in ex_hardcopy()
759 STRLEN(skipwhite(ml_get(prtpos.file_line))); in ex_hardcopy()
1663 if (STRLEN(filename) >= MAXPATHL) in prt_resource_name()
1867 (int)STRLEN(PRT_RESOURCE_HEADER)) != 0) in prt_open_resource()
1875 offset += (int)STRLEN(PRT_RESOURCE_HEADER); in prt_open_resource()
1884 (int)STRLEN(PRT_RESOURCE_RESOURCE)) != 0) in prt_open_resource()
1890 offset += (int)STRLEN(PRT_RESOURCE_RESOURCE); in prt_open_resource()
1900 (int)STRLEN(PRT_RESOURCE_CMAP)) == 0) in prt_open_resource()
2287 enc_len = (int)STRLEN(p_encoding); in prt_match_encoding()
[all …]
H A Dcmdexpand.c203 if ((int)STRLEN(p2) < j) in nextwild()
211 difflen = (int)STRLEN(p2) - xp->xp_pattern_len; in nextwild()
470 len += (long_u)STRLEN(xp->xp_files[i]) + 1; in ExpandOne()
1192 len = (int)STRLEN(buff); in set_one_cmd_context()
2080 int len = (int)STRLEN(pat) + 20; in ExpandFromContext()
2239 str += STRLEN(str) - 1; in ExpandGeneric()
2355 e = s + STRLEN(s); in expand_shellcmd()
2379 l = STRLEN(buf); in expand_shellcmd()
2394 if (STRLEN(name) > l) in expand_shellcmd()
2505 e = s + STRLEN(s); in ExpandUserDefined()
[all …]
H A Dfileio.c322 size_t namelen = STRLEN(fname); in readfile()
1227 n = (int)STRLEN(p); in readfile()
2789 *pp += STRLEN(*pp); in next_fenc()
3105 p += STRLEN(p); in msg_add_lines()
3520 extlen = (int)STRLEN(ext); in buf_modname()
3578 s = ptr + STRLEN(ptr); in buf_modname()
4228 tbuf = alloc(STRLEN(path) + STRLEN(mesg) + STRLEN(mesg2) + 2); in buf_check_timestamp()
4636 len = STRLEN(path) + 1 + STRLEN(name) + 1; in create_readdirex_item()
4799 p = buf + STRLEN(buf); in readdir_core()
5173 itmplen = STRLEN(itmp); in vim_tempname()
[all …]
H A Dex_cmds.c102 len = (int)STRLEN(IObuff); in do_ascii()
262 for (last = first + STRLEN(first); in linelen()
510 len = (int)STRLEN(s); in ex_sort()
931 len = (int)STRLEN(trailarg) + 1; in do_bang()
933 len += (int)STRLEN(newcmd); in do_bang()
942 len += (int)STRLEN(prevcmd); in do_bang()
954 p = t + STRLEN(t); in do_bang()
1007 newcmd = alloc(STRLEN(prevcmd) + 2 * STRLEN(p_shq) + 1); in do_bang()
1574 len += (long_u)STRLEN(otmp) + (long_u)STRLEN(p_srr) + 2; // " " in make_filter_cmd()
1666 end = buf + STRLEN(buf); in append_redir()
[all …]
H A Dsearch.c218 len = (unsigned)STRLEN(s); in reverse_text()
1342 searchcmdlen += (int)(STRLEN(pat) - STRLEN(strcopy)); in do_search()
1415 off_len = STRLEN(off_buf); in do_search()
1440 len = STRLEN(p) + off_len + 3; in do_search()
1814 len = (int)STRLEN(p); in searchc()
3047 pos.col = (colnr_T)STRLEN( in current_search()
3171 len = STRLEN(t); in cmdline_search_stat()
3247 && STRLEN(lastpat) == STRLEN(spats[last_idx].pat) in update_search_stat()
3536 i = (int)STRLEN(p); in find_pattern_in_path()
3953 i = (int)STRLEN(line); in find_pattern_in_path()
[all …]

123456