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

/illumos-gate/usr/src/lib/libast/common/regex/
H A Dregexec.c36 regexec(const regex_t* p, const char* s, size_t nmatch, regmatch_t* match, regflags_t flags) argument
44 if (!(r = regnexec(p, s + m, match->rm_eo - m, nmatch, match, flags)) && m > 0)
45 for (e = match + nmatch; match < e; match++)
53 return regnexec(p, s, s ? strlen(s) : 0, nmatch, match, flags);
H A Dregsub.c35 subold(register Sfio_t* dp, const char* op, register const char* sp, size_t nmatch, register regmatch_t* match, register regflags_t flags, int sre) argument
208 if (c >= nmatch)
242 regsub(const regex_t* p, Sfio_t* dp, const char* op, const char* sp, size_t nmatch, regmatch_t* match, regflags_t flags) argument
248 if ((p->env->flags & REG_NOSUB) || !nmatch)
260 if (r = subold(dp, op, sp, nmatch, match, flags, sre))
264 } while ((m > 0 || (flags & REG_SUB_ALL)) && !(r = regexec(p, op, nmatch, match, p->env->flags|(match->rm_so == match->rm_eo ? REG_ADVANCE : 0))));
H A Dregsubexec.c71 sub(const regex_t* p, register regsub_t* b, const char* ss, register regsubop_t* op, size_t nmatch, register regmatch_t* match) argument
84 if (op->off >= nmatch)
148 regsubexec(const regex_t* p, const char* s, size_t nmatch, regmatch_t* match) argument
155 if (!p->env->sub || (p->env->flags & REG_NOSUB) || !nmatch)
169 if (!c && (c = sub(p, b, s, b->re_ops, nmatch, match)))
175 if (c = regnexec(p, s, e - s, nmatch, match, p->env->flags|(match->rm_so == match->rm_eo ? REG_ADVANCE : 0)))
H A Dregrexec.c36 regrexec(const regex_t* p, const char* s, size_t len, size_t nmatch, regmatch_t* match, regflags_t flags, int sep, void* handle, regrecord_t record) argument
68 complete = e->re.bm.complete && !nmatch;
109 if (complete || (env->rex = ((r - l) > 128) ? e : e->next) && !(n = regnexec(p, (char*)l, r - l, nmatch, match, flags)))
H A Dregnexec.c1846 regnexec(const regex_t* p, const char* s, size_t len, size_t nmatch, regmatch_t* match, regflags_t flags) argument
1858 DEBUG_TEST(0x0001,(sfprintf(sfstdout, "AHA#%04d 0x%04x regnexec %d 0x%08x `%-.*s'\n", __LINE__, debug_flag, nmatch, flags, len, s)),(0));
1875 if (env->stack = env->hard || !(env->flags & REG_NOSUB) && nmatch)
1994 for (i = j = m = 0; j < nmatch; i++)
/illumos-gate/usr/src/lib/libast/common/string/
H A Dstrmatch.c64 int nmatch; member in struct:State_s
126 if (n > matchstate.nmatch)
130 matchstate.nmatch = n;
/illumos-gate/usr/src/lib/libtecla/common/
H A Dcplmatch.c189 cpl->result.nmatch = 0;
316 if(cpl->result.nmatch+1 > cpl->matches_dim) {
348 match = cpl->result.matches + cpl->result.nmatch++;
367 qsort(cpl->result.matches, cpl->result.nmatch,
396 qsort(cpl->result.matches, cpl->result.nmatch,
441 if(result->nmatch < 1)
454 last = result->matches[result->nmatch - 1].suffix;
500 cpl->result.nmatch = 0;
583 if(cpl->result.nmatch > 1)
658 if(write_fn && result && result->nmatch>
975 int nmatch; /* The number of elements in matches[] */ local
[all...]
H A Dkeytab.h132 int nc, KeySym **matches, int *nmatch);
H A Dkeytab.c468 * can be found in (*matches)[0..nmatch-1], unless
471 * nmatch int The number of ambiguously matching symbols. This
483 int nc, KeySym **matches, int *nmatch)
491 if(!kt || !binary_keyseq || !matches || !nmatch || nc < 0) {
510 *nmatch = last - first + 1;
514 *nmatch = 0;
482 _kt_lookup_keybinding(KeyTab *kt, const char *binary_keyseq, int nc, KeySym **matches, int *nmatch) argument
H A Dgetline.c5510 } else if(matches->nmatch >= 1) {
5514 if(matches->nmatch > 1 && gl->echo) {
5529 if(matches->nmatch==1 && cont_len > 0 &&
6143 } else if(matches->nmatch > 0 && gl->echo) {
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/
H A Ddoscan.c87 int nmatch = 0, len, inchar, stow, size; local
98 return(nmatch); /* end of format */
120 return(nmatch); /* failed to match input */
186 nmatch += stow;
188 return((flag_eof && !nmatch) ? EOF : nmatch);
192 return (nmatch != 0 ? nmatch : EOF); /* end of input */
/illumos-gate/usr/src/common/mdesc/
H A Dmdesc_diff.c108 int nmatch = 0; local
214 mde_match1_scr[nmatch] = md1nodesp[idx];
215 mde_match2_scr[nmatch] = md2nodesp[match];
216 nmatch++;
254 if (nmatch) {
255 int matchsz = sizeof (mde_cookie_t) * nmatch;
263 diff_res->match1.nelem = nmatch;
264 diff_res->match2.nelem = nmatch;
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dregexec.c199 const char *_RESTRICT_KYWD string, size_t nmatch,
221 return (mmatcher(g, (char *)string, nmatch, pmatch, eflags));
227 return (smatcher(g, (char *)string, nmatch, pmatch, eflags));
229 return (lmatcher(g, (char *)string, nmatch, pmatch, eflags));
198 regexec(const regex_t *_RESTRICT_KYWD preg, const char *_RESTRICT_KYWD string, size_t nmatch, regmatch_t pmatch[_RESTRICT_KYWD], int eflags) argument
H A Dengine.c152 size_t nmatch,
175 nmatch = 0;
267 if (nmatch == 0 && !g->backrefs)
281 if (nmatch == 1 && !g->backrefs)
346 if (nmatch > 0) {
350 if (nmatch > 1) {
352 for (i = 1; i < nmatch; i++)
150 matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags) argument
/illumos-gate/usr/src/cmd/expr/
H A Dexpr.c401 int nmatch; /* number of matched bytes */ local
435 nmatch = loc2 - s;
436 if (nmatch > ((sizeof (tempbuf) / sizeof (char)) - 1)) {
437 tmptr1 = exprmalloc(nmatch + 1);
442 memcpy(tmptr, s, nmatch);
443 *(tmptr + nmatch) = '\0';
/illumos-gate/usr/src/lib/librstp/common/
H A Dport.c208 int nmatch = 0; local
221 nmatch++;
225 if (nmatch == 0) {
/illumos-gate/usr/src/uts/sun4v/io/
H A Dmdeg.c46 mdeg_node_match_t *nmatch; /* node match filter */ member in struct:mdeg_clnt
361 nname = md_find_name(mdp, clnt->nmatch->namep);
444 clnt->nmatch = nmatchp;
624 md_curr_start, clnt->nmatch->namep, clnt->nmatch->matchp);
845 * nmatch=vport:{reg}
903 if (clnt->nmatch) {
904 mdeg_match_str(clnt->nmatch, str, MAX_FIELD_STR);
905 MDEG_DBG(" nmatch=%s\n", str);
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Ddoscan.c136 int nmatch = 0, len, stow; local
139 int nmatch = 0, len, inchar, stow, size;
193 return (nmatch); /* end of format */
220 return (nmatch); /* failed to match input */
248 return (nmatch); /* failed to match input */
584 nmatch += stow;
586 return ((flag_eof && !nmatch) ? EOF : nmatch);
592 return (nmatch != 0 ? nmatch
[all...]
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_misc.c283 int nmatch, err = 0; local
293 nmatch = 0;
321 nmatch++;
327 if (nmatch >= 500)
342 *count += nmatch;
343 if (nmatch >= 500 && err == 0)
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dexpand.c223 register int nmatch=0; local
237 nmatch++;
240 return(nmatch);
H A Dinit.c131 int nmatch; member in struct:match
710 void sh_setmatch(const char *v, int vsize, int nmatch, int match[]) argument
714 if(mp->nmatch = nmatch)
716 memcpy(mp->match,match,nmatch*2*sizeof(match[0]));
717 for(n=match[0],i=1; i < 2*nmatch; i++)
722 for(vsize=0,i=0; i < 2*nmatch; i++)
738 nv_putsub(SH_MATCHNOD, NIL(char*), (nmatch-1)|ARRAY_FILL);
751 if(sub>=mp->nmatch)
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dserver_acl.c207 int t, found, opok, nmatch;
219 nmatch = sscanf(lp, "%s %s %s %[^\n]", acle_principal, acle_ops,
221 if (nmatch >= 2) {
227 (nmatch >= 3) ? strdup(acle_object) : (char *) NULL;
273 if ( nmatch >= 4 ) {
205 int t, found, opok, nmatch; local
/illumos-gate/usr/src/lib/libtecla/
H A Dlibtecla.h1593 /* the sole completion when nmatch==1. */
1596 int nmatch; /* The number of elements in matches[] */ member in struct:__anon4117

Completed in 129 milliseconds