Searched refs:rm_eo (Results 1 - 25 of 50) sorted by relevance

12

/freebsd-11-stable/usr.bin/grep/regex/
H A Dglue.h46 size_t slen = (size_t)(pmatch[0].rm_eo - pmatch[0].rm_so); \
50 if ((long long)pmatch[0].rm_eo - pmatch[0].rm_so < 0) \
56 pmatch[i].rm_eo += offset; \
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/regex/
H A Dmain.c124 subs[0].rm_eo = strlen(argv[optind]) - endoff;
134 len = (int)(subs[0].rm_eo - subs[0].rm_so);
146 (int)(subs[i].rm_eo - subs[i].rm_so),
280 subs[0].rm_eo = strchr(f2, ')') - f2;
437 /* check rm_so and rm_eo for consistency */
438 if (sub.rm_so > sub.rm_eo || (sub.rm_so == -1 && sub.rm_eo != -1) ||
439 (sub.rm_so != -1 && sub.rm_eo == -1) ||
441 (sub.rm_eo != -1 && sub.rm_eo <
[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/lib/libc/regex/grot/
H A Dmain.c96 subs[0].rm_eo = strlen(argv[optind]) - endoff;
106 len = (int)(subs[0].rm_eo - subs[0].rm_so);
118 (int)(subs[i].rm_eo - subs[i].rm_so),
251 subs[0].rm_eo = strchr(f2, ')') - f2;
409 /* check rm_so and rm_eo for consistency */
410 if (sub.rm_so > sub.rm_eo || (sub.rm_so == -1 && sub.rm_eo != -1) ||
411 (sub.rm_so != -1 && sub.rm_eo == -1) ||
413 (sub.rm_eo != -1 && sub.rm_eo <
[all...]
/freebsd-11-stable/bin/ed/
H A Dsub.c190 NEWLINE_TO_NUL(txt, rm[0].rm_eo);
197 i = rm[0].rm_eo;
204 txt += rm[0].rm_eo;
206 (!changed || ((gflag & GSG) && rm[0].rm_eo)) &&
210 if (i > 0 && !rm[0].rm_eo && (gflag & GSG)) {
236 k = rm[0].rm_eo;
243 k = rm[n].rm_eo;
/freebsd-11-stable/contrib/flex/
H A Dregex.c87 len = m->rm_eo - m->rm_so;
125 return m->rm_eo - m->rm_so;
169 return (m == NULL || m->rm_so < 0 || m->rm_so == m->rm_eo);
/freebsd-11-stable/include/
H A Dregex.h60 regoff_t rm_eo; /* end of match */ member in struct:__anon6528
/freebsd-11-stable/contrib/nvi/regex/
H A Dregex.h58 regoff_t rm_eo; /* end of match */ member in struct:__anon5037
H A Dengine.c150 stop = string + pmatch[0].rm_eo;
215 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1;
248 assert(m->pmatch[i].rm_eo == -1);
267 pmatch[0].rm_eo = endp - m->offp;
276 pmatch[i].rm_eo = -1;
458 m->pmatch[i].rm_eo = sp - m->offp;
585 if (m->pmatch[i].rm_eo == -1)
588 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so;
657 offsave = m->pmatch[i].rm_eo;
658 m->pmatch[i].rm_eo
[all...]
/freebsd-11-stable/usr.bin/grep/
H A Dutil.c414 stringlen = pmatch[0].rm_eo;
435 pmatch[idx].rm_eo = pmatch[idx].rm_so + pat->len;
446 pmatch[n].rm_so = pmatch[n].rm_eo = -1;
506 lastmatch.rm_so = lastmatch.rm_eo = 0;
518 pmatch.rm_eo = pc->ln.len;
536 (size_t)pmatch.rm_eo != pc->ln.len))
549 else if ((size_t)pmatch.rm_eo !=
551 sscanf(&pc->ln.dat[pmatch.rm_eo],
588 (pmatch.rm_eo - pmatch.rm_so) >
589 (chkmatch.rm_eo
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/
H A Dregex_impl.h45 llvm_regoff_t rm_eo; /* end of match */ member in struct:__anon2375
H A DRegex.cpp98 pm[0].rm_eo = String.size();
123 assert(pm[i].rm_eo >= pm[i].rm_so);
125 pm[i].rm_eo-pm[i].rm_so));
H A Dregengine.inc150 stop = string + pmatch[0].rm_eo;
217 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1;
250 assert(m->pmatch[i].rm_eo == -1);
270 pmatch[0].rm_eo = endp - m->offp;
279 pmatch[i].rm_eo = -1;
467 m->pmatch[i].rm_eo = sp - m->offp;
586 if (m->pmatch[i].rm_eo == -1)
589 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so;
660 offsave = m->pmatch[i].rm_eo;
661 m->pmatch[i].rm_eo
[all...]
/freebsd-11-stable/contrib/nvi/common/
H A Dsearch.c240 match[0].rm_eo = len;
265 match[0].rm_so, match[0].rm_eo);
380 match[0].rm_eo = len;
383 TRACE(sp, "B search: %lu from 0 to %qu\n", lno, match[0].rm_eo);
387 (match[0].rm_eo == len ? 0 : REG_NOTEOL) | REG_STARTEND);
408 match[0].rm_so, match[0].rm_eo);
420 match[0].rm_eo = len;
/freebsd-11-stable/usr.bin/sed/
H A Dprocess.c416 match[0].rm_so != match[0].rm_eo) {
424 if (match[0].rm_eo - le)
425 cspace(&SS, s, match[0].rm_eo - le,
432 s = ps + match[0].rm_eo;
433 slen = psl - match[0].rm_eo;
434 le = match[0].rm_eo;
440 if (match[0].rm_so == match[0].rm_eo) {
678 match[0].rm_eo = stop;
726 } else if (match[no].rm_so != -1 && match[no].rm_eo != -1) {
727 len = match[no].rm_eo
[all...]
/freebsd-11-stable/contrib/apr-util/dbd/unsupported/
H A Dapr_dbd_freetds.c204 match[0].rm_eo - match[0].rm_so);
412 int len = matches[1].rm_eo - matches[1].rm_so - 2;
417 ret = recurse_args(pool, n+1, query+matches[0].rm_eo,
418 stmt, offs+matches[0].rm_eo);
421 stmt->fmt + offs + matches[0].rm_eo-1,
422 strlen(stmt->fmt+offs+matches[0].rm_eo)+2);
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/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;
676 if (pmatch[2].rm_eo > pmatch[2].rm_so) {
677 len = pmatch[2].rm_eo - pmatch[2].rm_so - 1;
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)
803 if (pmatch[1].rm_eo <= pmatch[1].rm_so)
806 len = pmatch[1].rm_eo
[all...]
/freebsd-11-stable/usr.bin/m4/
H A Dgnum4.c289 pm[n].rm_eo != -1) {
291 pm[n].rm_eo - pm[n].rm_so);
340 if (pm[0].rm_eo != 0) {
341 if (string[pm[0].rm_eo-1] == '\n')
351 if (pm[0].rm_so == pm[0].rm_eo &&
365 string += pm[0].rm_eo;
/freebsd-11-stable/contrib/libarchive/tar/
H A Dsubst.c253 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);
295 name += matches[0].rm_eo;
/freebsd-11-stable/lib/libc/regex/
H A Dengine.c176 stop = string + pmatch[0].rm_eo;
287 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1;
320 assert(m->pmatch[i].rm_eo == -1);
341 pmatch[0].rm_eo = endp - m->offp;
350 pmatch[i].rm_eo = -1;
537 m->pmatch[i].rm_eo = sp - m->offp;
669 if (m->pmatch[i].rm_eo == -1)
672 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so;
739 offsave = m->pmatch[i].rm_eo;
740 m->pmatch[i].rm_eo
[all...]
/freebsd-11-stable/contrib/nvi/ex/
H A Dex_subst.c548 match[0].rm_eo = len;
589 if (!empty_ok && match[0].rm_so == 0 && match[0].rm_eo == 0) {
608 to.cno = match[0].rm_eo + offset;
665 BUILD(sp, s +offset, match[0].rm_eo);
699 skip: offset += match[0].rm_eo;
700 len -= match[0].rm_eo;
1399 match[no].rm_eo == -1)
1401 mlen = match[no].rm_eo - match[no].rm_so;
/freebsd-11-stable/contrib/gcclibs/include/
H A Dxregex2.h433 regoff_t rm_eo; /* Byte offset from string's start to substring's end. */
429 regoff_t rm_eo; /* Byte offset from string's start to substring's end. */ member in struct:__anon1428
/freebsd-11-stable/contrib/binutils/include/
H A Dxregex2.h433 regoff_t rm_eo; /* Byte offset from string's start to substring's end. */
429 regoff_t rm_eo; /* Byte offset from string's start to substring's end. */ member in struct:__anon599
/freebsd-11-stable/usr.bin/killall/
H A Dkillall.c365 pmatch.rm_eo = strlen(thiscmd);
391 pmatch.rm_eo = strlen(thiscmd);
/freebsd-11-stable/contrib/less/
H A Dpattern.c357 rm.rm_eo = line_len;
364 *ep = line + rm.rm_eo;

Completed in 291 milliseconds

12