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

123

/freebsd-11-stable/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-11-stable/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-11-stable/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);
250 subs[0].rm_so = strchr(f2, '(') - f2 + 1;
409 /* check rm_so an
[all...]
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/regex/
H A Dmain.c123 subs[0].rm_so = startoff;
134 len = (int)(subs[0].rm_eo - subs[0].rm_so);
135 if (subs[0].rm_so != -1) {
138 argv[optind] + subs[0].rm_so);
141 argv[optind] + subs[0].rm_so);
144 if (subs[i].rm_so != -1)
146 (int)(subs[i].rm_eo - subs[i].rm_so),
147 argv[optind] + subs[i].rm_so);
279 subs[0].rm_so = strchr(f2, '(') - f2 + 1;
437 /* check rm_so an
[all...]
H A Dt_regex_att.c369 if (pm[i].rm_so == -1 && pm[i].rm_eo == -1)
373 (long long)pm[i].rm_so, (long long)pm[i].rm_eo);
/freebsd-11-stable/usr.bin/grep/
H A Dutil.c413 ofs = pmatch[0].rm_so;
434 pmatch[idx].rm_so = ofs + (sub - search);
435 pmatch[idx].rm_eo = pmatch[idx].rm_so + pat->len;
438 ofs = pmatch[idx].rm_so + 1;
446 pmatch[n].rm_so = pmatch[n].rm_eo = -1;
506 lastmatch.rm_so = lastmatch.rm_eo = 0;
517 pmatch.rm_so = st;
535 if (xflag && (pmatch.rm_so != 0 ||
545 if (pmatch.rm_so != 0 &&
546 sscanf(&pc->ln.dat[pmatch.rm_so
[all...]
/freebsd-11-stable/contrib/nvi/common/
H A Dsearch.c239 match[0].rm_so = coff;
248 (match[0].rm_so == 0 ? 0 : REG_NOTBOL) | REG_STARTEND);
265 match[0].rm_so, match[0].rm_eo);
268 rm->cno = match[0].rm_so;
379 match[0].rm_so = 0;
399 if (coff != 0 && match[0].rm_so >= coff)
408 match[0].rm_so, match[0].rm_eo);
417 last = match[0].rm_so++;
418 if (match[0].rm_so >= len)
422 (match[0].rm_so
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/
H A DRegex.cpp97 pm[0].rm_so = 0;
118 if (pm[i].rm_so == -1) {
123 assert(pm[i].rm_eo >= pm[i].rm_so);
124 Matches->push_back(StringRef(String.data()+pm[i].rm_so,
125 pm[i].rm_eo-pm[i].rm_so));
H A Dregex_impl.h44 llvm_regoff_t rm_so; /* start of match */ member in struct:__anon2375
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-11-stable/include/
H A Dregex.h59 regoff_t rm_so; /* start of match */ member in struct:__anon6528
/freebsd-11-stable/contrib/nvi/regex/
H A Dregex.h57 regoff_t rm_so; /* start of match */ member in struct:__anon5037
H A Dengine.c149 start = string + pmatch[0].rm_so;
215 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1;
247 assert(m->pmatch[i].rm_so == -1);
266 pmatch[0].rm_so = m->coldp - m->offp;
275 pmatch[i].rm_so = -1;
453 m->pmatch[i].rm_so = sp - m->offp;
587 assert(m->pmatch[i].rm_so != -1);
588 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so;
592 ssp = m->offp + m->pmatch[i].rm_so;
646 offsave = m->pmatch[i].rm_so;
[all...]
/freebsd-11-stable/contrib/libarchive/tar/
H A Dsubst.c246 realloc_strncat(result, name, matches[0].rm_so);
252 name + matches[0].rm_so,
253 matches[0].rm_eo - matches[0].rm_so);
283 realloc_strncat(result, name + matches[c - '0'].rm_so, matches[c - '0'].rm_eo - matches[c - '0'].rm_so);
/freebsd-11-stable/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-11-stable/usr.bin/m4/
H A Dgnum4.c288 else if (pm[n].rm_so != -1 &&
290 addchars(string + pm[n].rm_so,
291 pm[n].rm_eo - pm[n].rm_so);
351 if (pm[0].rm_so == pm[0].rm_eo &&
352 string + pm[0].rm_so == last_match) {
362 last_match = string + pm[0].rm_so;
363 addchars(string, pm[0].rm_so);
398 pbunsigned(pm[0].rm_so);
/freebsd-11-stable/usr.bin/sed/
H A Dprocess.c411 if (n <= 1 && (match[0].rm_so > le))
412 cspace(&SS, s, match[0].rm_so - le, APPEND);
415 if (lastempty || (match[0].rm_so - le) ||
416 match[0].rm_so != match[0].rm_eo) {
440 if (match[0].rm_so == match[0].rm_eo) {
677 match[0].rm_so = start;
726 } else if (match[no].rm_so != -1 && match[no].rm_eo != -1) {
727 len = match[no].rm_eo - match[no].rm_so;
729 memmove(dst, string + match[no].rm_so, len);
/freebsd-11-stable/contrib/apr-util/dbd/unsupported/
H A Dapr_dbd_freetds.c203 return apr_pstrndup(pool, val+match[0].rm_so,
204 match[0].rm_eo - match[0].rm_so);
412 int len = matches[1].rm_eo - matches[1].rm_so - 2;
420 memmove(stmt->fmt + offs + matches[1].rm_so,
425 if (matches[1].rm_so == -1) {
429 strncpy(arg, query+matches[1].rm_so+1,
430 matches[1].rm_eo - matches[1].rm_so - 2);
431 arg[matches[1].rm_eo - matches[1].rm_so - 2] = '\0';
443 for (i=matches[2].rm_so; i<matches[2].rm_eo; ++i) {
/freebsd-11-stable/bin/ed/
H A Dsub.c187 i = rm[0].rm_so;
235 j = rm[0].rm_so;
242 j = rm[n].rm_so;
/freebsd-11-stable/lib/libc/regex/
H A Dengine.c175 start = string + pmatch[0].rm_so;
287 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1;
319 assert(m->pmatch[i].rm_so == -1);
340 pmatch[0].rm_so = m->coldp - m->offp;
349 pmatch[i].rm_so = -1;
532 m->pmatch[i].rm_so = sp - m->offp;
671 assert(m->pmatch[i].rm_so != -1);
672 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so;
678 ssp = m->offp + m->pmatch[i].rm_so;
729 offsave = m->pmatch[i].rm_so;
[all...]
/freebsd-11-stable/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-11-stable/bin/pax/
H A Dpat_rep.c913 rpt = inpt + pm[0].rm_so;
953 inpt += pm[0].rm_eo - pm[0].rm_so;
1112 if ((pmpt->rm_so < 0) || (pmpt->rm_eo < 0) ||
1113 ((len = pmpt->rm_eo - pmpt->rm_so) <= 0))
1122 if (l_strncpy(dpt, orig + pmpt->rm_so, len) != len)
/freebsd-11-stable/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:__anon1428
/freebsd-11-stable/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:__anon599
/freebsd-11-stable/sbin/fdisk_pc98/
H A Dfdisk.c891 if ((s = malloc(rm[1].rm_eo - rm[1].rm_so + 1)) == NULL)
893 memcpy(s, rootfs.f_mntfromname + rm[1].rm_so,
894 rm[1].rm_eo - rm[1].rm_so);
895 s[rm[1].rm_eo - rm[1].rm_so] = 0;

Completed in 164 milliseconds

123