Searched refs:rm_so (Results 1 - 25 of 44) sorted by relevance

12

/freebsd-9.3-release/usr.bin/grep/regex/
H A Dglue.h46 size_t slen = (size_t)(pmatch[0].rm_eo - pmatch[0].rm_so); \
47 size_t offset = pmatch[0].rm_so; \
50 if ((long long)pmatch[0].rm_eo - pmatch[0].rm_so < 0) \
55 pmatch[i].rm_so += offset; \
/freebsd-9.3-release/lib/libc/regex/grot/
H A Dmain.c95 subs[0].rm_so = startoff;
106 len = (int)(subs[0].rm_eo - subs[0].rm_so);
107 if (subs[0].rm_so != -1) {
110 argv[optind] + subs[0].rm_so);
113 argv[optind] + subs[0].rm_so);
116 if (subs[i].rm_so != -1)
118 (int)(subs[i].rm_eo - subs[i].rm_so),
119 argv[optind] + subs[i].rm_so);
259 subs[0].rm_so = strchr(f2, '(') - f2 + 1;
426 /* check rm_so an
[all...]
/freebsd-9.3-release/contrib/nvi/common/
H A Dsearch.c234 match[0].rm_so = coff;
243 (match[0].rm_so == 0 ? 0 : REG_NOTBOL) | REG_STARTEND);
260 match[0].rm_so, match[0].rm_eo);
263 rm->cno = match[0].rm_so;
372 match[0].rm_so = 0;
392 if (coff != 0 && match[0].rm_so >= coff)
401 match[0].rm_so, match[0].rm_eo);
410 last = match[0].rm_so++;
411 if (match[0].rm_so >= len)
415 (match[0].rm_so
[all...]
/freebsd-9.3-release/contrib/llvm/lib/Support/
H A DRegex.cpp63 pm[0].rm_so = 0;
82 if (pm[i].rm_so == -1) {
87 assert(pm[i].rm_eo >= pm[i].rm_so);
88 Matches->push_back(StringRef(String.data()+pm[i].rm_so,
89 pm[i].rm_eo-pm[i].rm_so));
H A Dregex_impl.h44 llvm_regoff_t rm_so; /* start of match */ member in struct:__anon2299
H A Dregengine.inc149 start = string + pmatch[0].rm_so;
217 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1;
249 assert(m->pmatch[i].rm_so == -1);
269 pmatch[0].rm_so = m->coldp - m->offp;
278 pmatch[i].rm_so = -1;
462 m->pmatch[i].rm_so = sp - m->offp;
588 assert(m->pmatch[i].rm_so != -1);
589 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so;
595 ssp = m->offp + m->pmatch[i].rm_so;
649 offsave = m->pmatch[i].rm_so;
[all...]
/freebsd-9.3-release/usr.bin/sed/
H A Dprocess.c388 if (lastempty || match[0].rm_so != match[0].rm_eo) {
390 re_off = match[0].rm_so;
398 if (match[0].rm_so != match[0].rm_eo) {
403 if (match[0].rm_so < slen)
404 cspace(&SS, s + match[0].rm_so, 1,
406 s += match[0].rm_so + 1;
407 slen -= match[0].rm_so + 1;
417 if (match[0].rm_eo == match[0].rm_so)
418 match[0].rm_eo = match[0].rm_so + 1;
429 re_off = match[0].rm_so
[all...]
/freebsd-9.3-release/usr.bin/grep/
H A Dutil.c281 pmatch.rm_so = st;
300 if (pmatch.rm_so != 0 ||
308 if (pmatch.rm_so != 0 &&
309 sscanf(&l->dat[pmatch.rm_so - 1],
342 if (st == (size_t)pmatch.rm_so)
469 fwrite(line->dat + a, matches[i].rm_so - a, 1,
474 fwrite(line->dat + matches[i].rm_so,
475 matches[i].rm_eo - matches[i].rm_so, 1,
/freebsd-9.3-release/usr.bin/m4/
H A Dgnum4.c265 else if (pm[n].rm_so != -1 &&
267 addchars(string + pm[n].rm_so,
268 pm[n].rm_eo - pm[n].rm_so);
327 if (pm[0].rm_so == pm[0].rm_eo &&
328 string + pm[0].rm_so == last_match) {
338 last_match = string + pm[0].rm_so;
339 addchars(string, pm[0].rm_so);
372 pbunsigned(pm[0].rm_so);
/freebsd-9.3-release/include/
H A Dregex.h59 regoff_t rm_so; /* start of match */ member in struct:__anon4964
/freebsd-9.3-release/bin/ed/
H A Dsub.c187 i = rm[0].rm_so;
235 j = rm[0].rm_so;
242 j = rm[n].rm_so;
/freebsd-9.3-release/contrib/libarchive/tar/
H A Dsubst.c211 realloc_strncat(result, name, matches[0].rm_so);
246 realloc_strncat(result, name + matches[c - '0'].rm_so, matches[c - '0'].rm_eo - matches[c - '0'].rm_so);
/freebsd-9.3-release/lib/libc/regex/
H A Dengine.c177 start = string + pmatch[0].rm_so;
289 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1;
321 assert(m->pmatch[i].rm_so == -1);
342 pmatch[0].rm_so = m->coldp - m->offp;
351 pmatch[i].rm_so = -1;
534 m->pmatch[i].rm_so = sp - m->offp;
676 assert(m->pmatch[i].rm_so != -1);
677 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so;
683 ssp = m->offp + m->pmatch[i].rm_so;
734 offsave = m->pmatch[i].rm_so;
[all...]
/freebsd-9.3-release/contrib/nvi/ex/
H A Dex_subst.c550 * Generally, match[0].rm_so is the offset of the start
554 nextmatch: match[0].rm_so = 0;
596 if (!empty_ok && match[0].rm_so == 0 && match[0].rm_eo == 0) {
614 from.cno = match[0].rm_so + offset;
692 sp->cno = match[0].rm_so;
695 BUILD(sp, s + offset, match[0].rm_so);
1419 subzero: if (match[no].rm_so == -1 ||
1422 mlen = match[no].rm_eo - match[no].rm_so;
1423 for (t = ip + match[no].rm_so; mlen--; ++t)
H A Dex_global.c218 match[0].rm_so = 0;
/freebsd-9.3-release/bin/pax/
H A Dpat_rep.c915 rpt = inpt + pm[0].rm_so;
955 inpt += pm[0].rm_eo - pm[0].rm_so;
1114 if ((pmpt->rm_so < 0) || (pmpt->rm_eo < 0) ||
1115 ((len = pmpt->rm_eo - pmpt->rm_so) <= 0))
1124 if (l_strncpy(dpt, orig + pmpt->rm_so, len) != len)
/freebsd-9.3-release/bin/expr/
H A Dexpr.y537 if (regexec(&rp, a->u.s, (size_t)2, rm, 0) == 0 && rm[0].rm_so == 0)
538 if (rm[1].rm_so >= 0) {
540 v = make_str(a->u.s + rm[1].rm_so);
543 v = make_integer((intmax_t)(rm[0].rm_eo - rm[0].rm_so));
/freebsd-9.3-release/contrib/binutils/include/
H A Dxregex2.h432 regoff_t rm_so; /* Byte offset from string's start to substring's start. */
428 regoff_t rm_so; /* Byte offset from string's start to substring's start. */ member in struct:__anon729
/freebsd-9.3-release/contrib/cvs/lib/
H A Dregex.h401 regoff_t rm_so; /* Byte offset from string's start to substring's start. */
397 regoff_t rm_so; /* Byte offset from string's start to substring's start. */ member in struct:__anon900
/freebsd-9.3-release/contrib/gcclibs/include/
H A Dxregex2.h432 regoff_t rm_so; /* Byte offset from string's start to substring's start. */
428 regoff_t rm_so; /* Byte offset from string's start to substring's start. */ member in struct:__anon1266
/freebsd-9.3-release/sbin/fdisk_pc98/
H A Dfdisk.c899 if ((s = malloc(rm[1].rm_eo - rm[1].rm_so + 1)) == NULL)
901 memcpy(s, rootfs.f_mntfromname + rm[1].rm_so,
902 rm[1].rm_eo - rm[1].rm_so);
903 s[rm[1].rm_eo - rm[1].rm_so] = 0;
/freebsd-9.3-release/usr.bin/killall/
H A Dkillall.c347 pmatch.rm_so = 0;
373 pmatch.rm_so = 0;
/freebsd-9.3-release/gnu/lib/libregex/
H A Dregexec.c229 start = pmatch[0].rm_so;
466 assert (pmatch[0].rm_so == start);
470 rval = pmatch[0].rm_so;
523 regs->start[i] = pmatch[i].rm_so;
854 pmatch[reg_idx].rm_so = pmatch[reg_idx].rm_eo = -1;
857 pmatch[0].rm_so = 0;
872 if (pmatch[reg_idx].rm_so != -1)
877 if (pmatch[reg_idx].rm_so == mctx.input.valid_len)
878 pmatch[reg_idx].rm_so += mctx.input.valid_raw_len - mctx.input.valid_len;
880 pmatch[reg_idx].rm_so
[all...]
/freebsd-9.3-release/contrib/gdb/include/
H A Dxregex2.h429 regoff_t rm_so; /* Byte offset from string's start to substring's start. */
425 regoff_t rm_so; /* Byte offset from string's start to substring's start. */ member in struct:__anon1507
/freebsd-9.3-release/contrib/less/
H A Dpattern.c312 *sp = line + rm.rm_so;

Completed in 196 milliseconds

12