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

12

/freebsd-10.1-release/contrib/flex/
H A Dregex.c85 if (m == NULL || m->rm_so < 0)
87 len = m->rm_eo - m->rm_so;
91 strncpy (str, src + m->rm_so, len);
104 if (m == NULL || m->rm_so < 0) {
110 snprintf (dest, regmatch_len(m), "%s", src + m->rm_so);
121 if (m == NULL || m->rm_so < 0) {
125 return m->rm_eo - m->rm_so;
146 if (m == NULL || m->rm_so < 0)
169 return (m == NULL || m->rm_so < 0 || m->rm_so
[all...]
/freebsd-10.1-release/contrib/llvm/tools/lldb/source/Core/
H A DRegularExpression.cpp167 if (m_matches[idx].rm_eo == m_matches[idx].rm_so)
173 else if (m_matches[idx].rm_eo > m_matches[idx].rm_so)
175 match_str.assign (s + m_matches[idx].rm_so,
176 m_matches[idx].rm_eo - m_matches[idx].rm_so);
188 if (m_matches[idx].rm_eo == m_matches[idx].rm_so)
194 else if (m_matches[idx].rm_eo > m_matches[idx].rm_so)
196 match_str = llvm::StringRef (s + m_matches[idx].rm_so, m_matches[idx].rm_eo - m_matches[idx].rm_so);
208 if (m_matches[idx1].rm_so == m_matches[idx2].rm_eo)
214 else if (m_matches[idx1].rm_so < m_matche
[all...]
/freebsd-10.1-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-10.1-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-10.1-release/contrib/nvi/common/
H A Dsearch.c238 match[0].rm_so = coff;
247 (match[0].rm_so == 0 ? 0 : REG_NOTBOL) | REG_STARTEND);
264 match[0].rm_so, match[0].rm_eo);
267 rm->cno = match[0].rm_so;
378 match[0].rm_so = 0;
398 if (coff != 0 && match[0].rm_so >= coff)
407 match[0].rm_so, match[0].rm_eo);
416 last = match[0].rm_so++;
417 if (match[0].rm_so >= len)
421 (match[0].rm_so
[all...]
/freebsd-10.1-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:__anon2418
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-10.1-release/contrib/nvi/regex/
H A Dregex.h61 regoff_t rm_so; /* start of match */ member in struct:__anon4093
H A Dengine.c159 start = string + pmatch[0].rm_so;
225 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1;
257 assert(m->pmatch[i].rm_so == -1);
276 pmatch[0].rm_so = m->coldp - m->offp;
285 pmatch[i].rm_so = -1;
469 m->pmatch[i].rm_so = sp - m->offp;
610 assert(m->pmatch[i].rm_so != -1);
611 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so;
615 ssp = m->offp + m->pmatch[i].rm_so;
669 offsave = m->pmatch[i].rm_so;
[all...]
/freebsd-10.1-release/include/
H A Dregex.h59 regoff_t rm_so; /* start of match */ member in struct:__anon5488
/freebsd-10.1-release/usr.bin/sed/
H A Dprocess.c396 if (lastempty || match[0].rm_so != match[0].rm_eo) {
398 re_off = match[0].rm_so;
406 if (match[0].rm_so != match[0].rm_eo) {
411 if (match[0].rm_so < slen)
412 cspace(&SS, s + match[0].rm_so, 1,
414 s += match[0].rm_so + 1;
415 slen -= match[0].rm_so + 1;
425 if (match[0].rm_eo == match[0].rm_so)
426 match[0].rm_eo = match[0].rm_so + 1;
437 re_off = match[0].rm_so
[all...]
/freebsd-10.1-release/contrib/libarchive/tar/
H A Dsubst.c244 realloc_strncat(result, name, matches[0].rm_so);
250 name + matches[0].rm_so,
251 matches[0].rm_eo - matches[0].rm_so);
281 realloc_strncat(result, name + matches[c - '0'].rm_so, matches[c - '0'].rm_eo - matches[c - '0'].rm_so);
/freebsd-10.1-release/usr.bin/sort/
H A Dsort.c644 if (pmatch[0].rm_eo <= pmatch[0].rm_so)
647 if (pmatch[1].rm_eo <= pmatch[1].rm_so)
650 len = pmatch[1].rm_eo - pmatch[1].rm_so;
653 strncpy(f, s + pmatch[1].rm_so, len);
676 if (pmatch[2].rm_eo > pmatch[2].rm_so) {
677 len = pmatch[2].rm_eo - pmatch[2].rm_so - 1;
680 strncpy(c, s + pmatch[2].rm_so + 1, len);
705 if (pmatch[3].rm_eo > pmatch[3].rm_so) {
708 for (i = pmatch[3].rm_so; i < pmatch[3].rm_eo; i++) {
800 if (pmatch[0].rm_eo <= pmatch[0].rm_so)
[all...]
/freebsd-10.1-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-10.1-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-10.1-release/contrib/apr-util/dbd/
H A Dapr_dbd_freetds.c201 return apr_pstrndup(pool, val+match[0].rm_so,
202 match[0].rm_eo - match[0].rm_so);
410 int len = matches[1].rm_eo - matches[1].rm_so - 2;
418 memmove(stmt->fmt + offs + matches[1].rm_so,
423 if (matches[1].rm_so == -1) {
427 strncpy(arg, query+matches[1].rm_so+1,
428 matches[1].rm_eo - matches[1].rm_so - 2);
429 arg[matches[1].rm_eo - matches[1].rm_so - 2] = '\0';
441 for (i=matches[2].rm_so; i<matches[2].rm_eo; ++i) {
/freebsd-10.1-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-10.1-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-10.1-release/contrib/nvi/ex/
H A Dex_subst.c543 * Generally, match[0].rm_so is the offset of the start
547 nextmatch: match[0].rm_so = 0;
589 if (!empty_ok && match[0].rm_so == 0 && match[0].rm_eo == 0) {
607 from.cno = match[0].rm_so + offset;
685 sp->cno = match[0].rm_so;
688 BUILD(sp, s + offset, match[0].rm_so);
1398 subzero: if (match[no].rm_so == -1 ||
1401 mlen = match[no].rm_eo - match[no].rm_so;
1402 for (t = ip + match[no].rm_so; mlen--; ++t)
/freebsd-10.1-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-10.1-release/bin/expr/
H A Dexpr.y536 if (regexec(&rp, a->u.s, (size_t)2, rm, 0) == 0 && rm[0].rm_so == 0)
537 if (rm[1].rm_so >= 0) {
539 v = make_str(a->u.s + rm[1].rm_so);
/freebsd-10.1-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:__anon606
/freebsd-10.1-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:__anon1229
/freebsd-10.1-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;

Completed in 295 milliseconds

12