Lines Matching refs:repl
87 static char_u *repl_cmdline(exarg_T *eap, char_u *src, int srclen, char_u *repl, char_u **cmdlinep);
4746 char_u *repl; in expand_filename() local
4791 repl = eval_vars(p, eap->arg, &srclen, &(eap->do_ecmd_lnum), in expand_filename()
4795 if (repl == NULL) // no match found in expand_filename()
4803 if (vim_strchr(repl, '$') != NULL || vim_strchr(repl, '~') != NULL) in expand_filename()
4805 char_u *l = repl; in expand_filename()
4807 repl = expand_env_save(repl); in expand_filename()
4843 for (l = repl; *l; ++l) in expand_filename()
4846 l = vim_strsave_escaped(repl, ESCAPE_CHARS); in expand_filename()
4849 vim_free(repl); in expand_filename()
4850 repl = l; in expand_filename()
4859 && vim_strpbrk(repl, (char_u *)"!") != NULL) in expand_filename()
4863 l = vim_strsave_escaped(repl, (char_u *)"!"); in expand_filename()
4866 vim_free(repl); in expand_filename()
4867 repl = l; in expand_filename()
4871 p = repl_cmdline(eap, p, srclen, repl, cmdlinep); in expand_filename()
4872 vim_free(repl); in expand_filename()
4966 char_u *repl, in repl_cmdline() argument
4978 len = (int)STRLEN(repl); in repl_cmdline()
4994 mch_memmove(new_cmdline + i, repl, (size_t)len); in repl_cmdline()
9197 char_u *repl; in expand_sfile() local
9212 repl = eval_vars(p, result, &srclen, NULL, &errormsg, NULL); in expand_sfile()
9220 if (repl == NULL) // no match (cannot happen) in expand_sfile()
9225 len = (int)STRLEN(result) - srclen + (int)STRLEN(repl) + 1; in expand_sfile()
9229 vim_free(repl); in expand_sfile()
9234 STRCPY(newres + (p - result), repl); in expand_sfile()
9237 vim_free(repl); in expand_sfile()