/titanic_51/usr/src/contrib/ast/src/lib/libast/regex/ |
H A D | regexec.c | 36 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() 70 regexec(const regex_t* p, const char* s, size_t nmatch, oldregmatch_t* oldmatch, regflags_t flags) in regexec() argument 78 if (!(match = oldof(0, regmatch_t, nmatch, 0))) in regexec() 80 if (!(r = regexec_20120528(p, s, nmatch, match, flags))) in regexec() 81 for (i = 0; i < nmatch; i++) in regexec()
|
H A D | regsubexec.c | 71 sub(const regex_t* p, register regsub_t* b, const char* ss, register regsubop_t* op, size_t nmatch, register regmatch_t* match) 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_ADVANCE : 0))) in regsubexec() 212 regsubexec(const regex_t* p, const char* s, size_t nmatch, oldregmatch_t* oldmatch) in regsubexec() argument 220 if (!(match = oldof(0, regmatch_t, nmatch, 0))) in regsubexec() 222 for (i = 0; i < nmatch; i++) in regsubexec() 227 if (!(r = regsubexec_20120528(p, s, nmatch, matc in regsubexec() [all...] |
H A D | regrexec.c | 36 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) in regrexec() argument 68 complete = e->re.bm.complete && !nmatch; in regrexec() 109 if (complete || (env->rex = ((r - l) > 128) ? e : e->next) && !(n = regnexec(p, (char*)l, r - l, nmatch, match, flags))) in regrexec() 161 regrexec(const regex_t* p, const char* s, size_t len, size_t nmatch, oldregmatch_t* oldmatch, regflags_t flags, int sep, void* handle, regrecord_t record) in regrexec() argument 169 if (!(match = oldof(0, regmatch_t, nmatch, 0))) in regrexec() 171 if (!(r = regrexec_20120528(p, s, len, nmatch, match, flags, sep, handle, record))) in regrexec() 172 for (i = 0; i < nmatch; i++) in regrexec()
|
H A D | regsub.c | 35 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) 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* match, regflags_t flags) 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|(match->rm_so == match->rm_eo ? REG_ADVANCE : 0)))); in regsub()
|
/titanic_51/usr/src/lib/libtecla/common/ |
H A D | cplmatch.c | 189 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> in _cpl_output_completions() 975 int nmatch; /* The number of elements in matches[] */ cpl_zap_duplicates() local [all...] |
H A D | keytab.c | 468 * 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) 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()
|
/titanic_51/usr/src/lib/libast/common/regex/ |
H A D | regexec.c | 36 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 D | regsub.c | 35 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 D | regsubexec.c | 71 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 D | regrexec.c | 36 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()
|
/titanic_51/usr/src/lib/libbc/libc/stdio/common/ |
H A D | doscan.c | 87 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_51/usr/src/lib/libast/common/string/ |
H A D | strmatch.c | 64 int nmatch; member 126 if (n > matchstate.nmatch) in strgrpmatch() 130 matchstate.nmatch = n; in strgrpmatch()
|
/titanic_51/usr/src/common/mdesc/ |
H A D | mdesc_diff.c | 108 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_51/usr/src/contrib/ast/src/lib/libast/string/ |
H A D | strmatch.c | 64 int nmatch; member 137 if (n > matchstate.nmatch) in strgrpmatch() 141 matchstate.nmatch = n; in strgrpmatch()
|
/titanic_51/usr/src/lib/libc/port/locale/ |
H A D | regexec.c | 199 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()
|
/titanic_51/usr/src/cmd/expr/ |
H A D | expr.c | 401 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_51/usr/src/lib/libc/port/stdio/ |
H A D | doscan.c | 136 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 in __wdoscan_u() [all...] |
/titanic_51/usr/src/uts/sun4v/io/ |
H A D | mdeg.c | 46 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() 845 * nmatch=vport:{reg} 903 if (clnt->nmatch) { in mdeg_dump_clnt() 904 mdeg_match_str(clnt->nmatch, str, MAX_FIELD_STR); in mdeg_dump_clnt() 905 MDEG_DBG(" nmatch=%s\n", str); in mdeg_dump_clnt()
|
/titanic_51/usr/src/lib/librstp/common/ |
H A D | port.c | 208 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_51/usr/src/uts/common/inet/tcp/ |
H A D | tcp_misc.c | 283 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_51/usr/src/lib/libshell/common/sh/ |
H A D | macro.c | 1675 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 D | expand.c | 223 register int nmatch=0; in scantree() local 237 nmatch++; in scantree() 240 return(nmatch); in scantree()
|
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | macro.c | 1804 int nmatch, nmatch_prev, vsize_last; in varsub() local 1816 nmatch = 0; in varsub() 1820 nmatch_prev = nmatch; in varsub() 1822 nmatch=substring(v,pattern,match,flag&STR_MAXIMAL); in varsub() 1824 nmatch=strgrpmatch(v,pattern,match,elementsof(match)/2,flag); in varsub() 1825 if(nmatch && replen>0) in varsub() 1826 sh_setmatch(mp->shp,v,vsize,nmatch,match,index++); in varsub() 1827 if(nmatch) in varsub() 1837 if(nmatch && replen>0 && (match[1] || !nmatch_prev)) in varsub() 1838 mac_substitute(mp,repstr,v,match,nmatch); in varsub() 2513 register int size,len,nmatch,n; substring() local [all...] |
H A D | expand.c | 223 register int nmatch=0; in scantree() local 237 nmatch++; in scantree() 240 return(nmatch); in scantree()
|
H A D | init.c | 176 int nmatch; member 769 void sh_setmatch(Shell_t *shp,const char *v, int vsize, int nmatch, regoff_t match[],int index) in sh_setmatch() argument 802 if(nmatch) in sh_setmatch() 803 nv_putsub(SH_MATCHNOD, NIL(char*), (nmatch-1)|ARRAY_FILL|ARRAY_SETSUB); in sh_setmatch() 805 ap->nelem = mp->nmatch = nmatch; in sh_setmatch() 818 for(i=0; i < mp->nmatch; i++) in sh_setmatch() 824 ap->nelem = mp->nmatch; in sh_setmatch() 831 index *= 2*mp->nmatch; in sh_setmatch() 832 if(mp->nmatch) in sh_setmatch() [all...] |