Lines Matching refs:pat

1928     char_u	*pat,  in ExpandFromContext()  argument
1965 pat = vim_strsave(pat); in ExpandFromContext()
1966 for (i = 0; pat[i]; ++i) in ExpandFromContext()
1967 if (pat[i] == '\\') in ExpandFromContext()
1970 && pat[i + 1] == '\\' in ExpandFromContext()
1971 && pat[i + 2] == '\\' in ExpandFromContext()
1972 && pat[i + 3] == ' ') in ExpandFromContext()
1973 STRMOVE(pat + i, pat + i + 3); in ExpandFromContext()
1975 && pat[i + 1] == ' ') in ExpandFromContext()
1976 STRMOVE(pat + i, pat + i + 1); in ExpandFromContext()
1990 ret = expand_wildcards_eval(&pat, num_file, file, flags); in ExpandFromContext()
1992 vim_free(pat); in ExpandFromContext()
2022 if (find_help_tags(*pat == NUL ? (char_u *)"help" : pat, in ExpandFromContext()
2034 return expand_shellcmd(pat, num_file, file, flags); in ExpandFromContext()
2038 return ExpandBufnames(pat, num_file, file, options); in ExpandFromContext()
2041 return ExpandBufnames(pat, num_file, file, options | BUF_DIFF_FILTER); in ExpandFromContext()
2045 return expand_tags(xp->xp_context == EXPAND_TAGS, pat, num_file, file); in ExpandFromContext()
2049 return ExpandRTDir(pat, DIP_START + DIP_OPT, num_file, file, in ExpandFromContext()
2055 return ExpandRTDir(pat, 0, num_file, file, directories); in ExpandFromContext()
2060 return ExpandRTDir(pat, 0, num_file, file, directories); in ExpandFromContext()
2065 return ExpandRTDir(pat, 0, num_file, file, directories); in ExpandFromContext()
2072 return ExpandPackAddDir(pat, num_file, file); in ExpandFromContext()
2078 && STRNCMP(pat, "^s:", 3) == 0) in ExpandFromContext()
2080 int len = (int)STRLEN(pat) + 20; in ExpandFromContext()
2083 vim_snprintf((char *)tofree, len, "^<SNR>\\d\\+_%s", pat + 3); in ExpandFromContext()
2084 pat = tofree; in ExpandFromContext()
2087 regmatch.regprog = vim_regcomp(pat, magic_isset() ? RE_MAGIC : 0); in ExpandFromContext()
2092 regmatch.rm_ic = ignorecase(pat); in ExpandFromContext()
2297 char_u *pat; in expand_shellcmd() local
2317 pat = vim_strsave(filepat); in expand_shellcmd()
2318 if (pat == NULL) in expand_shellcmd()
2324 for (i = 0; pat[i]; ++i) in expand_shellcmd()
2325 if (pat[i] == '\\' && pat[i + 1] == ' ') in expand_shellcmd()
2326 STRMOVE(pat + i, pat + i + 1); in expand_shellcmd()
2330 if (pat[0] == '.' && (vim_ispathsep(pat[1]) in expand_shellcmd()
2331 || (pat[1] == '.' && vim_ispathsep(pat[2])))) in expand_shellcmd()
2336 if (!mch_isFullName(pat)) in expand_shellcmd()
2380 vim_strncpy(buf + l, pat, MAXPATHL - 1 - l); in expand_shellcmd()
2420 vim_free(pat); in expand_shellcmd()
2443 char_u *pat = NULL; in call_user_expand_func() local
2457 pat = vim_strnsave(xp->xp_pattern, xp->xp_pattern_len); in call_user_expand_func()
2460 args[0].vval.v_string = pat; in call_user_expand_func()
2475 vim_free(pat); in call_user_expand_func()
2890 char_u *pat; in f_getcompletion() local
2961 pat = addstar(xpc.xp_pattern, xpc.xp_pattern_len, xpc.xp_context); in f_getcompletion()
2962 if ((rettv_list_alloc(rettv) != FAIL) && (pat != NULL)) in f_getcompletion()
2966 ExpandOne(&xpc, pat, NULL, options, WILD_ALL_KEEP); in f_getcompletion()
2971 vim_free(pat); in f_getcompletion()