| /netbsd/src/external/bsd/tre/dist/lib/ |
| D | regexec.c | 63 pmatch[i].rm_eo = match_eo; in tre_fill_pmatch() 65 pmatch[i].rm_eo = tags[submatch_data[i].eo_tag]; in tre_fill_pmatch() 69 if (pmatch[i].rm_so == -1 || pmatch[i].rm_eo == -1) in tre_fill_pmatch() 70 pmatch[i].rm_so = pmatch[i].rm_eo = -1; in tre_fill_pmatch() 74 submatch_data[i].eo_tag, pmatch[i].rm_eo)); in tre_fill_pmatch() 82 if (pmatch[i].rm_eo == -1) in tre_fill_pmatch() 84 assert(pmatch[i].rm_so <= pmatch[i].rm_eo); in tre_fill_pmatch() 92 || pmatch[i].rm_eo > pmatch[parents[j]].rm_eo) in tre_fill_pmatch() 93 pmatch[i].rm_so = pmatch[i].rm_eo = -1; in tre_fill_pmatch() 102 pmatch[i].rm_eo = -1; in tre_fill_pmatch() [all …]
|
| /netbsd/src/external/bsd/tmux/dist/ |
| D | regsub.c | 48 if (i < n && m[i].rm_so != m[i].rm_eo) { in regsub_expand() 50 m[i].rm_eo); in regsub_expand() 97 m[0].rm_so != m[0].rm_eo) { in regsub() 101 last = start + m[0].rm_eo; in regsub() 102 start += m[0].rm_eo; in regsub() 105 last = start + m[0].rm_eo; in regsub() 106 start += m[0].rm_eo + 1; in regsub()
|
| /netbsd/src/tests/lib/libc/regex/ |
| D | main.c | 134 subs[0].rm_eo = strlen(argv[optind]) - endoff; in main() 144 len = (int)(subs[0].rm_eo - subs[0].rm_so); in main() 156 (int)(subs[i].rm_eo - subs[i].rm_so), in main() 294 subs[0].rm_eo = strchr(f2, ')') - f2; in try() 455 if (sub.rm_so > sub.rm_eo || (sub.rm_so == -1 && sub.rm_eo != -1) || in check() 456 (sub.rm_so != -1 && sub.rm_eo == -1) || in check() 458 (sub.rm_eo != -1 && sub.rm_eo < 0) ) { in check() 460 (long)sub.rm_eo); in check() 475 if (sub.rm_eo > (ssize_t)strlen(str)) { in check() 477 (long)sub.rm_so, (long)sub.rm_eo); in check() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/gdb/ |
| D | ui-style.c | 246 gdb_assert (subexps[FINAL_SUBEXP].rm_eo - subexps[FINAL_SUBEXP].rm_so == 1); in parse() 251 *n_read = subexps[0].rm_eo; in parse() 263 if (subexps[DATA_SUBEXP].rm_so == subexps[DATA_SUBEXP].rm_eo) in parse() 267 i < subexps[DATA_SUBEXP].rm_eo; in parse() 362 *n_read = subexps[0].rm_eo; in parse() 371 *n_read = subexps[0].rm_eo; in parse() 387 *n_read = subexps[0].rm_eo; in parse() 402 *n_read = subexps[FINAL_SUBEXP].rm_eo; in skip_ansi_escape()
|
| /netbsd/src/bin/ed/ |
| D | sub.c | 199 NEWLINE_TO_NUL(txt, rm[0].rm_eo); in substitute_matching_text() 206 i = rm[0].rm_eo; in substitute_matching_text() 213 txt += rm[0].rm_eo; in substitute_matching_text() 214 } while (*txt && (!changed || ((gflag & GSG) && rm[0].rm_eo)) in substitute_matching_text() 218 if (i > 0 && !rm[0].rm_eo && (gflag & GSG)) { in substitute_matching_text() 244 k = rm[0].rm_eo; in apply_subst_template() 251 k = rm[n].rm_eo; in apply_subst_template()
|
| /netbsd/src/crypto/external/bsd/netpgp/dist/src/libpaa/ |
| D | libpaa.c | 107 (int)(matches[1].rm_eo - matches[1].rm_so), in fill_identity() 116 (int)(matches[1].rm_eo - matches[1].rm_so), in fill_identity() 119 (int)(matches[2].rm_eo - matches[2].rm_so), in fill_identity() 122 (int)(matches[3].rm_eo - matches[3].rm_so), in fill_identity() 247 (int)(matches[1].rm_eo - matches[1].rm_so), &in[(int)matches[1].rm_so]); in paa_format_response() 289 (size_t)(matches[1].rm_eo - matches[1].rm_so), buf, sizeof(buf)); in paa_check_response() 308 (int)(matches[2].rm_eo - matches[2].rm_so), &verified[(int)matches[2].rm_so]); in paa_check_response() 310 (const unsigned)(matches[2].rm_eo - matches[2].rm_so), in paa_check_response() 324 (int)(matches[1].rm_eo - matches[1].rm_so), in paa_check_response()
|
| /netbsd/src/usr.bin/grep/ |
| D | util.c | 298 pmatch.rm_eo = l->len; in procline() 311 st = pmatch.rm_eo; in procline() 316 st = pmatch.rm_eo; in procline() 323 (size_t)pmatch.rm_eo != l->len)) in procline() 334 if ((size_t)pmatch.rm_eo != l->len && in procline() 335 sscanf(&l->dat[pmatch.rm_eo], in procline() 482 matches[i].rm_eo - matches[i].rm_so, 1, in printline() 487 a = matches[i].rm_eo; in printline()
|
| D | fastgrep.c | 229 pmatch->rm_eo = len; in grep_search() 248 pmatch->rm_eo = j + fg->len; in grep_search() 259 pmatch->rm_eo = j; in grep_search() 274 pmatch->rm_eo = j + fg->len; in grep_search()
|
| /netbsd/src/usr.bin/sed/ |
| D | process.c | 413 if (lastempty || match[0].rm_so != match[0].rm_eo) { in substitute() 423 if (match[0].rm_so != match[0].rm_eo) { in substitute() 424 s += match[0].rm_eo; in substitute() 425 slen -= match[0].rm_eo; in substitute() 442 if (match[0].rm_eo == match[0].rm_so) in substitute() 443 match[0].rm_eo = match[0].rm_so + 1; in substitute() 444 s += match[0].rm_eo; in substitute() 445 slen -= match[0].rm_eo; in substitute() 460 s += match[0].rm_eo; in substitute() 461 slen -= match[0].rm_eo; in substitute() [all …]
|
| /netbsd/src/external/gpl3/gcc/dist/fixincludes/ |
| D | fixfixes.c | 139 const char* pe = text + rm[1].rm_eo; in emit_gnu_type() 166 return text += rm[0].rm_eo; in emit_gnu_type() 222 len = pRM->rm_eo - pRM->rm_so; in format_write() 286 text += rm[0].rm_eo; in FIX_PROC_HEAD() 338 p += rm[0].rm_eo; in FIX_PROC_HEAD() 423 p += rm[0].rm_eo; in FIX_PROC_HEAD() 544 base += match[0].rm_eo; in FIX_PROC_HEAD() 576 if (match[0].rm_eo > limit - base) in FIX_PROC_HEAD() 589 base += match[0].rm_eo; in FIX_PROC_HEAD()
|
| D | fixtests.c | 83 base += match[0].rm_eo; in TEST_FOR_FIX_PROC_HEAD() 109 if (match[0].rm_eo <= limit - base) in TEST_FOR_FIX_PROC_HEAD()
|
| /netbsd/src/external/bsd/nvi/dist/common/ |
| D | search.c | 239 match[0].rm_eo = len; in f_search() 264 match[0].rm_so, match[0].rm_eo); in f_search() 376 match[0].rm_eo = len; in b_search() 380 "B search: %lu from 0 to %qu\n", lno, match[0].rm_eo); in b_search() 384 ((size_t)match[0].rm_eo == len ? 0 : REG_NOTEOL) | REG_STARTEND); in b_search() 405 match[0].rm_so, match[0].rm_eo); in b_search() 417 match[0].rm_eo = len; in b_search()
|
| /netbsd/src/external/bsd/tre/dist/src/ |
| D | agrep.c | 291 next_delim_len = pmatch[0].rm_eo - pmatch[0].rm_so; in tre_agrep_get_next_record() 292 next_record = next_record + pmatch[0].rm_eo; in tre_agrep_get_next_record() 482 invert_match ? record_len : (int)pmatch[0].rm_eo); in tre_agrep_handle_file() 495 pmatch[0].rm_eo += delim_len; in tre_agrep_handle_file() 502 printf("%.*s", (int)(pmatch[0].rm_eo - pmatch[0].rm_so), in tre_agrep_handle_file() 505 printf("%.*s", (int)(record_len - pmatch[0].rm_eo), in tre_agrep_handle_file() 506 record + pmatch[0].rm_eo); in tre_agrep_handle_file()
|
| /netbsd/src/external/bsd/openldap/dist/servers/slapd/ |
| D | acl.c | 258 for ( i = 0; i < dnmaxcount && dn_data[i].rm_eo > 0; i++ ) { in slap_access_allowed() 263 (int)dn_data[i].rm_eo ); in slap_access_allowed() 264 if ( dn_data[i].rm_so <= dn_data[0].rm_eo ) { in slap_access_allowed() 267 n < dn_data[i].rm_eo; n++ ) { in slap_access_allowed() 276 for ( i = 0; i < valmaxcount && val_data[i].rm_eo > 0; i++ ) { in slap_access_allowed() 281 (int)val_data[i].rm_eo ); in slap_access_allowed() 282 if ( val_data[i].rm_so <= val_data[0].rm_eo ) { in slap_access_allowed() 285 n < val_data[i].rm_eo; n++ ) { in slap_access_allowed() 615 matches->dn_data[0].rm_eo = -1; in slap_acl_get() 617 matches->val_data[0].rm_eo = -1; in slap_acl_get() [all …]
|
| /netbsd/src/usr.bin/m4/ |
| D | gnum4.c | 278 pm[n].rm_eo != -1) { in add_sub() 280 pm[n].rm_eo - pm[n].rm_so); in add_sub() 329 if (pm[0].rm_eo != 0) { in do_subst() 330 if (string[pm[0].rm_eo-1] == '\n') in do_subst() 340 if (pm[0].rm_so == pm[0].rm_eo && in do_subst() 354 string += pm[0].rm_eo; in do_subst()
|
| /netbsd/src/external/bsd/nvi/dist/regex/ |
| D | engine.c | 164 stop = string + pmatch[0].rm_eo; 229 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; 262 assert(m->pmatch[i].rm_eo == -1); 281 pmatch[0].rm_eo = endp - m->offp; 290 pmatch[i].rm_eo = -1; 479 m->pmatch[i].rm_eo = sp - m->offp; 613 if (m->pmatch[i].rm_eo == -1) 616 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so; 685 offsave = m->pmatch[i].rm_eo; 686 m->pmatch[i].rm_eo = sp - m->offp; [all …]
|
| /netbsd/src/external/bsd/tre/dist/tests/ |
| D | retest.c | 248 int rm_so, rm_eo; in check() local 252 rm_eo = va_arg(ap, int); in check() 259 (n = rm_eo, rm_eo = woffs[rm_eo]) < 0) in check() 268 || pmatch[i].rm_eo != rm_eo) in check() 281 i, rm_so, rm_eo, rm_eo - rm_so, str + rm_so, in check() 282 (int)pmatch[i].rm_so, (int)pmatch[i].rm_eo, in check() 283 (int)(pmatch[i].rm_eo - pmatch[i].rm_so), in check() 303 if (pmatch[i].rm_so != -1 || pmatch[i].rm_eo != -1) in check() 314 i, (int)pmatch[i].rm_so, (int)pmatch[i].rm_eo); in check()
|
| /netbsd/src/sys/dev/microcode/aic7xxx/ |
| D | aicasm_scan.l | 539 body_pos -= match.rm_eo - match.rm_so; 573 && (matches[1].rm_eo + search_pos) <= body_pos 574 && (matches[1].rm_eo + search_pos) > *next_match) { 576 *next_match = match->rm_eo + search_pos;
|
| /netbsd/src/lib/libc/regex/ |
| D | engine.c | 234 stop = string + (size_t)pmatch[0].rm_eo; in matcher() 346 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; in matcher() 378 assert(m->pmatch[i].rm_eo == (regoff_t)-1); in matcher() 400 pmatch[0].rm_eo = endp - m->offp; in matcher() 409 pmatch[i].rm_eo = (regoff_t)-1; in matcher() 612 m->pmatch[i].rm_eo = sp - m->offp; in dissect() 784 if (m->pmatch[i].rm_eo == -1) in backref() 787 len = (size_t)(m->pmatch[i].rm_eo - m->pmatch[i].rm_so); in backref() 854 offsave = m->pmatch[i].rm_eo; in backref() 855 m->pmatch[i].rm_eo = sp - m->offp; in backref() [all …]
|
| D | regsub.c | 135 } else if (rm[i].rm_so != -1 && rm[i].rm_eo != -1) { in regsub1() 136 size_t l = (size_t)(rm[i].rm_eo - rm[i].rm_so); in regsub1()
|
| /netbsd/src/crypto/external/bsd/netpgp/dist/src/hkpclient/ |
| D | hkpc.c | 129 ret = netpgp_format_json(fp, &res[(int)matches[0].rm_eo], 1); in hkpc_print_key() 131 (void) fprintf(fp, "%s\n", &res[(int)matches[0].rm_eo]); in hkpc_print_key()
|
| /netbsd/src/external/bsd/nvi/dist/ex/ |
| D | ex_subst.c | 557 match[0].rm_eo = len; in s() 598 if (!empty_ok && match[0].rm_so == 0 && match[0].rm_eo == 0) { in s() 617 to.cno = match[0].rm_eo + offset; in s() 674 BUILD(sp, st + offset, match[0].rm_eo); in s() 708 skip: offset += match[0].rm_eo; in s() 709 len -= match[0].rm_eo; in s() 1416 match[no].rm_eo == -1) in re_sub() 1418 mlen = match[no].rm_eo - match[no].rm_so; in re_sub()
|
| /netbsd/src/external/gpl3/gcc/dist/gcc/ |
| D | regsub.cc | 134 } else if (rm[i].rm_so != -1 && rm[i].rm_eo != -1) { in regsub1() 135 size_t l = (size_t)(rm[i].rm_eo - rm[i].rm_so); in regsub1()
|
| /netbsd/src/external/bsd/tre/dist/python/ |
| D | tre-python.c | 181 if (rm->rm_so == (-1) && rm->rm_eo == (-1)) in PyTreMatch_groups() 188 range = Py_BuildValue("(ii)", rm->rm_so, rm->rm_eo); in PyTreMatch_groups() 208 if (rm->rm_so == (-1) && rm->rm_eo == (-1)) in PyTreMatch_groupi() 213 result = PySequence_GetSlice(self->targ, rm->rm_so, rm->rm_eo); in PyTreMatch_groupi()
|
| /netbsd/src/external/bsd/libarchive/dist/tar/ |
| 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()
|