Home
last modified time | relevance | path

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

12

/dragonfly/contrib/tre/lib/
H A Dregexec.c148 tre_fill_pmatch(size_t nmatch, regmatch_t pmatch[], int cflags, in tre_fill_pmatch() argument
181 while (i < tnfa->num_submatches && i < nmatch) in tre_fill_pmatch()
208 while (i < nmatch) in tre_fill_pmatch()
241 tre_str_type_t type, size_t nmatch, regmatch_t pmatch[], in tre_match() argument
248 if (tnfa->num_tags > 0 && nmatch > 0) in tre_match()
309 (eflags & REG_STARTEND) && pmatch && nmatch > 0) in tre_match()
313 for (i = nmatch, p = pmatch; i > 0; p++, i--) in tre_match()
329 size_t nmatch, regmatch_t pmatch[], int eflags) in tre_regnexec() argument
353 size_t nmatch, regmatch_t pmatch[], int eflags) in tre_regwnexec() argument
366 size_t nmatch, regmatch_t pmatch[], int eflags) in tre_regwexec() argument
[all …]
H A Dtre-internal.h346 tre_fill_pmatch(size_t nmatch, regmatch_t pmatch[], int cflags,
/dragonfly/tools/regression/lib/libc-regex/
H A Dtestregex.c862 for (; nmatch > nsub + 1; nmatch--) in matchprint()
863 … ((match[nmatch-1].rm_so != -1 || match[nmatch-1].rm_eo != -1) && (!(test & TEST_IGNORE_POSITION) … in matchprint()
865 for (i = 0; i < nmatch; i++) in matchprint()
957 for (; i < nmatch; i++) in matchcheck()
1222 int nmatch; in main() local
1532 nmatch = 20; in main()
1538 nmatch = strtol(p, &p, 10); in main()
1539 if (nmatch >= elementsof(match)) in main()
1973 if ((j = nmatch) > sizeof(buf)) in main()
2021 if (nmatch > nsub) in main()
[all …]
H A DREADME96 number use number for nmatch (20 by default)
109 each test. All array elements from 0 to nmatch-1 must be specified
/dragonfly/lib/libc/tre-regex/
H A Dregex.h115 size_t nmatch; /* Length of pmatch[] array. */ member
172 size_t nmatch, regmatch_t pmatch[__restrict_arr], int eflags);
187 size_t nmatch, regmatch_t pmatch[], int eflags);
196 size_t nmatch, regmatch_t pmatch[], int eflags);
203 size_t nmatch, regmatch_t pmatch[], int eflags);
/dragonfly/libexec/bootpd/
H A Dgetif.c39 static int nmatch();
92 m = nmatch(addrp, &(sip->sin_addr)); in getif()
118 nmatch(u_char *ca, u_char *cb) in nmatch() function
/dragonfly/contrib/cvs-1.12/lib/
H A Dregexec.c41 size_t nmatch, regmatch_t pmatch[],
639 extra_nmatch = (nmatch > preg->re_nsub) ? nmatch - (preg->re_nsub + 1) : 0; in re_search_internal()
640 nmatch -= extra_nmatch; in re_search_internal()
686 if (nmatch > 1 || dfa->has_mb_node) in re_search_internal()
861 if (nmatch > 0) in re_search_internal()
910 pmatch[nmatch + reg_idx].rm_so = -1; in re_search_internal()
911 pmatch[nmatch + reg_idx].rm_eo = -1; in re_search_internal()
1395 assert (nmatch > 1); in set_regs()
1442 if (reg_idx == nmatch) in set_regs()
1521 if (reg_num < nmatch) in update_regs()
[all …]
/dragonfly/contrib/diffutils/lib/
H A Dregexec.c37 size_t nmatch, regmatch_t pmatch[],
59 Idx cur_idx, Idx nmatch);
615 extra_nmatch = (nmatch > preg->re_nsub) ? nmatch - (preg->re_nsub + 1) : 0; in re_search_internal()
616 nmatch -= extra_nmatch; in re_search_internal()
663 if (nmatch > 1 || dfa->has_mb_node) in re_search_internal()
847 if (nmatch > 0) in re_search_internal()
862 if (!preg->no_sub && nmatch > 1) in re_search_internal()
1391 assert (nmatch > 1); in set_regs()
1433 if (reg_idx == nmatch) in set_regs()
1510 if (reg_num < nmatch) in update_regs()
[all …]
/dragonfly/contrib/grep/lib/
H A Dregexec.c37 size_t nmatch, regmatch_t pmatch[],
59 Idx cur_idx, Idx nmatch);
606 extra_nmatch = (nmatch > preg->re_nsub) ? nmatch - (preg->re_nsub + 1) : 0; in re_search_internal()
607 nmatch -= extra_nmatch; in re_search_internal()
652 if (nmatch > 1 || dfa->has_mb_node) in re_search_internal()
832 if (nmatch > 0) in re_search_internal()
847 if (!preg->no_sub && nmatch > 1) in re_search_internal()
1376 DEBUG_ASSERT (nmatch > 1); in set_regs()
1417 if (reg_idx == nmatch) in set_regs()
1494 if (reg_num < nmatch) in update_regs()
[all …]
/dragonfly/contrib/flex/src/
H A Dscanopt.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()
/dragonfly/contrib/nvi2/regex/
H A Dregexec.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()
H A Dengine.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()
/dragonfly/lib/i18n_module/ISO2022/
H A Dcitrus_iso2022.c582 int i, cur, nmatch; in _ISO2022_sgetwchar() local
614 nmatch = seqmatch(string, n, sp); in _ISO2022_sgetwchar()
615 if (sp->len == nmatch && n >= (size_t)(sp->len)) in _ISO2022_sgetwchar()
690 nmatch = seqmatch(string, n, sp); in _ISO2022_sgetwchar()
691 if (!nmatch) in _ISO2022_sgetwchar()
699 if ((size_t)(nmatch) == n) { in _ISO2022_sgetwchar()
705 if (nmatch == sp->len) { in _ISO2022_sgetwchar()
/dragonfly/contrib/diffutils/src/
H A Danalyze.c104 lin nmatch; in discard_confusing_lines() local
107 nmatch = counts[equivs[i]]; in discard_confusing_lines()
108 if (nmatch == 0) in discard_confusing_lines()
110 else if (nmatch > many) in discard_confusing_lines()
/dragonfly/usr.bin/sort/
H A Dsort.c652 size_t len, nmatch; in parse_pos() local
656 nmatch = 4; in parse_pos()
662 if (regexec(&re, s, nmatch, pmatch, 0) != 0) in parse_pos()
808 size_t len, nmatch; in parse_pos_obs() local
811 nmatch = 4; in parse_pos_obs()
818 if (regexec(&re, s, nmatch, pmatch, 0) != 0) in parse_pos_obs()
/dragonfly/usr.sbin/pfctl/
H A Dpfctl_table.c133 int rv = 0, flags = 0, nmatch = 0; in pfctl_table() local
330 &nmatch, flags)); in pfctl_table()
331 xprintf(opts, "%d/%d addresses match", nmatch, b.pfrb_size); in pfctl_table()
344 if (nmatch < b.pfrb_size) in pfctl_table()
H A Dpfctl_radix.c325 int *nmatch, int flags) in pfr_tst_addrs() argument
341 if (nmatch) in pfr_tst_addrs()
342 *nmatch = io.pfrio_nmatch; in pfr_tst_addrs()
/dragonfly/contrib/file/src/
H A Dfuncs.c692 const char *str, size_t nmatch, regmatch_t* pmatch, int eflags) in file_regexec() argument
704 if (nmatch != 0) in file_regexec()
705 memset(pmatch, 0, nmatch * sizeof(*pmatch)); in file_regexec()
706 rc = regexec(rx, str, nmatch, pmatch, eflags); in file_regexec()
/dragonfly/contrib/gcc-4.7/gcc/
H A Dcfgcleanup.c1843 int nmatch; in try_crossjump_to_edge() local
1902 nmatch = flow_find_cross_jump (src1, src2, &newpos1, &newpos2, &dir); in try_crossjump_to_edge()
1925 if ((nmatch < PARAM_VALUE (PARAM_MIN_CROSSJUMP_INSNS)) in try_crossjump_to_edge()
1988 src2->index, nmatch); in try_crossjump_to_edge()
1995 src1->index, src2->index, nmatch); in try_crossjump_to_edge()
2350 int nmatch; in try_head_merge_bb() local
2352 nmatch = flow_find_head_matching_sequence (e0->dest, e->dest, in try_head_merge_bb()
2354 if (nmatch == 0) in try_head_merge_bb()
2357 if (nmatch < max_match) in try_head_merge_bb()
2359 max_match = nmatch; in try_head_merge_bb()
/dragonfly/contrib/cvs-1.12/diff/
H A Danalyze.c463 int nmatch; local
466 nmatch = counts[equivs[i]];
467 if (nmatch == 0)
469 else if (nmatch > many)
/dragonfly/contrib/gcc-8.0/gcc/
H A Dcfgcleanup.c1930 int nmatch; in try_crossjump_to_edge() local
1983 nmatch = flow_find_cross_jump (src1, src2, &newpos1, &newpos2, &dir); in try_crossjump_to_edge()
2009 if ((nmatch < PARAM_VALUE (PARAM_MIN_CROSSJUMP_INSNS)) in try_crossjump_to_edge()
2068 src2->index, nmatch); in try_crossjump_to_edge()
2075 src1->index, src2->index, nmatch); in try_crossjump_to_edge()
2407 int nmatch; in try_head_merge_bb() local
2409 nmatch = flow_find_head_matching_sequence (e0->dest, e->dest, in try_head_merge_bb()
2411 if (nmatch == 0) in try_head_merge_bb()
2414 if (nmatch < max_match) in try_head_merge_bb()
2416 max_match = nmatch; in try_head_merge_bb()
/dragonfly/contrib/gdb-7/readline/
H A Dcomplete.c1305 int nmatch, i; local
1328 for (nmatch = 1; matches[nmatch]; nmatch++)
1342 if (i > 1 && i < nmatch)
/dragonfly/usr.sbin/ppp/
H A Dcommand.c1006 int nmatch; in FindCommand() local
1012 nmatch = 0; in FindCommand()
1019 nmatch++; in FindCommand()
1026 nmatch++; in FindCommand()
1031 *pmatch = nmatch; in FindCommand()
1060 int nmatch; in FindExec() local
1064 cmd = FindCommand(cmds, argv[argn], &nmatch); in FindExec()
1065 if (nmatch > 1) in FindExec()
/dragonfly/contrib/binutils-2.27/libiberty/
H A Dregex.c8007 regexec (const regex_t *preg, const char *string, size_t nmatch,
8014 boolean want_reg_info = !preg->no_sub && nmatch > 0;
8028 regs.num_regs = nmatch;
8029 regs.start = TALLOC (nmatch * 2, regoff_t);
8032 regs.end = regs.start + nmatch;
8047 for (r = 0; r < nmatch; r++)
/dragonfly/contrib/gdb-7/libiberty/
H A Dregex.c8007 regexec (const regex_t *preg, const char *string, size_t nmatch,
8014 boolean want_reg_info = !preg->no_sub && nmatch > 0;
8028 regs.num_regs = nmatch;
8029 regs.start = TALLOC (nmatch * 2, regoff_t);
8032 regs.end = regs.start + nmatch;
8047 for (r = 0; r < nmatch; r++)

12