| /freebsd-12.1/contrib/llvm/lib/Support/ |
| H A D | Regex.cpp | 77 unsigned nmatch = Matches ? preg->re_nsub+1 : 0; in match() local 81 pm.resize(nmatch > 0 ? nmatch : 1); in match() 85 int rc = llvm_regexec(preg, String.data(), nmatch, pm.data(), REG_STARTEND); in match() 100 for (unsigned i = 0; i != nmatch; ++i) { in match()
|
| H A D | regexec.c | 141 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()
|
| H A D | regengine.inc | 131 matcher(struct re_guts *g, const char *string, size_t nmatch, 147 nmatch = 0; 192 if (nmatch == 0 && !g->backrefs) 205 if (nmatch == 1 && !g->backrefs) 268 if (nmatch > 0) { 272 if (nmatch > 1) { 274 for (i = 1; i < nmatch; i++)
|
| /freebsd-12.1/libexec/bootpd/ |
| H A D | getif.c | 39 static int nmatch(u_char *ca, u_char *cb); 89 m = nmatch((u_char *)addrp, (u_char *)&(sip->sin_addr)); 113 nmatch(ca, cb) in nmatch() function
|
| /freebsd-12.1/lib/libc/regex/ |
| H A D | regexec.c | 211 size_t nmatch, in regexec() argument 230 return(mmatcher(g, string, nmatch, pmatch, eflags)); in regexec() 232 return(smatcher(g, string, nmatch, pmatch, eflags)); in regexec() 234 return(lmatcher(g, string, nmatch, pmatch, eflags)); in regexec()
|
| H A D | engine.c | 108 static int matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int e… 188 size_t nmatch, in matcher() argument 211 nmatch = 0; in matcher() 304 if (nmatch == 0 && !g->backrefs) in matcher() 318 if (nmatch == 1 && !g->backrefs) in matcher() 382 if (nmatch > 0) { in matcher() 386 if (nmatch > 1) { in matcher() 388 for (i = 1; i < nmatch; i++) in matcher()
|
| /freebsd-12.1/contrib/libgnuregex/ |
| H A D | regexec.c | 41 size_t nmatch, regmatch_t pmatch[], 223 size_t nmatch; 633 size_t nmatch; 656 extra_nmatch = (nmatch > preg->re_nsub) ? nmatch - (preg->re_nsub + 1) : 0; 657 nmatch -= extra_nmatch; 702 if (nmatch > 1 || dfa->has_mb_node) 884 if (nmatch > 0) 1427 assert (nmatch > 1); in set_regs() 1469 if (reg_idx == nmatch) in set_regs() 1548 if (reg_num < nmatch) in update_regs() [all …]
|
| /freebsd-12.1/contrib/nvi/regex/ |
| H A D | regexec.c | 152 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()
|
| H A D | engine.c | 91 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-12.1/contrib/flex/ |
| H A D | scanopt.c | 650 int nmatch = 0, lastr_val = 0, i; local 670 nmatch++; 675 nmatch = 1; 682 s->options[i].r_val) nmatch--; 688 nmatch++; 694 if (nmatch == 0) { 698 else if (nmatch > 1) {
|
| /freebsd-12.1/usr.bin/grep/ |
| H A D | util.c | 75 size_t nmatch, regmatch_t pmatch[]); 397 litexec(const struct pat *pat, const char *string, size_t nmatch, in litexec() argument 430 if (nmatch > 0) { in litexec() 433 if (++idx == nmatch) in litexec() 441 if (n > 0 && nmatch > 0) in litexec() 442 for (n = idx; n < nmatch; ++n) in litexec()
|
| /freebsd-12.1/usr.bin/sort/ |
| H A D | sort.c | 631 size_t len, nmatch; in parse_pos() local 635 nmatch = 4; in parse_pos() 641 if (regexec(&re, s, nmatch, pmatch, 0) != 0) in parse_pos() 787 size_t len, nmatch; in parse_pos_obs() local 790 nmatch = 4; in parse_pos_obs() 797 if (regexec(&re, s, nmatch, pmatch, 0) != 0) in parse_pos_obs()
|
| /freebsd-12.1/lib/libiconv_modules/ISO2022/ |
| H A D | citrus_iso2022.c | 584 int i, cur, nmatch; in _ISO2022_sgetwchar() local 616 nmatch = seqmatch(string, n, sp); in _ISO2022_sgetwchar() 617 if (sp->len == nmatch && n >= (size_t)(sp->len)) in _ISO2022_sgetwchar() 692 nmatch = seqmatch(string, n, sp); in _ISO2022_sgetwchar() 693 if (!nmatch) in _ISO2022_sgetwchar() 701 if ((size_t)(nmatch) == n) { in _ISO2022_sgetwchar() 707 if (nmatch == sp->len) { in _ISO2022_sgetwchar()
|
| /freebsd-12.1/crypto/openssl/ssl/ |
| H A D | t1_lib.c | 282 uint16_t tls1_shared_group(SSL *s, int nmatch) in tls1_shared_group() argument 291 if (nmatch == -2) { in tls1_shared_group() 307 nmatch = 0; in tls1_shared_group() 327 if (nmatch == k) in tls1_shared_group() 331 if (nmatch == -1) in tls1_shared_group() 1699 size_t i, j, nmatch = 0; in tls12_shared_sigalgs() local 1708 nmatch++; in tls12_shared_sigalgs() 1715 return nmatch; in tls12_shared_sigalgs() 1723 size_t nmatch; in tls1_set_shared_sigalgs() local 1752 if (nmatch) { in tls1_set_shared_sigalgs() [all …]
|
| /freebsd-12.1/sbin/pfctl/ |
| H A D | pfctl_table.c | 137 int rv = 0, flags = 0, nmatch = 0; in pfctl_table() local 334 &nmatch, flags)); in pfctl_table() 335 xprintf(opts, "%d/%d addresses match", nmatch, b.pfrb_size); in pfctl_table() 348 if (nmatch < b.pfrb_size) in pfctl_table()
|
| H A D | pfctl_radix.c | 330 int *nmatch, int flags) in pfr_tst_addrs() argument 346 if (nmatch) in pfr_tst_addrs() 347 *nmatch = io.pfrio_nmatch; in pfr_tst_addrs()
|
| /freebsd-12.1/contrib/file/src/ |
| H A D | funcs.c | 522 file_regexec(file_regex_t *rx, const char *str, size_t nmatch, in file_regexec() argument 527 memset(pmatch, 0, nmatch * sizeof(*pmatch)); in file_regexec() 528 return regexec(&rx->rx, str, nmatch, pmatch, eflags); in file_regexec()
|
| /freebsd-12.1/contrib/diff/src/ |
| H A D | analyze.c | 429 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-12.1/contrib/ntp/ntpdc/ |
| H A D | ntpdc.c | 1314 int nmatch; in findcmd() local 1319 nmatch = 0; in findcmd() 1342 nmatch++; in findcmd() 1360 if (nmatch == 1) { in findcmd() 1364 return nmatch; in findcmd()
|
| /freebsd-12.1/contrib/gcc/ |
| H A D | cfgcleanup.c | 1602 int nmatch; in try_crossjump_to_edge() local 1660 nmatch = flow_find_cross_jump (mode, src1, src2, &newpos1, &newpos2); in try_crossjump_to_edge() 1666 if ((nmatch < PARAM_VALUE (PARAM_MIN_CROSSJUMP_INSNS)) in try_crossjump_to_edge() 1725 src2->index, nmatch); in try_crossjump_to_edge() 1732 src1->index, src2->index, nmatch); in try_crossjump_to_edge()
|
| /freebsd-12.1/usr.sbin/ppp/ |
| H A D | command.c | 1040 int nmatch; in FindCommand() local 1046 nmatch = 0; in FindCommand() 1053 nmatch++; in FindCommand() 1060 nmatch++; in FindCommand() 1065 *pmatch = nmatch; in FindCommand() 1094 int nmatch; in FindExec() local 1098 cmd = FindCommand(cmds, argv[argn], &nmatch); in FindExec() 1099 if (nmatch > 1) in FindExec()
|
| /freebsd-12.1/contrib/ntp/ntpq/ |
| H A D | ntpq.c | 1873 int nmatch; in findcmd() local 1878 nmatch = 0; in findcmd() 1901 nmatch++; in findcmd() 1919 if (nmatch == 1) { in findcmd() 1923 return nmatch; in findcmd()
|
| /freebsd-12.1/contrib/gcclibs/libiberty/ |
| H A D | regex.c | 8002 regexec (const regex_t *preg, const char *string, size_t nmatch, 8009 boolean want_reg_info = !preg->no_sub && nmatch > 0; 8023 regs.num_regs = nmatch; 8024 regs.start = TALLOC (nmatch * 2, regoff_t); 8027 regs.end = regs.start + nmatch; 8042 for (r = 0; r < nmatch; r++)
|
| /freebsd-12.1/contrib/binutils/libiberty/ |
| H A D | regex.c | 8002 regexec (const regex_t *preg, const char *string, size_t nmatch, 8009 boolean want_reg_info = !preg->no_sub && nmatch > 0; 8023 regs.num_regs = nmatch; 8024 regs.start = TALLOC (nmatch * 2, regoff_t); 8027 regs.end = regs.start + nmatch; 8042 for (r = 0; r < nmatch; r++)
|
| /freebsd-12.1/sys/netpfil/pf/ |
| H A D | pf_table.c | 512 int *nmatch, int flags) in pfr_tst_addrs() argument 541 if (nmatch != NULL) in pfr_tst_addrs() 542 *nmatch = xmatch; in pfr_tst_addrs()
|