/illumos-gate/usr/src/contrib/ast/src/lib/libast/regex/ |
H A D | regsubexec.c | 86 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() 224 match[i].rm_so = oldmatch[i].rm_so; in regsubexec() 230 oldmatch[i].rm_so = match[i].rm_so; in regsubexec()
|
H A D | regexec.c | 41 int m = match->rm_so; in regexec() 46 if (match->rm_so >= 0) in regexec() 48 match->rm_so += m; in regexec() 83 oldmatch[i].rm_so = match[i].rm_so; in regexec()
|
H A D | regnexec.c | 370 if (p->rm_so < 0) in showmatch() 373 sfprintf(sfstdout, "%z", p->rm_so); in showmatch() 444 …rm_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() 452 …rm_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() 861 if (o->rm_so < 0) in parse() 863 i = o->rm_eo - o->rm_so; in parse() 867 t = env->beg + o->rm_so; in parse() 1040 …rm_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() 1071 …rm_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() 1183 env->match[rex->re.group.number].rm_so = s - env->beg; in parse() [all …]
|
H A D | regsub.c | 210 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()
|
H A D | regrexec.c | 174 oldmatch[i].rm_so = match[i].rm_so; in regrexec()
|
/illumos-gate/usr/src/cmd/basename/ |
H A D | basename.c | 150 if (pmatch[0].rm_so == (regoff_t)-1 || in main() 151 pmatch[1].rm_so == (regoff_t)-1 || in main() 152 pmatch[1].rm_so != 0) { in main() 159 if (pmatch[1].rm_so == pmatch[1].rm_eo) { in main()
|
/illumos-gate/usr/src/cmd/sed/ |
H A D | process.c | 403 if (lastempty || match[0].rm_so != match[0].rm_eo) { in substitute() 405 re_off = match[0].rm_so; in substitute() 413 if (match[0].rm_so != match[0].rm_eo) { in substitute() 418 if (match[0].rm_so < slen) in substitute() 419 cspace(&SS, s + match[0].rm_so, 1, in substitute() 421 s += match[0].rm_so + 1; in substitute() 422 slen -= match[0].rm_so + 1; in substitute() 432 if (match[0].rm_eo == match[0].rm_so) in substitute() 433 match[0].rm_eo = match[0].rm_so + 1; in substitute() 444 re_off = match[0].rm_so + ((uintptr_t)s - (uintptr_t)ps); in substitute() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | regexp.c | 100 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 D | regcmp.c | 218 k = match[i].rm_eo - match[i].rm_so; in regex() 219 strlcpy(sub[n], subject + match[i].rm_so, k); in regex() 222 __loc1 = (char*)subject + match[0].rm_so; in regex()
|
/illumos-gate/usr/src/lib/libc/port/regex/ |
H A D | engine.c | 210 start = string + pmatch[0].rm_so; in matcher() 330 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; in matcher() 362 assert(m->pmatch[i].rm_so == -1); in matcher() 383 pmatch[0].rm_so = m->coldp - m->offp; in matcher() 392 pmatch[i].rm_so = -1; in matcher() 571 m->pmatch[i].rm_so = sp - m->offp; in dissect() 700 assert(m->pmatch[i].rm_so != -1); in backref() 701 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so; in backref() 707 ssp = m->offp + m->pmatch[i].rm_so; in backref() 757 offsave = m->pmatch[i].rm_so; in backref() [all …]
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | audio_link.c | 121 #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;
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/ |
H A D | strmatch.c | 155 *subi++ = matchstate.match[n].rm_so; in strgrpmatch() 164 *sub++ = matchstate.match[n].rm_so; in strgrpmatch()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | expr.c | 319 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()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | an_to_ln.c | 240 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()
|
/illumos-gate/usr/src/cmd/expr/ |
H A D | compile.c | 329 loc1 = (char *)str + prm->rm_so; in dhl_doit() 338 braslist[i] = (char *)str + prm->rm_so; in dhl_doit()
|
/illumos-gate/usr/src/lib/print/libpapi-lpd/common/ |
H A D | lpd-query.c | 48 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()
|
/illumos-gate/usr/src/test/libc-tests/tests/regex/ |
H A D | testregex.c | 863 …if ((match[nmatch-1].rm_so != -1 || match[nmatch-1].rm_eo != -1) && (!(test & TEST_IGNORE_POSITION… in matchprint() 868 matchoffprint(match[i].rm_so); in matchprint() 947 if (m!=match[i].rm_so || n!=match[i].rm_eo) in matchcheck() 959 if (match[i].rm_so!=-1 || match[i].rm_eo!=-1) in matchcheck() 963 if ((test & TEST_IGNORE_POSITION) && (match[i].rm_so<0 || match[i].rm_eo<0)) in matchcheck() 977 if (!(test & TEST_IGNORE_OVER) && match[nmatch].rm_so != state.NOMATCH.rm_so) in matchcheck() 1271 state.NOMATCH.rm_so = state.NOMATCH.rm_eo = -2; in main() 2230 if (match[0].rm_so != state.NOMATCH.rm_so) in main()
|
/illumos-gate/usr/src/tools/smatch/src/validation/ |
H A D | restrict-array.c | 25 regoff_t rm_so; /* Byte offset from string's start to substring's start. */ member
|
/illumos-gate/usr/src/head/ |
H A D | regex.h | 151 regoff_t rm_so, rm_eo; /* Start offset, end offset */ member
|
/illumos-gate/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_util.c | 70 if (match->rm_so != -1 && match->rm_eo != -1) { in zjni_get_matched_string() 74 stringUTF = (*env)->NewStringUTF(env, name + match->rm_so); in zjni_get_matched_string()
|
/illumos-gate/usr/src/cmd/pgrep/ |
H A D | psexp.c | 147 (pmatch.rm_so != 0 || s[pmatch.rm_eo] != '\0')) in psexp_match()
|
/illumos-gate/usr/src/cmd/pfexecd/ |
H A D | pfexecd.c | 158 if (match[1].rm_so == -1) in removeisapath() 162 (void) memmove(path + match[1].rm_so, path + match[1].rm_eo, in removeisapath()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/ |
H A D | regex.h | 150 regoff_t rm_so; /* offset of start */ member
|
/illumos-gate/usr/src/lib/print/libpapi-common/common/ |
H A D | attribute.c | 628 if (match.rm_so != match.rm_eo) { in regvalue() 629 result = string + match.rm_so; in regvalue() 630 *(result + (match.rm_eo - match.rm_so)) = '\0'; in regvalue()
|
/illumos-gate/usr/src/cmd/awk_xpg4/ |
H A D | awk1.c | 1592 if ((k = ms->rm_so) >= 0) { in int_regwexec() 1593 ws->rm_so = wcoff(astring, k); in int_regwexec() 1594 ws->rm_sp = astring + ws->rm_so; in int_regwexec()
|