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

12

/freebsd-12-stable/contrib/llvm-project/llvm/lib/Support/
H A DRegex.cpp92 unsigned nmatch = Matches ? preg->re_nsub+1 : 0; local
96 pm.resize(nmatch > 0 ? nmatch : 1);
100 int rc = llvm_regexec(preg, String.data(), nmatch, pm.data(), REG_STARTEND);
117 for (unsigned i = 0; i != nmatch; ++i) {
H A Dregexec.c141 llvm_regexec(const llvm_regex_t *preg, const char *string, size_t nmatch, argument
159 return(smatcher(g, string, nmatch, pmatch, eflags));
161 return(lmatcher(g, string, nmatch, pmatch, eflags));
H A Dregengine.inc131 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-stable/libexec/bootpd/
H A Dgetif.c39 static int nmatch(u_char *ca, u_char *cb);
89 m = nmatch((u_char *)addrp, (u_char *)&(sip->sin_addr));
113 nmatch(ca, cb) function
/freebsd-12-stable/contrib/nvi/regex/
H A Dregexec.c152 regexec(const regex_t *preg, const RCHAR_T *string, size_t nmatch, argument
170 return(smatcher(g, string, nmatch, pmatch, eflags));
172 return(lmatcher(g, string, nmatch, pmatch, eflags));
H A Dengine.c91 static int matcher(struct re_guts *g, const RCHAR_T *string, size_t nmatch, regmatch_t pmatch[], int eflags);
132 matcher(struct re_guts *g, const RCHAR_T *string, size_t nmatch, argument
147 nmatch = 0;
190 if (nmatch == 0 && !g->backrefs)
203 if (nmatch == 1 && !g->backrefs)
265 if (nmatch > 0) {
269 if (nmatch > 1) {
271 for (i = 1; i < nmatch; i++)
/freebsd-12-stable/lib/libc/regex/
H A Dregexec.c211 size_t nmatch,
230 return(mmatcher(g, string, nmatch, pmatch, eflags));
232 return(smatcher(g, string, nmatch, pmatch, eflags));
234 return(lmatcher(g, string, nmatch, pmatch, eflags));
209 regexec(const regex_t * __restrict preg, const char * __restrict string, size_t nmatch, regmatch_t pmatch[__restrict], int eflags) argument
H A Dengine.c108 static int matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags);
188 == size_t nmatch, regmatch_t pmatch[], int eflags);
193 size_t nmatch,
216 nmatch = 0;
309 if (nmatch == 0 && !g->backrefs)
323 if (nmatch == 1 && !g->backrefs)
387 if (nmatch > 0) {
391 if (nmatch > 1) {
393 for (i = 1; i < nmatch; i++)
191 matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags) argument
/freebsd-12-stable/contrib/flex/
H A Dscanopt.c653 int nmatch = 0, lastr_val = 0, i;
673 nmatch++;
678 nmatch = 1;
685 s->options[i].r_val) nmatch--;
691 nmatch++;
697 if (nmatch == 0) {
701 else if (nmatch > 1) {
650 int nmatch = 0, lastr_val = 0, i; local
/freebsd-12-stable/contrib/libgnuregex/
H A Dregexec.c41 size_t nmatch, regmatch_t pmatch[],
63 int cur_idx, int nmatch) internal_function;
71 size_t nmatch, regmatch_t *pmatch,
221 regexec (preg, string, nmatch, pmatch, eflags)
224 size_t nmatch;
252 length, nmatch, pmatch, eflags);
267 const char *__restrict string, size_t nmatch,
270 return regexec (preg, string, nmatch, pmatch,
631 re_search_internal (preg, string, length, start, range, stop, nmatch, pmatch,
636 size_t nmatch;
265 __compat_regexec(const regex_t *__restrict preg, const char *__restrict string, size_t nmatch, regmatch_t pmatch[], int eflags) argument
1415 set_regs(const regex_t *preg, const re_match_context_t *mctx, size_t nmatch, regmatch_t *pmatch, int fl_backtrack) argument
1539 update_regs(const re_dfa_t *dfa, regmatch_t *pmatch, regmatch_t *prev_idx_match, int cur_node, int cur_idx, int nmatch) argument
[all...]
/freebsd-12-stable/usr.bin/grep/
H A Dutil.c75 size_t nmatch, regmatch_t pmatch[]);
416 litexec(const struct pat *pat, const char *string, size_t nmatch, argument
449 if (nmatch > 0) {
452 if (++idx == nmatch)
460 if (n > 0 && nmatch > 0)
461 for (n = idx; n < nmatch; ++n)
/freebsd-12-stable/lib/libiconv_modules/ISO2022/
H A Dcitrus_iso2022.c584 int i, cur, nmatch; local
616 nmatch = seqmatch(string, n, sp);
617 if (sp->len == nmatch && n >= (size_t)(sp->len))
692 nmatch = seqmatch(string, n, sp);
693 if (!nmatch)
701 if ((size_t)(nmatch) == n) {
707 if (nmatch == sp->len) {
/freebsd-12-stable/contrib/file/src/
H A Dfuncs.c654 file_regexec(file_regex_t *rx, const char *str, size_t nmatch, argument
659 if (nmatch != 0)
660 memset(pmatch, 0, nmatch * sizeof(*pmatch));
661 return regexec(&rx->rx, str, nmatch, pmatch, eflags);
/freebsd-12-stable/sbin/pfctl/
H A Dpfctl_table.c137 int rv = 0, flags = 0, nmatch = 0; local
334 &nmatch, flags));
335 xprintf(opts, "%d/%d addresses match", nmatch, b.pfrb_size);
348 if (nmatch < b.pfrb_size)
H A Dpfctl_radix.c330 int *nmatch, int flags)
346 if (nmatch)
347 *nmatch = io.pfrio_nmatch;
329 pfr_tst_addrs(struct pfr_table *tbl, struct pfr_addr *addr, int size, int *nmatch, int flags) argument
/freebsd-12-stable/usr.bin/sort/
H A Dsort.c631 size_t len, nmatch; local
635 nmatch = 4;
641 if (regexec(&re, s, nmatch, pmatch, 0) != 0)
787 size_t len, nmatch; local
790 nmatch = 4;
797 if (regexec(&re, s, nmatch, pmatch, 0) != 0)
/freebsd-12-stable/crypto/openssl/ssl/
H A Dt1_lib.c277 * For nmatch >= 0, return the id of the |nmatch|th shared group or 0
279 * For nmatch == -1, return number of matches
280 * For nmatch == -2, return the id of the group to use for
283 uint16_t tls1_shared_group(SSL *s, int nmatch) argument
292 if (nmatch == -2) {
308 nmatch = 0;
328 if (nmatch == k)
332 if (nmatch == -1)
334 /* Out of range (nmatch >
1730 size_t i, j, nmatch = 0; local
1754 size_t nmatch; local
[all...]
/freebsd-12-stable/contrib/diff/src/
H A Danalyze.c431 lin nmatch;
434 nmatch = counts[equivs[i]];
435 if (nmatch == 0)
437 else if (nmatch > many)
429 lin nmatch; local
/freebsd-12-stable/contrib/ntp/ntpdc/
H A Dntpdc.c1314 int nmatch; local
1319 nmatch = 0;
1342 nmatch++;
1360 if (nmatch == 1) {
1364 return nmatch;
/freebsd-12-stable/contrib/gcc/
H A Dcfgcleanup.c1609 int nmatch;
1667 nmatch = flow_find_cross_jump (mode, src1, src2, &newpos1, &newpos2);
1673 if ((nmatch < PARAM_VALUE (PARAM_MIN_CROSSJUMP_INSNS))
1732 src2->index, nmatch);
1739 src1->index, src2->index, nmatch);
1602 int nmatch; local
/freebsd-12-stable/usr.sbin/ppp/
H A Dcommand.c1040 int nmatch; local
1046 nmatch = 0;
1053 nmatch++;
1060 nmatch++;
1065 *pmatch = nmatch;
1094 int nmatch; local
1098 cmd = FindCommand(cmds, argv[argn], &nmatch);
1099 if (nmatch > 1)
/freebsd-12-stable/contrib/ntp/ntpq/
H A Dntpq.c1873 int nmatch; local
1878 nmatch = 0;
1901 nmatch++;
1919 if (nmatch == 1) {
1923 return nmatch;
/freebsd-12-stable/sys/netpfil/pf/
H A Dpf_table.c516 int *nmatch, int flags)
545 if (nmatch != NULL)
546 *nmatch = xmatch;
515 pfr_tst_addrs(struct pfr_table *tbl, struct pfr_addr *addr, int size, int *nmatch, int flags) argument
/freebsd-12-stable/contrib/gcclibs/libiberty/
H A Dregex.c8023 regexec (const regex_t *preg, const char *string, size_t nmatch,
8030 boolean want_reg_info = !preg->no_sub && nmatch > 0;
8038 information about, via `nmatch'. We have to pass that on to the
8044 regs.num_regs = nmatch;
8045 regs.start = TALLOC (nmatch * 2, regoff_t);
8048 regs.end = regs.start + nmatch;
8063 for (r = 0; r < nmatch; r++)
/freebsd-12-stable/contrib/binutils/libiberty/
H A Dregex.c8023 regexec (const regex_t *preg, const char *string, size_t nmatch,
8030 boolean want_reg_info = !preg->no_sub && nmatch > 0;
8038 information about, via `nmatch'. We have to pass that on to the
8044 regs.num_regs = nmatch;
8045 regs.start = TALLOC (nmatch * 2, regoff_t);
8048 regs.end = regs.start + nmatch;
8063 for (r = 0; r < nmatch; r++)

Completed in 402 milliseconds

12