/freebsd-10.1-release/contrib/llvm/tools/lldb/source/Core/ |
H A D | RegularExpression.cpp | 167 if (m_matches[idx].rm_eo == m_matches[idx].rm_so) 173 else if (m_matches[idx].rm_eo > 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_matches[idx2].rm_eo) 216 match_str = llvm::StringRef (s + m_matches[idx1].rm_so, m_matches[idx2].rm_eo - m_matches[idx1].rm_so);
|
/freebsd-10.1-release/usr.bin/grep/regex/ |
H A D | glue.h | 46 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-10.1-release/lib/libc/regex/grot/ |
H A D | main.c | 96 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), 260 subs[0].rm_eo = strchr(f2, ')') - f2; 426 /* check rm_so and rm_eo for consistency */ 427 if (sub.rm_so > sub.rm_eo || (sub.rm_so == -1 && sub.rm_eo != -1) || 428 (sub.rm_so != -1 && sub.rm_eo == -1) || 430 (sub.rm_eo != -1 && sub.rm_eo < [all...] |
/freebsd-10.1-release/bin/ed/ |
H A D | sub.c | 190 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-10.1-release/contrib/flex/ |
H A D | regex.c | 87 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-10.1-release/contrib/llvm/lib/Support/ |
H A D | regex_impl.h | 45 llvm_regoff_t rm_eo; /* end of match */ member in struct:__anon2418
|
H A D | Regex.cpp | 64 pm[0].rm_eo = String.size(); 87 assert(pm[i].rm_eo >= pm[i].rm_so); 89 pm[i].rm_eo-pm[i].rm_so));
|
H A D | regengine.inc | 150 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-10.1-release/contrib/nvi/regex/ |
H A D | regex.h | 62 regoff_t rm_eo; /* end of match */ member in struct:__anon4093
|
H A D | engine.c | 160 stop = string + pmatch[0].rm_eo; 225 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; 258 assert(m->pmatch[i].rm_eo == -1); 277 pmatch[0].rm_eo = endp - m->offp; 286 pmatch[i].rm_eo = -1; 474 m->pmatch[i].rm_eo = sp - m->offp; 608 if (m->pmatch[i].rm_eo == -1) 611 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so; 680 offsave = m->pmatch[i].rm_eo; 681 m->pmatch[i].rm_eo [all...] |
/freebsd-10.1-release/include/ |
H A D | regex.h | 60 regoff_t rm_eo; /* end of match */ member in struct:__anon5488
|
/freebsd-10.1-release/contrib/nvi/common/ |
H A D | search.c | 239 match[0].rm_eo = len; 264 match[0].rm_so, match[0].rm_eo); 379 match[0].rm_eo = len; 382 TRACE(sp, "B search: %lu from 0 to %qu\n", lno, match[0].rm_eo); 386 (match[0].rm_eo == len ? 0 : REG_NOTEOL) | REG_STARTEND); 407 match[0].rm_so, match[0].rm_eo); 419 match[0].rm_eo = len;
|
/freebsd-10.1-release/usr.bin/sed/ |
H A D | process.c | 396 if (lastempty || match[0].rm_so != match[0].rm_eo) { 406 if (match[0].rm_so != match[0].rm_eo) { 407 s += match[0].rm_eo; 408 slen -= match[0].rm_eo; 425 if (match[0].rm_eo == match[0].rm_so) 426 match[0].rm_eo = match[0].rm_so + 1; 427 s += match[0].rm_eo; 428 slen -= match[0].rm_eo; 443 s += match[0].rm_eo; 444 slen -= match[0].rm_eo; [all...] |
/freebsd-10.1-release/usr.bin/grep/ |
H A D | util.c | 282 pmatch.rm_eo = l->len; 295 : (size_t)pmatch.rm_eo; 301 (size_t)pmatch.rm_eo != l->len) 312 else if ((size_t)pmatch.rm_eo != 314 sscanf(&l->dat[pmatch.rm_eo], 475 matches[i].rm_eo - matches[i].rm_so, 1, 479 a = matches[i].rm_eo;
|
/freebsd-10.1-release/contrib/apr-util/dbd/ |
H A D | apr_dbd_freetds.c | 202 match[0].rm_eo - match[0].rm_so); 410 int len = matches[1].rm_eo - matches[1].rm_so - 2; 415 ret = recurse_args(pool, n+1, query+matches[0].rm_eo, 416 stmt, offs+matches[0].rm_eo); 419 stmt->fmt + offs + matches[0].rm_eo-1, 420 strlen(stmt->fmt+offs+matches[0].rm_eo)+2); 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/usr.bin/sort/ |
H A D | sort.c | 644 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-10.1-release/usr.bin/m4/ |
H A D | gnum4.c | 266 pm[n].rm_eo != -1) { 268 pm[n].rm_eo - pm[n].rm_so); 316 if (pm[0].rm_eo != 0) { 317 if (string[pm[0].rm_eo-1] == '\n') 327 if (pm[0].rm_so == pm[0].rm_eo && 341 string += pm[0].rm_eo;
|
/freebsd-10.1-release/contrib/libarchive/tar/ |
H A D | subst.c | 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); 293 name += matches[0].rm_eo;
|
/freebsd-10.1-release/lib/libc/regex/ |
H A D | engine.c | 178 stop = string + pmatch[0].rm_eo; 289 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; 322 assert(m->pmatch[i].rm_eo == -1); 343 pmatch[0].rm_eo = endp - m->offp; 352 pmatch[i].rm_eo = -1; 539 m->pmatch[i].rm_eo = sp - m->offp; 674 if (m->pmatch[i].rm_eo == -1) 677 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so; 744 offsave = m->pmatch[i].rm_eo; 745 m->pmatch[i].rm_eo [all...] |
/freebsd-10.1-release/contrib/nvi/ex/ |
H A D | ex_subst.c | 548 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-10.1-release/contrib/binutils/include/ |
H A D | xregex2.h | 433 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:__anon606
|
/freebsd-10.1-release/contrib/gcclibs/include/ |
H A D | xregex2.h | 433 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:__anon1229
|
/freebsd-10.1-release/usr.bin/killall/ |
H A D | killall.c | 357 pmatch.rm_eo = strlen(thiscmd); 383 pmatch.rm_eo = strlen(thiscmd);
|
/freebsd-10.1-release/contrib/libgnuregex/ |
H A D | regexec.c | 238 length = pmatch[0].rm_eo; 485 rval = pmatch[0].rm_eo - start; 555 regs->end[i] = pmatch[i].rm_eo; 893 pmatch[reg_idx].rm_so = pmatch[reg_idx].rm_eo = -1; 897 pmatch[0].rm_eo = mctx.match_last; 920 pmatch[reg_idx].rm_eo = 921 (pmatch[reg_idx].rm_eo == mctx.input.valid_len 923 : mctx.input.offsets[pmatch[reg_idx].rm_eo]); 929 pmatch[reg_idx].rm_eo += match_first; 934 pmatch[nmatch + reg_idx].rm_eo [all...] |
/freebsd-10.1-release/bin/pax/ |
H A D | pat_rep.c | 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))
|