/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | regcmp.c | 41 int nsub; member 72 int nsub; in regcmp() local 88 nsub = 0; in regcmp() 139 if (nsub <= j) in regcmp() 141 if (!nsub) in regcmp() 143 nsub = j + 1; in regcmp() 184 if (re->nsub = nsub) in regcmp() 185 memcpy(re->sub, sub, (nsub + 1) * sizeof(sub[0])); in regcmp() 206 for (n = 0; n < re->nsub; n++) in regex() 214 for (n = 0; n < re->nsub; n++) in regex()
|
/illumos-gate/usr/src/test/libc-tests/tests/regex/ |
H A D | testregex.c | 862 for (; nmatch > nsub + 1; nmatch--) in matchprint() 1229 int nsub; in main() local 1539 nsub = -1; in main() 2018 nsub++; in main() 2020 nsub--; in main() 2021 if (nsub >= 0) in main() 2025 if (nmatch > nsub) in main() 2026 nmatch = nsub + 1; in main() 2028 else if (nsub != preg.re_nsub) in main() 2030 if (nsub > preg.re_nsub) in main() [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/awk/tests/ |
H A D | chem.awk | 423 function atom(s, c, i, n, nsub, cloc, nsubc) { # convert CH3 to atom(...) 427 nsub = nsubc = 0 433 nsub++ 441 s, (n-nsub/2)*cwid, textht, (cloc-nsubc/2-0.5)*cwid, crh, crw, dav)
|
/illumos-gate/usr/src/lib/libc/port/regex/ |
H A D | engine.c | 323 m->pmatch = (regmatch_t *)malloc((m->g->nsub + 1) * in matcher() 329 for (i = 1; i <= m->g->nsub; i++) in matcher() 361 for (i = 1; i <= m->g->nsub; i++) { in matcher() 389 if (i <= m->g->nsub) in matcher() 570 assert(0 < i && i <= m->g->nsub); in dissect() 575 assert(0 < i && i <= m->g->nsub); in dissect() 697 assert(0 < i && i <= m->g->nsub); in backref() 756 assert(0 < i && i <= m->g->nsub); in backref() 766 assert(0 < i && i <= m->g->nsub); in backref()
|
H A D | regcomp.c | 303 g->nsub = 0; in regcomp() 333 preg->re_nsub = g->nsub; in regcomp() 371 p->g->nsub++; in p_ere_exp() 372 subno = p->g->nsub; in p_ere_exp() 738 p->g->nsub++; in p_simp_re() 739 subno = p->g->nsub; in p_simp_re() 768 assert(i <= p->g->nsub); in p_simp_re()
|
H A D | regex2.h | 188 size_t nsub; /* copy of re_nsub */ member
|
/illumos-gate/usr/src/cmd/awk/ |
H A D | run.c | 515 size_t tlen = 0, len, nsub; in array() local 526 nsub = strlen(getsval(subseploc)); in array() 532 (void) memcpy(&buf[tlen], *SUBSEP, nsub); in array() 533 tlen += nsub; in array() 562 size_t nsub; in awkdelete() local 592 nsub = strlen(getsval(subseploc)); in awkdelete() 599 tlen += nsub; in awkdelete() 620 size_t nsub; in intest() local 640 nsub = strlen(getsval(subseploc)); in intest() 647 (void) memcpy(&buf[tlen], *SUBSEP, nsub); in intest() [all …]
|
/illumos-gate/usr/src/cmd/awk_xpg4/ |
H A D | awk1.c | 1564 size_t nsub, /* number of subexpressions */ in int_regwexec() argument 1576 if (nsub > 0 && sub) { in int_regwexec() 1577 if ((mbsub = malloc(nsub * sizeof (regmatch_t))) == NULL) in int_regwexec() 1583 i = regexec(&rcp->re, mbs, nsub, mbsub, flags); in int_regwexec() 1586 if (i == REG_OK && nsub > 0 && mbsub) { in int_regwexec() 1589 for (j = 0; j < nsub; j++) { in int_regwexec()
|
/illumos-gate/usr/src/test/util-tests/tests/awk/gnu/ |
H A D | tweakfld.awk | 244 nsub = sub("-", ",", detsys)
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/regex/ |
H A D | regnexec.c | 387 … ");for (i = 0; i <= env->nsub; i++)showmatch(&env->best[i]);sfprintf(sfstdout, "\n new … in _better() 1039 r = env->nsub; in parse() 1877 n = env->nsub; in regnexec() 1951 n = env->nsub; in regnexec() 1965 n = env->nsub; in regnexec()
|
H A D | reglib.h | 541 size_t nsub; /* internal re_nsub */ member
|
H A D | regcomp.c | 3408 p->env->nsub = env.stats.p + env.stats.u; in regcomp()
|