HomeSort by: relevance | last modified time | path
    Searched refs:rm_so (Results 1 - 20 of 20) sorted by relevancy

  /src/tests/lib/libc/regex/
main.c 133 subs[0].rm_so = startoff;
144 len = (int)(subs[0].rm_eo - subs[0].rm_so);
145 if (subs[0].rm_so != -1) {
148 argv[optind] + subs[0].rm_so);
151 argv[optind] + subs[0].rm_so);
154 if (subs[i].rm_so != -1)
156 (int)(subs[i].rm_eo - subs[i].rm_so),
157 argv[optind] + subs[i].rm_so);
293 subs[0].rm_so = strchr(f2, '(') - f2 + 1;
454 /* check rm_so and rm_eo for consistency *
    [all...]
t_regex_att.c 374 if (pm[i].rm_so == -1 && pm[i].rm_eo == -1)
378 (long long)pm[i].rm_so, (long long)pm[i].rm_eo);
  /src/tests/fs/cd9660/
h_hexdump_r.c 67 noff = (off_t)strtoimax(line + m[1].rm_so, NULL, 16);
70 line + m[2 + i].rm_so, NULL, 16);
73 noff = (off_t)strtoimax(line + m[1].rm_so, NULL, 16);
  /src/usr.bin/grep/
fastgrep.c 224 if (pmatch->rm_so == (ssize_t)len)
227 if (fg->bol && pmatch->rm_so != 0) {
228 pmatch->rm_so = len;
247 pmatch->rm_so = j;
258 pmatch->rm_so = j - fg->len;
270 j = pmatch->rm_so;
273 pmatch->rm_so = j;
util.c 297 pmatch.rm_so = st;
322 (pmatch.rm_so != 0 ||
326 if (fg_pattern[i].word && pmatch.rm_so != 0) {
330 if (pmatch.rm_so != 0 &&
331 sscanf(&l->dat[pmatch.rm_so - 1],
357 if (st == (size_t)pmatch.rm_so)
476 fwrite(line->dat + a, matches[i].rm_so - a, 1,
481 fwrite(line->dat + matches[i].rm_so,
482 matches[i].rm_eo - matches[i].rm_so, 1,
  /src/lib/libc/regex/
regsub.c 135 } else if (rm[i].rm_so != -1 && rm[i].rm_eo != -1) {
136 size_t l = (size_t)(rm[i].rm_eo - rm[i].rm_so);
137 addnstr(&s, str + (size_t)rm[i].rm_so, l);
engine.c 233 start = string + (size_t)pmatch[0].rm_so;
346 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1;
377 assert(m->pmatch[i].rm_so == (regoff_t)-1);
399 pmatch[0].rm_so = m->coldp - m->offp;
408 pmatch[i].rm_so = (regoff_t)-1;
607 m->pmatch[i].rm_so = sp - m->offp;
786 assert(m->pmatch[i].rm_so != -1);
787 len = (size_t)(m->pmatch[i].rm_eo - m->pmatch[i].rm_so);
793 ssp = m->offp + (size_t)m->pmatch[i].rm_so;
844 offsave = m->pmatch[i].rm_so;
    [all...]
  /src/usr.bin/sed/
process.c 413 if (lastempty || match[0].rm_so != match[0].rm_eo) {
415 re_off = match[0].rm_so;
423 if (match[0].rm_so != match[0].rm_eo) {
428 if (match[0].rm_so < slen)
429 cspace(&SS, s + match[0].rm_so, 1,
431 s += match[0].rm_so + 1;
432 slen -= match[0].rm_so + 1;
442 if (match[0].rm_eo == match[0].rm_so)
443 match[0].rm_eo = match[0].rm_so + 1;
454 re_off = match[0].rm_so + (s - ps)
    [all...]
  /src/bin/expr/
expr.y 311 if (regexec(&rp, str, 2, rm, 0) == 0 && rm[0].rm_so == 0) {
313 if (rm[1].rm_so >= 0) {
315 (int)(rm[1].rm_eo - rm[1].rm_so),
316 str + rm[1].rm_so);
319 mbs_len(str + rm[0].rm_so, str + rm[0].rm_eo));
  /src/include/
regex.h 92 regoff_t rm_so; /* start of match */ member in struct:__anon5fac6af10208
  /src/share/examples/refuse/dmesgfs/
dmesgfs.c 280 add_dev(&buf[matchv[1].rm_so],
281 matchv[1].rm_eo - matchv[1].rm_so,
282 &buf[matchv[2].rm_so],
283 matchv[2].rm_eo - matchv[2].rm_so,
285 matchv[0].rm_eo - matchv[0].rm_so);
  /src/usr.bin/m4/
gnum4.c 277 else if (pm[n].rm_so != -1 &&
279 addchars(string + pm[n].rm_so,
280 pm[n].rm_eo - pm[n].rm_so);
340 if (pm[0].rm_so == pm[0].rm_eo &&
341 string + pm[0].rm_so == last_match) {
351 last_match = string + pm[0].rm_so;
352 addchars(string, pm[0].rm_so);
389 pbunsigned(pm[0].rm_so);
  /src/bin/ed/
sub.c 196 i = rm[0].rm_so;
243 j = rm[0].rm_so;
250 j = rm[n].rm_so;
  /src/bin/pax/
pat_rep.c 955 rpt = inpt + pm[0].rm_so;
988 inpt += pm[0].rm_eo - pm[0].rm_so;
1126 if ((pmpt->rm_so < 0) || (pmpt->rm_eo < 0) ||
1127 ((len = pmpt->rm_eo - pmpt->rm_so) <= 0))
1136 strncpy(dpt, txt + pmpt->rm_so, len);
  /src/sys/external/bsd/drm2/dist/drm/radeon/
mkregtable.c 256 o = strtol(&buf[match[1].rm_so], NULL, 16);
  /src/usr.sbin/user/
user.c 967 matchv[pwtp->re_sub].rm_so) ==
1354 if (buf[(int)matchv[1].rm_so] == ',') {
1355 matchv[2].rm_so = matchv[1].rm_so;
1360 sc = (int) matchv[2].rm_so;
  /src/usr.bin/pkill/
pkill.c 334 if (regmatch.rm_so == 0 &&
  /src/usr.bin/make/
var.c 1605 else if (m[n].rm_so == -1) {
1610 wp + (size_t)m[n].rm_so,
1634 wp + (size_t)m[0].rm_so,
1675 SepBuf_AddBytes(buf, wp, (size_t)m[0].rm_so);
1682 if (m[0].rm_so == 0 && m[0].rm_eo == 0 && *wp != '\0') {
  /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
sanitizer_platform_limits_netbsd.h 72 OFF_T rm_so; member in struct:__sanitizer::__sanitizer_regmatch
  /src/sbin/sysctl/
sysctl.c 426 if (match.rm_so == 0 && match.rm_eo == (int)l)

Completed in 30 milliseconds