/freebsd/contrib/nvi/common/ |
H A D | search.c | 37 search_init(SCR *sp, dir_t dir, CHAR_T *ptrn, size_t plen, CHAR_T **epp, in search_init() argument 64 if (ptrn == NULL) in search_init() 68 *epp = ptrn + 1; in search_init() 71 if (ptrn[0] == ptrn[1]) { in search_init() 73 *epp = ptrn + 2; in search_init() 100 for (delim = *ptrn, p = t = ++ptrn;; *t++ = *p++) { in search_init() 119 plen = t - ptrn; in search_init() 123 if (re_compile(sp, ptrn, plen, &sp->re, &sp->re_len, &sp->re_c, in search_init() 145 f_search(SCR *sp, MARK *fm, MARK *rm, CHAR_T *ptrn, size_t plen, in f_search() argument 155 if (search_init(sp, FORWARD, ptrn, plen, eptrn, flags)) in f_search() [all …]
|
/freebsd/contrib/nvi/ex/ |
H A D | ex_subst.c | 53 CHAR_T *bp, *p, *ptrn, *rep, *t; in ex_s() local 106 for (ptrn = t = p;;) { in ex_s() 131 if (*ptrn == '\0') { in ex_s() 151 if (re_compile(sp, ptrn, t - ptrn, &sp->re, in ex_s() 154 if (re_compile(sp, ptrn, t - ptrn, &sp->subre, in ex_s() 882 re_compile(SCR *sp, CHAR_T *ptrn, size_t plen, CHAR_T **ptrnp, size_t *lenp, regex_t *rep, u_int fl… in re_compile() argument 896 for (p = ptrn, len = plen; len > 0; ++p, --len) in re_compile() 922 if (re_cscope_conv(sp, &ptrn, &plen, &replaced)) in re_compile() 932 if (re_tag_conv(sp, &ptrn, &plen, &replaced)) in re_compile() 935 if (re_conv(sp, &ptrn, &plen, &replaced)) in re_compile() [all …]
|
H A D | ex_global.c | 63 CHAR_T *ptrn, *p, *t; in ex_g_setup() local 103 for (ptrn = t = p;;) { in ex_g_setup() 125 if (*ptrn == '\0') { in ex_g_setup() 138 if (re_compile(sp, ptrn, t - ptrn, &sp->re, in ex_g_setup()
|
/freebsd/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_str.cpp | 288 kmp_str_fname_t ptrn; in __kmp_str_fname_match() local 289 __kmp_str_fname_init(&ptrn, pattern); in __kmp_str_fname_match() 290 dir_match = strcmp(ptrn.dir, "*/") == 0 || in __kmp_str_fname_match() 291 (fname->dir != NULL && __kmp_str_eqf(fname->dir, ptrn.dir)); in __kmp_str_fname_match() 292 base_match = strcmp(ptrn.base, "*") == 0 || in __kmp_str_fname_match() 293 (fname->base != NULL && __kmp_str_eqf(fname->base, ptrn.base)); in __kmp_str_fname_match() 294 __kmp_str_fname_free(&ptrn); in __kmp_str_fname_match()
|
/freebsd/contrib/nvi/vi/ |
H A D | v_search.c | 389 v_search(SCR *sp, VICMD *vp, CHAR_T *ptrn, size_t plen, u_int flags, dir_t dir) in v_search() argument 408 &vp->m_start, &vp->m_stop, ptrn, plen, NULL, flags)) in v_search() 413 &vp->m_start, &vp->m_stop, ptrn, plen, NULL, flags)) in v_search()
|