Home
last modified time | relevance | path

Searched refs:nsub (Results 1 – 8 of 8) sorted by relevance

/titanic_41/usr/src/lib/libast/common/comp/
H A Dregcmp.c41 int nsub; member
71 int nsub; in regcmp() local
84 nsub = 0; in regcmp()
135 if (nsub <= j) in regcmp()
137 if (!nsub) in regcmp()
139 nsub = j + 1; in regcmp()
177 if (re->nsub = nsub) in regcmp()
178 memcpy(re->sub, sub, (nsub + 1) * sizeof(sub[0])); in regcmp()
196 for (n = 0; n < re->nsub; n++) in regex()
201 for (n = 0; n < re->nsub; n++) in regex()
/titanic_41/usr/src/lib/libc/port/locale/
H A Dengine.c286 m->pmatch = (regmatch_t *)malloc((m->g->nsub + 1) * in matcher()
292 for (i = 1; i <= m->g->nsub; i++) in matcher()
325 for (i = 1; i <= m->g->nsub; i++) { in matcher()
353 if (i <= m->g->nsub) in matcher()
536 assert(0 < i && i <= m->g->nsub); in dissect()
541 assert(0 < i && i <= m->g->nsub); in dissect()
665 assert(0 < i && i <= m->g->nsub); in backref()
724 assert(0 < i && i <= m->g->nsub); in backref()
734 assert(0 < i && i <= m->g->nsub); in backref()
H A Dregcomp.c227 g->nsub = 0; in regcomp()
259 preg->re_nsub = g->nsub; in regcomp()
340 p->g->nsub++; in p_ere_exp()
341 subno = p->g->nsub; in p_ere_exp()
570 p->g->nsub++; in p_simp_re()
571 subno = p->g->nsub; in p_simp_re()
601 assert(i <= p->g->nsub); in p_simp_re()
H A Dregex2.h185 size_t nsub; /* copy of re_nsub */ member
/titanic_41/usr/src/cmd/awk_xpg4/
H A Dawk1.c1570 size_t nsub, /* number of subexpressions */ in int_regwexec() argument
1582 if (nsub > 0 && sub) { in int_regwexec()
1583 if ((mbsub = malloc(nsub * sizeof (regmatch_t))) == NULL) in int_regwexec()
1589 i = regexec(&rcp->re, mbs, nsub, mbsub, flags); in int_regwexec()
1592 if (i == REG_OK && nsub > 0 && mbsub) { in int_regwexec()
1595 for (j = 0; j < nsub; j++) { in int_regwexec()
/titanic_41/usr/src/lib/libast/common/regex/
H A Dregnexec.c388 … ");for (i = 0; i <= env->nsub; i++)showmatch(&env->best[i]);sfprintf(sfstdout, "\n new … in _better()
1040 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 Dreglib.h541 size_t nsub; /* internal re_nsub */ member
H A Dregcomp.c3363 p->env->nsub = env.stats.p + env.stats.u; in regcomp()