/freebsd/contrib/netbsd-tests/lib/libc/regex/ |
H A D | main.c | 124 subs[0].rm_eo = strlen(argv[optind]) - endoff; in main() 134 len = (int)(subs[0].rm_eo - subs[0].rm_so); in main() 146 (int)(subs[i].rm_eo - subs[i].rm_so), in main() 280 subs[0].rm_eo = strchr(f2, ')') - f2; in try() 441 if (sub.rm_so > sub.rm_eo || (sub.rm_so == -1 && sub.rm_eo != -1) || in check() 442 (sub.rm_so != -1 && sub.rm_eo == -1) || in check() 444 (sub.rm_eo != -1 && sub.rm_eo < 0) ) { in check() 446 (long)sub.rm_eo); in check() 461 if (sub.rm_eo > (ssize_t)strlen(str)) { in check() 463 (long)sub.rm_so, (long)sub.rm_eo); in check() [all …]
|
H A D | t_regex_att.c | 369 if (pm[i].rm_so == -1 && pm[i].rm_eo == -1) in checkmatches() 373 (long long)pm[i].rm_so, (long long)pm[i].rm_eo); in checkmatches()
|
/freebsd/lib/libc/regex/grot/ |
H A D | main.c | 93 subs[0].rm_eo = strlen(argv[optind]) - endoff; in main() 103 len = (int)(subs[0].rm_eo - subs[0].rm_so); in main() 115 (int)(subs[i].rm_eo - subs[i].rm_so), in main() 248 subs[0].rm_eo = strchr(f2, ')') - f2; in try() 407 if (sub.rm_so > sub.rm_eo || (sub.rm_so == -1 && sub.rm_eo != -1) || in check() 408 (sub.rm_so != -1 && sub.rm_eo == -1) || in check() 410 (sub.rm_eo != -1 && sub.rm_eo < 0) ) { in check() 412 (long)sub.rm_eo); in check() 423 if (sub.rm_eo > strlen(str)) { in check() 425 (long)sub.rm_so, (long)sub.rm_eo); in check() [all …]
|
/freebsd/usr.bin/grep/ |
H A D | util.c | 452 stringlen = pmatch[0].rm_eo; in litexec() 473 pmatch[idx].rm_eo = pmatch[idx].rm_so + pat->len; in litexec() 484 pmatch[n].rm_so = pmatch[n].rm_eo = -1; in litexec() 541 lastmatch.rm_so = lastmatch.rm_eo = 0; in procline() 553 pmatch.rm_eo = pc->ln.len; in procline() 565 (size_t)pmatch.rm_eo != pc->ln.len)) in procline() 574 else if ((size_t)pmatch.rm_eo != in procline() 576 sscanf(&pc->ln.dat[pmatch.rm_eo], in procline() 613 (pmatch.rm_eo - pmatch.rm_so) > in procline() 614 (chkmatch.rm_eo - chkmatch.rm_so))) { in procline() [all …]
|
/freebsd/bin/ed/ |
H A D | sub.c | 188 NEWLINE_TO_NUL(txt, rm[0].rm_eo); in substitute_matching_text() 195 i = rm[0].rm_eo; in substitute_matching_text() 202 txt += rm[0].rm_eo; in substitute_matching_text() 204 (!changed || ((gflag & GSG) && rm[0].rm_eo)) && in substitute_matching_text() 208 if (i > 0 && !rm[0].rm_eo && (gflag & GSG)) { in substitute_matching_text() 234 k = rm[0].rm_eo; in apply_subst_template() 241 k = rm[n].rm_eo; in apply_subst_template()
|
/freebsd/contrib/flex/src/ |
H A D | regex.c | 81 if (m == NULL || m->rm_so < 0 || m->rm_eo < m->rm_so) in regmatch_dup() 83 len = (size_t) (m->rm_eo - m->rm_so); in regmatch_dup() 120 return m->rm_eo - m->rm_so; in regmatch_len() 164 return (m == NULL || m->rm_so < 0 || m->rm_so == m->rm_eo); in regmatch_empty()
|
/freebsd/contrib/nvi/common/ |
H A D | search.c | 230 match[0].rm_eo = len; in f_search() 255 match[0].rm_so, match[0].rm_eo); in f_search() 364 match[0].rm_eo = len; in b_search() 367 TRACE(sp, "B search: %lu from 0 to %qu\n", lno, match[0].rm_eo); in b_search() 371 (match[0].rm_eo == len ? 0 : REG_NOTEOL) | REG_STARTEND); in b_search() 392 match[0].rm_so, match[0].rm_eo); in b_search() 404 match[0].rm_eo = len; in b_search()
|
/freebsd/usr.bin/sort/ |
H A D | sort.c | 638 if (pmatch[0].rm_eo <= pmatch[0].rm_so) in parse_pos() 641 if (pmatch[1].rm_eo <= pmatch[1].rm_so) in parse_pos() 644 len = pmatch[1].rm_eo - pmatch[1].rm_so; in parse_pos() 670 if (pmatch[2].rm_eo > pmatch[2].rm_so) { in parse_pos() 671 len = pmatch[2].rm_eo - pmatch[2].rm_so - 1; in parse_pos() 699 if (pmatch[3].rm_eo > pmatch[3].rm_so) { in parse_pos() 702 for (i = pmatch[3].rm_so; i < pmatch[3].rm_eo; i++) { in parse_pos() 794 if (pmatch[0].rm_eo <= pmatch[0].rm_so) in parse_pos_obs() 797 if (pmatch[1].rm_eo <= pmatch[1].rm_so) in parse_pos_obs() 800 len = pmatch[1].rm_eo - pmatch[1].rm_so; in parse_pos_obs() [all …]
|
/freebsd/usr.bin/sed/ |
H A D | process.c | 414 match[0].rm_so != match[0].rm_eo) { in substitute() 422 if (match[0].rm_eo - le) in substitute() 423 cspace(&SS, s, match[0].rm_eo - le, in substitute() 430 s = ps + match[0].rm_eo; in substitute() 431 slen = psl - match[0].rm_eo; in substitute() 432 le = match[0].rm_eo; in substitute() 438 if (match[0].rm_so == match[0].rm_eo) { in substitute() 674 match[0].rm_eo = stop; in regexec_e() 722 } else if (match[no].rm_so != -1 && match[no].rm_eo != -1) { in regsub() 723 len = match[no].rm_eo - match[no].rm_so; in regsub()
|
/freebsd/sys/dev/aic7xxx/aicasm/ |
H A D | aicasm_scan.l | 517 regmatch_t match = { .rm_so = 0, .rm_eo = 0 }; 546 body_pos -= match.rm_eo - match.rm_so; 580 && (matches[1].rm_eo + search_pos) <= body_pos 581 && (matches[1].rm_eo + search_pos) > *next_match) { 583 *next_match = match->rm_eo + search_pos;
|
/freebsd/usr.bin/m4/ |
H A D | gnum4.c | 287 pm[n].rm_eo != -1) { in add_sub() 289 pm[n].rm_eo - pm[n].rm_so); in add_sub() 338 if (pm[0].rm_eo != 0) { in do_subst() 339 if (string[pm[0].rm_eo-1] == '\n') in do_subst() 349 if (pm[0].rm_so == pm[0].rm_eo && in do_subst() 363 string += pm[0].rm_eo; in do_subst()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | Regex.cpp | 103 pm[0].rm_eo = String.size(); in match() 128 assert(pm[i].rm_eo >= pm[i].rm_so); in match() 130 pm[i].rm_eo-pm[i].rm_so)); in match()
|
H A D | regex_impl.h | 45 llvm_regoff_t rm_eo; /* end of match */ member
|
H A D | regengine.inc | 153 stop = string + pmatch[0].rm_eo; 220 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; 253 assert(m->pmatch[i].rm_eo == -1); 273 pmatch[0].rm_eo = endp - m->offp; 282 pmatch[i].rm_eo = -1; 508 m->pmatch[i].rm_eo = sp - m->offp; 628 if (m->pmatch[i].rm_eo == -1) 631 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so; 702 offsave = m->pmatch[i].rm_eo; 703 m->pmatch[i].rm_eo = sp - m->offp; [all …]
|
/freebsd/contrib/nvi/regex/ |
H A D | engine.c | 150 stop = string + pmatch[0].rm_eo; in matcher() 215 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; in matcher() 248 assert(m->pmatch[i].rm_eo == -1); in matcher() 267 pmatch[0].rm_eo = endp - m->offp; in matcher() 276 pmatch[i].rm_eo = -1; in matcher() 458 m->pmatch[i].rm_eo = sp - m->offp; in dissect() 585 if (m->pmatch[i].rm_eo == -1) in backref() 588 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so; in backref() 657 offsave = m->pmatch[i].rm_eo; in backref() 658 m->pmatch[i].rm_eo = sp - m->offp; in backref() [all …]
|
H A D | regex.h | 58 regoff_t rm_eo; /* end of match */ member
|
/freebsd/lib/libc/regex/ |
H A D | engine.c | 214 stop = string + pmatch[0].rm_eo; in matcher() 330 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; in matcher() 363 assert(m->pmatch[i].rm_eo == -1); in matcher() 384 pmatch[0].rm_eo = endp - m->offp; in matcher() 393 pmatch[i].rm_eo = -1; in matcher() 584 m->pmatch[i].rm_eo = sp - m->offp; in dissect() 748 if (m->pmatch[i].rm_eo == -1) in backref() 751 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so; in backref() 818 offsave = m->pmatch[i].rm_eo; in backref() 819 m->pmatch[i].rm_eo = sp - m->offp; in backref() [all …]
|
/freebsd/contrib/nvi/ex/ |
H A D | ex_subst.c | 543 match[0].rm_eo = len; in s() 584 if (!empty_ok && match[0].rm_so == 0 && match[0].rm_eo == 0) { in s() 603 to.cno = match[0].rm_eo + offset; in s() 662 BUILD(sp, s +offset, match[0].rm_eo); in s() 696 skip: offset += match[0].rm_eo; in s() 697 len -= match[0].rm_eo; in s() 1395 match[no].rm_eo == -1) in re_sub() 1397 mlen = match[no].rm_eo - match[no].rm_so; in re_sub()
|
/freebsd/contrib/libarchive/tar/ |
H A D | subst.c | 250 matches[0].rm_eo - matches[0].rm_so); in apply_substitution() 281 …realloc_strncat(result, name + matches[c - '0'].rm_so, matches[c - '0'].rm_eo - matches[c - '0'].r… in apply_substitution() 293 name += matches[0].rm_eo; in apply_substitution()
|
/freebsd/include/ |
H A D | regex.h | 59 regoff_t rm_eo; /* end of match */ member
|
/freebsd/bin/pax/ |
H A D | pat_rep.c | 908 inpt += pm[0].rm_eo - pm[0].rm_so; in rep_name() 1017 if ((pmpt->rm_so < 0) || (pmpt->rm_eo < 0) || in resub() 1018 ((len = pmpt->rm_eo - pmpt->rm_so) <= 0)) in resub()
|
/freebsd/usr.bin/killall/ |
H A D | killall.c | 363 pmatch.rm_eo = strlen(thiscmd); in main() 389 pmatch.rm_eo = strlen(thiscmd); in main()
|
/freebsd/tools/tools/drm/radeon/mkregtable/ |
H A D | mkregtable.c | 693 buf[match[0].rm_eo] = 0; in parser_auth() 694 buf[match[1].rm_eo] = 0; in parser_auth() 695 buf[match[2].rm_eo] = 0; in parser_auth()
|
/freebsd/contrib/less/ |
H A D | pattern.c | 331 rm[0].rm_eo = line_len; in match_pattern1() 352 *ep++ = line + rm[i].rm_eo; in match_pattern1()
|
/freebsd/contrib/kyua/utils/text/ |
H A D | regex.cpp | 186 match->rm_eo - match->rm_so); in get()
|