/freebsd-13-stable/contrib/flex/src/ |
H A D | regex.c | 81 if (m == NULL || m->rm_so < 0 || m->rm_eo < m->rm_so) 83 len = (size_t) (m->rm_eo - m->rm_so); 87 strncpy (str, src + m->rm_so, len); 100 if (m == NULL || m->rm_so < 0) { 106 snprintf (dest, (size_t) regmatch_len(m), "%s", src + m->rm_so); 116 if (m == NULL || m->rm_so < 0) { 120 return m->rm_eo - m->rm_so; 141 if (m == NULL || m->rm_so < 0) 164 return (m == NULL || m->rm_so < [all...] |
/freebsd-13-stable/lib/libc/regex/grot/ |
H A D | main.c | 95 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-13-stable/contrib/netbsd-tests/lib/libc/regex/ |
H A D | main.c | 123 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; 440 /* check rm_so an [all...] |
H A D | t_regex_att.c | 369 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-13-stable/usr.bin/grep/ |
H A D | util.c | 431 ofs = pmatch[0].rm_so; 452 pmatch[idx].rm_so = ofs + (sub - search); 453 pmatch[idx].rm_eo = pmatch[idx].rm_so + pat->len; 456 ofs = pmatch[idx].rm_so + 1; 464 pmatch[n].rm_so = pmatch[n].rm_eo = -1; 521 lastmatch.rm_so = lastmatch.rm_eo = 0; 532 pmatch.rm_so = st; 544 if (xflag && (pmatch.rm_so != 0 || 550 if (pmatch.rm_so != 0 && 551 sscanf(&pc->ln.dat[pmatch.rm_so [all...] |
/freebsd-13-stable/contrib/nvi/common/ |
H A D | search.c | 224 match[0].rm_so = coff; 233 (match[0].rm_so == 0 ? 0 : REG_NOTBOL) | REG_STARTEND); 250 match[0].rm_so, match[0].rm_eo); 253 rm->cno = match[0].rm_so; 358 match[0].rm_so = 0; 378 if (coff != 0 && match[0].rm_so >= coff) 387 match[0].rm_so, match[0].rm_eo); 396 last = match[0].rm_so++; 397 if (match[0].rm_so >= len) 401 (match[0].rm_so [all...] |
/freebsd-13-stable/contrib/nvi/regex/ |
H A D | regex.h | 57 regoff_t rm_so; /* start of match */ member in struct:__anon5485
|
H A D | engine.c | 149 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-13-stable/contrib/llvm-project/llvm/lib/Support/ |
H A D | regex_impl.h | 44 llvm_regoff_t rm_so; /* start of match */ member in struct:__anon3827
|
H A D | Regex.cpp | 101 pm[0].rm_so = 0; 122 if (pm[i].rm_so == -1) { 127 assert(pm[i].rm_eo >= pm[i].rm_so); 128 Matches->push_back(StringRef(String.data()+pm[i].rm_so, 129 pm[i].rm_eo-pm[i].rm_so));
|
H A D | regengine.inc | 149 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-13-stable/contrib/libarchive/tar/ |
H A D | subst.c | 246 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-13-stable/usr.bin/sort/ |
H A D | sort.c | 646 if (pmatch[0].rm_eo <= pmatch[0].rm_so) 649 if (pmatch[1].rm_eo <= pmatch[1].rm_so) 652 len = pmatch[1].rm_eo - pmatch[1].rm_so; 655 strncpy(f, s + pmatch[1].rm_so, len); 678 if (pmatch[2].rm_eo > pmatch[2].rm_so) { 679 len = pmatch[2].rm_eo - pmatch[2].rm_so - 1; 682 strncpy(c, s + pmatch[2].rm_so + 1, len); 707 if (pmatch[3].rm_eo > pmatch[3].rm_so) { 710 for (i = pmatch[3].rm_so; i < pmatch[3].rm_eo; i++) { 802 if (pmatch[0].rm_eo <= pmatch[0].rm_so) [all...] |
/freebsd-13-stable/contrib/kyua/utils/text/ |
H A D | regex.cpp | 159 if (_pimpl->_matches[i].rm_so != -1) 185 return std::string(_pimpl->_string.c_str() + match->rm_so, 186 match->rm_eo - match->rm_so);
|
/freebsd-13-stable/usr.bin/m4/ |
H A D | gnum4.c | 288 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-13-stable/include/ |
H A D | regex.h | 61 regoff_t rm_so; /* start of match */ member in struct:__anon7342
|
/freebsd-13-stable/contrib/apr-util/dbd/unsupported/ |
H A D | apr_dbd_freetds.c | 203 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-13-stable/usr.bin/sed/ |
H A D | process.c | 414 if (n <= 1 && (match[0].rm_so > le)) 415 cspace(&SS, s, match[0].rm_so - le, APPEND); 418 if (lastempty || (match[0].rm_so - le) || 419 match[0].rm_so != match[0].rm_eo) { 443 if (match[0].rm_so == match[0].rm_eo) { 680 match[0].rm_so = start; 729 } else if (match[no].rm_so != -1 && match[no].rm_eo != -1) { 730 len = match[no].rm_eo - match[no].rm_so; 732 memmove(dst, string + match[no].rm_so, len);
|
/freebsd-13-stable/bin/ed/ |
H A D | sub.c | 187 i = rm[0].rm_so; 235 j = rm[0].rm_so; 242 j = rm[n].rm_so;
|
/freebsd-13-stable/lib/libc/regex/ |
H A D | engine.c | 218 start = string + pmatch[0].rm_so; 335 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; 367 assert(m->pmatch[i].rm_so == -1); 388 pmatch[0].rm_so = m->coldp - m->offp; 397 pmatch[i].rm_so = -1; 584 m->pmatch[i].rm_so = sp - m->offp; 755 assert(m->pmatch[i].rm_so != -1); 756 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so; 762 ssp = m->offp + m->pmatch[i].rm_so; 813 offsave = m->pmatch[i].rm_so; [all...] |
/freebsd-13-stable/contrib/nvi/ex/ |
H A D | ex_subst.c | 538 * Generally, match[0].rm_so is the offset of the start 542 nextmatch: match[0].rm_so = 0; 584 if (!empty_ok && match[0].rm_so == 0 && match[0].rm_eo == 0) { 602 from.cno = match[0].rm_so + offset; 680 sp->cno = match[0].rm_so; 683 BUILD(sp, s + offset, match[0].rm_so); 1391 subzero: if (match[no].rm_so == -1 || 1394 mlen = match[no].rm_eo - match[no].rm_so; 1395 for (t = ip + match[no].rm_so; mlen--; ++t)
|
/freebsd-13-stable/bin/pax/ |
H A D | pat_rep.c | 915 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-13-stable/contrib/less/ |
H A D | pattern.c | 356 rm.rm_so = 0; 363 *sp = line + rm.rm_so;
|
/freebsd-13-stable/usr.bin/killall/ |
H A D | killall.c | 364 pmatch.rm_so = 0; 390 pmatch.rm_so = 0;
|
/freebsd-13-stable/bin/expr/ |
H A D | expr.y | 546 if (regexec(&rp, a->u.s, (size_t)2, rm, 0) == 0 && rm[0].rm_so == 0) 547 if (rm[1].rm_so >= 0) { 549 v = make_str(a->u.s + rm[1].rm_so);
|