Home
last modified time | relevance | path

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

/freebsd-14-stable/contrib/llvm-project/llvm/lib/Support/
HDRegex.cpp93 unsigned nmatch = Matches ? preg->re_nsub+1 : 0; in match() local
101 pm.resize(nmatch > 0 ? nmatch : 1); in match()
105 int rc = llvm_regexec(preg, String.data(), nmatch, pm.data(), REG_STARTEND); in match()
122 for (unsigned i = 0; i != nmatch; ++i) { in match()
HDregexec.c141 llvm_regexec(const llvm_regex_t *preg, const char *string, size_t nmatch, in llvm_regexec() argument
159 return(smatcher(g, string, nmatch, pmatch, eflags)); in llvm_regexec()
161 return(lmatcher(g, string, nmatch, pmatch, eflags)); in llvm_regexec()
HDregengine.inc134 matcher(struct re_guts *g, const char *string, size_t nmatch,
150 nmatch = 0;
195 if (nmatch == 0 && !g->backrefs)
208 if (nmatch == 1 && !g->backrefs)
271 if (nmatch > 0) {
275 if (nmatch > 1) {
277 for (i = 1; i < nmatch; i++)
/freebsd-14-stable/libexec/bootpd/
HDgetif.c37 static int nmatch(u_char *ca, u_char *cb);
85 m = nmatch((u_char *)addrp, (u_char *)&(sip->sin_addr)); in getif()
109 nmatch(u_char *ca, u_char *cb) in nmatch() function
/freebsd-14-stable/lib/libc/regex/
HDregexec.c208 size_t nmatch, in regexec() argument
227 return(mmatcher(g, string, nmatch, pmatch, eflags)); in regexec()
229 return(smatcher(g, string, nmatch, pmatch, eflags)); in regexec()
231 return(lmatcher(g, string, nmatch, pmatch, eflags)); in regexec()
HDengine.c105 static int matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int e…
190 size_t nmatch, in matcher() argument
213 nmatch = 0; in matcher()
306 if (nmatch == 0 && !g->backrefs) in matcher()
320 if (nmatch == 1 && !g->backrefs) in matcher()
384 if (nmatch > 0) { in matcher()
388 if (nmatch > 1) { in matcher()
390 for (i = 1; i < nmatch; i++) in matcher()
/freebsd-14-stable/contrib/nvi/regex/
HDregexec.c152 regexec(const regex_t *preg, const RCHAR_T *string, size_t nmatch, in regexec() argument
170 return(smatcher(g, string, nmatch, pmatch, eflags)); in regexec()
172 return(lmatcher(g, string, nmatch, pmatch, eflags)); in regexec()
HDengine.c91 static int matcher(struct re_guts *g, const RCHAR_T *string, size_t nmatch, regmatch_t pmatch[], in…
132 matcher(struct re_guts *g, const RCHAR_T *string, size_t nmatch, in matcher() argument
147 nmatch = 0; in matcher()
190 if (nmatch == 0 && !g->backrefs) in matcher()
203 if (nmatch == 1 && !g->backrefs) in matcher()
265 if (nmatch > 0) { in matcher()
269 if (nmatch > 1) { in matcher()
271 for (i = 1; i < nmatch; i++) in matcher()
/freebsd-14-stable/contrib/flex/src/
HDscanopt.c600 int nmatch = 0, lastr_val = 0, i; in find_opt() local
618 nmatch++; in find_opt()
623 nmatch = 1; in find_opt()
630 s->options[i].r_val) nmatch--; in find_opt()
636 nmatch++; in find_opt()
642 if (nmatch == 0) { in find_opt()
646 else if (nmatch > 1) { in find_opt()
/freebsd-14-stable/usr.bin/grep/
HDutil.c72 size_t nmatch, regmatch_t pmatch[]);
438 litexec(const struct pat *pat, const char *string, size_t nmatch, in litexec() argument
471 if (nmatch > 0) { in litexec()
474 if (++idx == nmatch) in litexec()
482 if (n > 0 && nmatch > 0) in litexec()
483 for (n = idx; n < nmatch; ++n) in litexec()
/freebsd-14-stable/lib/libiconv_modules/ISO2022/
HDcitrus_iso2022.c583 int i, cur, nmatch; in _ISO2022_sgetwchar() local
615 nmatch = seqmatch(string, n, sp); in _ISO2022_sgetwchar()
616 if (sp->len == nmatch && n >= (size_t)(sp->len)) in _ISO2022_sgetwchar()
691 nmatch = seqmatch(string, n, sp); in _ISO2022_sgetwchar()
692 if (!nmatch) in _ISO2022_sgetwchar()
700 if ((size_t)(nmatch) == n) { in _ISO2022_sgetwchar()
706 if (nmatch == sp->len) { in _ISO2022_sgetwchar()
/freebsd-14-stable/usr.bin/sort/
HDsort.c625 size_t len, nmatch; in parse_pos() local
629 nmatch = 4; in parse_pos()
635 if (regexec(&re, s, nmatch, pmatch, 0) != 0) in parse_pos()
781 size_t len, nmatch; in parse_pos_obs() local
784 nmatch = 4; in parse_pos_obs()
791 if (regexec(&re, s, nmatch, pmatch, 0) != 0) in parse_pos_obs()
/freebsd-14-stable/sbin/pfctl/
HDpfctl_radix.c338 int *nmatch, int flags) in pfr_tst_addrs() argument
356 if (nmatch) in pfr_tst_addrs()
357 *nmatch = io.pfrio_nmatch; in pfr_tst_addrs()
HDpfctl_table.c136 int rv = 0, flags = 0, nmatch = 0; in pfctl_table() local
363 &nmatch, flags)); in pfctl_table()
364 xprintf(opts, "%d/%d addresses match", nmatch, b.pfrb_size); in pfctl_table()
377 if (nmatch < b.pfrb_size) in pfctl_table()
/freebsd-14-stable/crypto/openssl/ssl/
HDt1_lib.c599 uint16_t tls1_shared_group(SSL *s, int nmatch) in tls1_shared_group() argument
609 if (nmatch == -2) { in tls1_shared_group()
625 nmatch = 0; in tls1_shared_group()
664 if (nmatch == k) in tls1_shared_group()
668 if (nmatch == -1) in tls1_shared_group()
2211 size_t i, j, nmatch = 0; in tls12_shared_sigalgs() local
2221 nmatch++; in tls12_shared_sigalgs()
2228 return nmatch; in tls12_shared_sigalgs()
2236 size_t nmatch; in tls1_set_shared_sigalgs() local
2264 nmatch = tls12_shared_sigalgs(s, NULL, pref, preflen, allow, allowlen); in tls1_set_shared_sigalgs()
[all …]
HDssl_local.h2656 __owur uint16_t tls1_shared_group(SSL *s, int nmatch);
/freebsd-14-stable/contrib/diff/src/
HDanalyze.c429 lin nmatch; in discard_confusing_lines() local
432 nmatch = counts[equivs[i]]; in discard_confusing_lines()
433 if (nmatch == 0) in discard_confusing_lines()
435 else if (nmatch > many) in discard_confusing_lines()
/freebsd-14-stable/contrib/file/src/
HDfuncs.c755 const char *str, size_t nmatch, regmatch_t* pmatch, int eflags) in file_regexec() argument
767 if (nmatch != 0) in file_regexec()
768 memset(pmatch, 0, nmatch * sizeof(*pmatch)); in file_regexec()
769 rc = regexec(rx, str, nmatch, pmatch, eflags); in file_regexec()
/freebsd-14-stable/contrib/ntp/ntpdc/
HDntpdc.c1332 int nmatch; in findcmd() local
1337 nmatch = 0; in findcmd()
1360 nmatch++; in findcmd()
1378 if (nmatch == 1) { in findcmd()
1382 return nmatch; in findcmd()
/freebsd-14-stable/crypto/openssl/crypto/x509/
HDx509_lu.c730 int i, ok, idx, ret, nmatch = 0; in X509_STORE_CTX_get1_issuer() local
766 idx = x509_object_idx_cnt(store->objs, X509_LU_X509, xn, &nmatch); in X509_STORE_CTX_get1_issuer()
769 for (i = idx; i < idx + nmatch; i++) { in X509_STORE_CTX_get1_issuer()
/freebsd-14-stable/usr.sbin/ppp/
HDcommand.c1038 int nmatch; in FindCommand() local
1044 nmatch = 0; in FindCommand()
1051 nmatch++; in FindCommand()
1058 nmatch++; in FindCommand()
1063 *pmatch = nmatch; in FindCommand()
1092 int nmatch; in FindExec() local
1096 cmd = FindCommand(cmds, argv[argn], &nmatch); in FindExec()
1097 if (nmatch > 1) in FindExec()
/freebsd-14-stable/contrib/ntp/ntpq/
HDntpq.c1918 int nmatch; in findcmd() local
1923 nmatch = 0; in findcmd()
1946 nmatch++; in findcmd()
1964 if (nmatch == 1) { in findcmd()
1968 return nmatch; in findcmd()
/freebsd-14-stable/sys/netpfil/pf/
HDpf_table.c510 int *nmatch, int flags) in pfr_tst_addrs() argument
539 if (nmatch != NULL) in pfr_tst_addrs()
540 *nmatch = xmatch; in pfr_tst_addrs()
/freebsd-14-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
HDsanitizer_common_interceptors.inc7925 INTERCEPTOR(int, regexec, const void *preg, const char *string, SIZE_T nmatch,
7928 COMMON_INTERCEPTOR_ENTER(ctx, regexec, preg, string, nmatch, pmatch, eflags);
7933 int res = REAL(regexec)(preg, string, nmatch, pmatch, eflags);
7935 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, pmatch, nmatch * struct_regmatch_sz);
/freebsd-14-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
HDAArch64SVEInstrInfo.td3747 defm NMATCH_PPzZZ : sve2_char_match<0b1, "nmatch", int_aarch64_sve_nmatch>;