Home
last modified time | relevance | path

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

12

/titanic_41/usr/src/lib/libtecla/common/
H A Dcplmatch.c189 cpl->result.nmatch = 0; in new_WordCompletion()
316 if(cpl->result.nmatch+1 > cpl->matches_dim) { in cpl_add_completion()
348 match = cpl->result.matches + cpl->result.nmatch++; in cpl_add_completion()
367 qsort(cpl->result.matches, cpl->result.nmatch, in cpl_sort_matches()
396 qsort(cpl->result.matches, cpl->result.nmatch, in cpl_sort_suffixes()
441 if(result->nmatch < 1) in cpl_common_suffix()
454 last = result->matches[result->nmatch - 1].suffix; in cpl_common_suffix()
500 cpl->result.nmatch = 0; in cpl_clear_completions()
583 if(cpl->result.nmatch > 1) in cpl_complete_word()
658 if(write_fn && result && result->nmatch>0) { in _cpl_output_completions()
[all …]
H A Dkeytab.c483 int nc, KeySym **matches, int *nmatch) in _kt_lookup_keybinding() argument
491 if(!kt || !binary_keyseq || !matches || !nmatch || nc < 0) { in _kt_lookup_keybinding()
510 *nmatch = last - first + 1; in _kt_lookup_keybinding()
514 *nmatch = 0; in _kt_lookup_keybinding()
H A Dkeytab.h132 int nc, KeySym **matches, int *nmatch);
/titanic_41/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) in regexec() argument
44 if (!(r = regnexec(p, s + m, match->rm_eo - m, nmatch, match, flags)) && m > 0) in regexec()
45 for (e = match + nmatch; match < e; match++) in regexec()
53 return regnexec(p, s, s ? strlen(s) : 0, nmatch, match, flags); in regexec()
H A Dregsub.c35 subold(register Sfio_t* dp, const char* op, register const char* sp, size_t nmatch, register regmat… in subold() argument
208 if (c >= nmatch) in subold()
242 regsub(const regex_t* p, Sfio_t* dp, const char* op, const char* sp, size_t nmatch, regmatch_t* mat… in regsub() argument
248 if ((p->env->flags & REG_NOSUB) || !nmatch) in regsub()
260 if (r = subold(dp, op, sp, nmatch, match, flags, sre)) in regsub()
264 …} while ((m > 0 || (flags & REG_SUB_ALL)) && !(r = regexec(p, op, nmatch, match, p->env->flags|(ma… in regsub()
H A Dregsubexec.c71 sub(const regex_t* p, register regsub_t* b, const char* ss, register regsubop_t* op, size_t nmatch,… in sub() argument
84 if (op->off >= nmatch) in sub()
148 regsubexec(const regex_t* p, const char* s, size_t nmatch, regmatch_t* match) in regsubexec() argument
155 if (!p->env->sub || (p->env->flags & REG_NOSUB) || !nmatch) in regsubexec()
169 if (!c && (c = sub(p, b, s, b->re_ops, nmatch, match))) in regsubexec()
175 …if (c = regnexec(p, s, e - s, nmatch, match, p->env->flags|(match->rm_so == match->rm_eo ? REG_ADV… in regsubexec()
H A Dregrexec.c36 regrexec(const regex_t* p, const char* s, size_t len, size_t nmatch, regmatch_t* match, regflags_t … in regrexec() argument
68 complete = e->re.bm.complete && !nmatch; in regrexec()
109 …>rex = ((r - l) > 128) ? e : e->next) && !(n = regnexec(p, (char*)l, r - l, nmatch, match, flags))) in regrexec()
H A Dregnexec.c1846 regnexec(const regex_t* p, const char* s, size_t len, size_t nmatch, regmatch_t* match, regflags_t … in regnexec() argument
1858 …t, "AHA#%04d 0x%04x regnexec %d 0x%08x `%-.*s'\n", __LINE__, debug_flag, nmatch, flags, len, s)),(… in regnexec()
1875 if (env->stack = env->hard || !(env->flags & REG_NOSUB) && nmatch) in regnexec()
1994 for (i = j = m = 0; j < nmatch; i++) in regnexec()
/titanic_41/usr/src/lib/libbc/libc/stdio/common/
H A Ddoscan.c87 int nmatch = 0, len, inchar, stow, size; in _doscan() local
98 return(nmatch); /* end of format */ in _doscan()
120 return(nmatch); /* failed to match input */ in _doscan()
186 nmatch += stow; in _doscan()
188 return((flag_eof && !nmatch) ? EOF : nmatch); in _doscan()
192 return (nmatch != 0 ? nmatch : EOF); /* end of input */ in _doscan()
/titanic_41/usr/src/lib/libast/common/string/
H A Dstrmatch.c64 int nmatch; member
126 if (n > matchstate.nmatch) in strgrpmatch()
130 matchstate.nmatch = n; in strgrpmatch()
/titanic_41/usr/src/common/mdesc/
H A Dmdesc_diff.c108 int nmatch = 0; in md_diff_init() local
214 mde_match1_scr[nmatch] = md1nodesp[idx]; in md_diff_init()
215 mde_match2_scr[nmatch] = md2nodesp[match]; in md_diff_init()
216 nmatch++; in md_diff_init()
254 if (nmatch) { in md_diff_init()
255 int matchsz = sizeof (mde_cookie_t) * nmatch; in md_diff_init()
263 diff_res->match1.nelem = nmatch; in md_diff_init()
264 diff_res->match2.nelem = nmatch; in md_diff_init()
/titanic_41/usr/src/lib/libc/port/locale/
H A Dregexec.c199 const char *_RESTRICT_KYWD string, size_t nmatch, in regexec() argument
221 return (mmatcher(g, (char *)string, nmatch, pmatch, eflags)); in regexec()
227 return (smatcher(g, (char *)string, nmatch, pmatch, eflags)); in regexec()
229 return (lmatcher(g, (char *)string, nmatch, pmatch, eflags)); in regexec()
H A Dengine.c152 size_t nmatch, in matcher() argument
175 nmatch = 0; in matcher()
267 if (nmatch == 0 && !g->backrefs) in matcher()
281 if (nmatch == 1 && !g->backrefs) in matcher()
346 if (nmatch > 0) { in matcher()
350 if (nmatch > 1) { in matcher()
352 for (i = 1; i < nmatch; i++) in matcher()
/titanic_41/usr/src/cmd/expr/
H A Dexpr.c401 int nmatch; /* number of matched bytes */ in ematch() local
435 nmatch = loc2 - s; in ematch()
436 if (nmatch > ((sizeof (tempbuf) / sizeof (char)) - 1)) { in ematch()
437 tmptr1 = exprmalloc(nmatch + 1); in ematch()
442 memcpy(tmptr, s, nmatch); in ematch()
443 *(tmptr + nmatch) = '\0'; in ematch()
/titanic_41/usr/src/lib/libc/port/stdio/
H A Ddoscan.c136 int nmatch = 0, len, stow; in __wdoscan_u() local
139 int nmatch = 0, len, inchar, stow, size; in __wdoscan_u()
193 return (nmatch); /* end of format */ in __wdoscan_u()
220 return (nmatch); /* failed to match input */ in __wdoscan_u()
248 return (nmatch); /* failed to match input */ in __wdoscan_u()
584 nmatch += stow; in __wdoscan_u()
586 return ((flag_eof && !nmatch) ? EOF : nmatch); in __wdoscan_u()
592 return (nmatch != 0 ? nmatch : EOF); /* end of input */ in __wdoscan_u()
/titanic_41/usr/src/uts/sun4v/io/
H A Dmdeg.c46 mdeg_node_match_t *nmatch; /* node match filter */ member
361 nname = md_find_name(mdp, clnt->nmatch->namep); in mdeg_notify_client_reg()
444 clnt->nmatch = nmatchp; in mdeg_register()
624 md_curr_start, clnt->nmatch->namep, clnt->nmatch->matchp); in mdeg_notify_client()
903 if (clnt->nmatch) { in mdeg_dump_clnt()
904 mdeg_match_str(clnt->nmatch, str, MAX_FIELD_STR); in mdeg_dump_clnt()
/titanic_41/usr/src/lib/librstp/common/
H A Dport.c208 int nmatch = 0; in STP_port_trace_state_machine() local
221 nmatch++; in STP_port_trace_state_machine()
225 if (nmatch == 0) { in STP_port_trace_state_machine()
/titanic_41/usr/src/uts/common/inet/tcp/
H A Dtcp_misc.c283 int nmatch, err = 0; in tcp_ioctl_abort_bucket() local
293 nmatch = 0; in tcp_ioctl_abort_bucket()
321 nmatch++; in tcp_ioctl_abort_bucket()
327 if (nmatch >= 500) in tcp_ioctl_abort_bucket()
342 *count += nmatch; in tcp_ioctl_abort_bucket()
343 if (nmatch >= 500 && err == 0) in tcp_ioctl_abort_bucket()
/titanic_41/usr/src/lib/libshell/common/sh/
H A Dmacro.c1675 int match[2*(MATCH_MAX+1)], nmatch, nmatch_prev, vsize_last; in varsub() local
1686 nmatch = 0; in varsub()
1690 nmatch_prev = nmatch; in varsub()
1692 nmatch=substring(v,pattern,match,flag&STR_MAXIMAL); in varsub()
1694 nmatch=strgrpmatch(v,pattern,match,elementsof(match)/2,flag); in varsub()
1696 sh_setmatch(v,vsize,nmatch,match); in varsub()
1697 if(nmatch) in varsub()
1707 if(nmatch && replen>0 && (match[1] || !nmatch_prev)) in varsub()
1708 mac_substitute(mp,repstr,v,match,nmatch); in varsub()
1709 if(nmatch==0) in varsub()
[all …]
H A Dexpand.c223 register int nmatch=0; in scantree() local
237 nmatch++; in scantree()
240 return(nmatch); in scantree()
H A Dinit.c131 int nmatch; member
710 void sh_setmatch(const char *v, int vsize, int nmatch, int match[]) in sh_setmatch() argument
714 if(mp->nmatch = nmatch) in sh_setmatch()
716 memcpy(mp->match,match,nmatch*2*sizeof(match[0])); in sh_setmatch()
717 for(n=match[0],i=1; i < 2*nmatch; i++) in sh_setmatch()
722 for(vsize=0,i=0; i < 2*nmatch; i++) in sh_setmatch()
738 nv_putsub(SH_MATCHNOD, NIL(char*), (nmatch-1)|ARRAY_FILL); in sh_setmatch()
751 if(sub>=mp->nmatch) in get_match()
/titanic_41/usr/src/lib/krb5/kadm5/srv/
H A Dserver_acl.c205 int t, found, opok, nmatch; local
217 nmatch = sscanf(lp, "%s %s %s %[^\n]", acle_principal, acle_ops,
219 if (nmatch >= 2) {
225 (nmatch >= 3) ? strdup(acle_object) : (char *) NULL;
271 if ( nmatch >= 4 ) {
/titanic_41/usr/src/lib/libtecla/
H A Dlibtecla.h1596 int nmatch; /* The number of elements in matches[] */ member
/titanic_41/usr/src/cmd/sgs/lex/common/
H A Dncform207 fprintf(yyout,"\nmatch ");
H A Dnceucform236 fprintf(yyout,"\nmatch ");

12