Home
last modified time | relevance | path

Searched refs:rm_so (Results 1 – 25 of 35) sorted by relevance

12

/titanic_41/usr/src/cmd/basename/
H A Dbasename.c152 if (pmatch[0].rm_so == (regoff_t)-1 || in main()
153 pmatch[1].rm_so == (regoff_t)-1 || in main()
154 pmatch[1].rm_so != 0) { in main()
161 if (pmatch[1].rm_so == pmatch[1].rm_eo) { in main()
/titanic_41/usr/src/lib/libast/common/regex/
H A Dregexec.c41 int m = match->rm_so; in regexec()
46 if (match->rm_so >= 0) in regexec()
48 match->rm_so += m; in regexec()
H A Dregnexec.c371 if (p->rm_so < 0) in showmatch()
374 sfprintf(sfstdout, "%d", p->rm_so); in showmatch()
445rm_so, env->best[0].rm_eo, env->best[1].rm_so, env->best[1].rm_eo, env->best[2].rm_so, env->best[2… in parserep()
453rm_so, env->best[0].rm_eo, env->best[1].rm_so, env->best[1].rm_eo, env->best[2].rm_so, env->best[2… in parserep()
862 if (o->rm_so < 0) in parse()
864 i = o->rm_eo - o->rm_so; in parse()
868 t = env->beg + o->rm_so; in parse()
1041rm_so, env->best[0].rm_eo, env->best[1].rm_so, env->best[1].rm_eo, env->best[2].rm_so, env->best[2… in parse()
1072rm_so, env->best[0].rm_eo, env->best[1].rm_so, env->best[1].rm_eo, env->best[2].rm_so, env->best[2… in parse()
1184 env->match[rex->re.group.number].rm_so = s - env->beg; in parse()
[all …]
H A Dregsubexec.c86 if ((c = match[op->off].rm_so) < 0) in sub()
168 PUTS(p, b, s, match->rm_so, return fatal(p->env->disc, c, NiL)); 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()
181 if (!match->rm_so && !match->rm_eo && *s && m <= 1) in regsubexec()
183 match->rm_so = match->rm_eo = 1; in regsubexec()
H A Dregsub.c210 s = (char*)op + match[c].rm_so; in subold()
259 sfwrite(dp, op, match->rm_so); in regsub()
264 …EG_SUB_ALL)) && !(r = regexec(p, op, nmatch, match, p->env->flags|(match->rm_so == match->rm_eo ? … in regsub()
/titanic_41/usr/src/cmd/sed/
H A Dprocess.c389 if (lastempty || match[0].rm_so != match[0].rm_eo) { in substitute()
391 re_off = match[0].rm_so; in substitute()
399 if (match[0].rm_so != match[0].rm_eo) { in substitute()
404 if (match[0].rm_so < slen) in substitute()
405 cspace(&SS, s + match[0].rm_so, 1, in substitute()
407 s += match[0].rm_so + 1; in substitute()
408 slen -= match[0].rm_so + 1; in substitute()
418 if (match[0].rm_eo == match[0].rm_so) in substitute()
419 match[0].rm_eo = match[0].rm_so + 1; in substitute()
430 re_off = match[0].rm_so + ((uintptr_t)s - (uintptr_t)ps); in substitute()
[all …]
/titanic_41/usr/src/lib/libast/common/comp/
H A Dregexp.c100 if (regexec(&env->re, subject, elementsof(match), match, 0) || anchor && match[0].rm_so) in _re_exec()
102 re->re_loc1 = (char*)subject + match[0].rm_so; in _re_exec()
106 re->re_braslist[n-1] = (char*)subject + match[n].rm_so; in _re_exec()
H A Dregcmp.c205 k = match[i].rm_eo - match[i].rm_so; in regex()
206 strncpy(sub[n], subject + match[i].rm_so, k); in regex()
209 __loc1 = (char*)subject + match[0].rm_so; in regex()
/titanic_41/usr/src/cmd/devfsadm/
H A Daudio_link.c121 #define COPYSUB(to, from, pm, pos) (void) strncpy(to, &from[pm[pos].rm_so], \
122 pm[pos].rm_eo - pm[pos].rm_so); \
123 to[pm[pos].rm_eo - pm[pos].rm_so] = 0;
/titanic_41/usr/src/lib/libc/port/locale/
H A Dengine.c178 start = string + pmatch[0].rm_so; in matcher()
293 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; in matcher()
326 assert(m->pmatch[i].rm_so == -1); in matcher()
347 pmatch[0].rm_so = m->coldp - m->offp; in matcher()
356 pmatch[i].rm_so = -1; in matcher()
537 m->pmatch[i].rm_so = sp - m->offp; in dissect()
668 assert(m->pmatch[i].rm_so != -1); in backref()
669 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so; in backref()
675 ssp = m->offp + m->pmatch[i].rm_so; in backref()
725 offsave = m->pmatch[i].rm_so; in backref()
[all …]
/titanic_41/usr/src/lib/libcmd/common/
H A Dexpr.c319 if (match[1].rm_so >= 0) in expr_cond()
321 np->str = cp + match[1].rm_so; in expr_cond()
322 np->str[match[1].rm_eo - match[1].rm_so] = 0; in expr_cond()
331 np->num = match[0].rm_eo - match[0].rm_so; in expr_cond()
H A Dgrep.c338 highlight(sfstdout, s, len + 1, state->pos[0].rm_so, state->pos[0].rm_eo); in record()
406 highlight(sfstdout, s, len + 1, state->pos[0].rm_so, state->pos[0].rm_eo); in execute()
426 highlight(sfstdout, s, len + 1, state->pos[0].rm_so, state->pos[0].rm_eo); in execute()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dan_to_ln.c240 if ((match_match.rm_so == 0) && in aname_do_match()
301 if (match_match.rm_so) { in do_replacement()
302 use_bytes(match_match.rm_so); in do_replacement()
303 strncpy(op, cp, match_match.rm_so); in do_replacement()
304 op += match_match.rm_so; in do_replacement()
/titanic_41/usr/src/cmd/expr/
H A Dcompile.c334 loc1 = (char *)str + prm->rm_so;
343 braslist[i] = (char *)str + prm->rm_so;
/titanic_41/usr/src/lib/print/libpapi-lpd/common/
H A Dlpd-query.c48 if (match.rm_so != match.rm_eo) { in regvalue()
49 result = string + match.rm_so; in regvalue()
50 *(result + (match.rm_eo - match.rm_so)) = '\0'; in regvalue()
/titanic_41/usr/src/head/
H A Dregex.h148 regoff_t rm_so, rm_eo; /* Start offset, end offset */ member
/titanic_41/usr/src/lib/libast/common/string/
H A Dstrmatch.c140 *sub++ = matchstate.match[n].rm_so; in strgrpmatch()
/titanic_41/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_util.c72 if (match->rm_so != -1 && match->rm_eo != -1) { in zjni_get_matched_string()
76 stringUTF = (*env)->NewStringUTF(env, name + match->rm_so); in zjni_get_matched_string()
/titanic_41/usr/src/cmd/pgrep/
H A Dpsexp.c149 (pmatch.rm_so != 0 || s[pmatch.rm_eo] != '\0')) in psexp_match()
/titanic_41/usr/src/lib/libast/common/include/
H A Dregex.h143 regoff_t rm_so; /* offset of start */ member
/titanic_41/usr/src/cmd/pfexecd/
H A Dpfexecd.c157 if (match[1].rm_so == -1) in removeisapath()
161 (void) memmove(path + match[1].rm_so, path + match[1].rm_eo, in removeisapath()
/titanic_41/usr/src/lib/libast/amd64/include/ast/
H A Dregex.h125 regoff_t rm_so; /* offset of start */ member
/titanic_41/usr/src/lib/libast/i386/include/ast/
H A Dregex.h125 regoff_t rm_so; /* offset of start */ member
/titanic_41/usr/src/lib/libast/sparcv9/include/ast/
H A Dregex.h125 regoff_t rm_so; /* offset of start */ member
/titanic_41/usr/src/lib/libast/sparc/include/ast/
H A Dregex.h125 regoff_t rm_so; /* offset of start */ member

12