/netbsd-current/external/bsd/flex/dist/src/ |
H A D | regex.c | 82 if (m == NULL || m->rm_so < 0 || m->rm_eo < m->rm_so) 84 len = (size_t) (m->rm_eo - m->rm_so); 88 strncpy (str, src + m->rm_so, len); 101 if (m == NULL || m->rm_so < 0) { 107 snprintf (dest, (size_t) regmatch_len(m), "%s", src + m->rm_so); 117 if (m == NULL || m->rm_so < 0) { 121 return m->rm_eo - m->rm_so; 142 if (m == NULL || m->rm_so < 0) 165 return (m == NULL || m->rm_so < [all...] |
/netbsd-current/external/bsd/tre/dist/lib/ |
H A D | regexec.c | 58 pmatch[i].rm_so = match_eo; 60 pmatch[i].rm_so = tags[submatch_data[i].so_tag]; 69 if (pmatch[i].rm_so == -1 || pmatch[i].rm_eo == -1) 70 pmatch[i].rm_so = pmatch[i].rm_eo = -1; 73 submatch_data[i].so_tag, pmatch[i].rm_so, 83 assert(pmatch[i].rm_so == -1); 84 assert(pmatch[i].rm_so <= pmatch[i].rm_eo); 91 if (pmatch[i].rm_so < pmatch[parents[j]].rm_so 93 pmatch[i].rm_so [all...] |
/netbsd-current/external/bsd/tmux/dist/ |
H A D | regsub.c | 48 if (i < n && m[i].rm_so != m[i].rm_eo) { 49 regsub_copy(buf, len, text, m[i].rm_so, 88 regsub_copy(&buf, &len, text, last, m[0].rm_so + start); 96 start + m[0].rm_so != last || 97 m[0].rm_so != m[0].rm_eo) {
|
/netbsd-current/tests/lib/libc/regex/ |
H A D | main.c | 133 subs[0].rm_so = startoff; 144 len = (int)(subs[0].rm_eo - subs[0].rm_so); 145 if (subs[0].rm_so != -1) { 148 argv[optind] + subs[0].rm_so); 151 argv[optind] + subs[0].rm_so); 154 if (subs[i].rm_so != -1) 156 (int)(subs[i].rm_eo - subs[i].rm_so), 157 argv[optind] + subs[i].rm_so); 293 subs[0].rm_so = strchr(f2, '(') - f2 + 1; 454 /* check rm_so an [all...] |
/netbsd-current/crypto/external/bsd/netpgp/dist/src/libpaa/ |
H A D | libpaa.c | 107 (int)(matches[1].rm_eo - matches[1].rm_so), 108 &response[(int)matches[1].rm_so]); 116 (int)(matches[1].rm_eo - matches[1].rm_so), 117 &raw_challenge[(int)matches[1].rm_so]); 119 (int)(matches[2].rm_eo - matches[2].rm_so), 120 &raw_challenge[(int)matches[2].rm_so]); 122 (int)(matches[3].rm_eo - matches[3].rm_so), 123 &raw_challenge[(int)matches[3].rm_so]); 247 (int)(matches[1].rm_eo - matches[1].rm_so), &in[(int)matches[1].rm_so]); [all...] |
/netbsd-current/tests/fs/cd9660/ |
H A D | h_hexdump_r.c | 67 noff = (off_t)strtoimax(line + m[1].rm_so, NULL, 16); 70 line + m[2 + i].rm_so, NULL, 16); 73 noff = (off_t)strtoimax(line + m[1].rm_so, NULL, 16);
|
/netbsd-current/external/bsd/nvi/dist/common/ |
H A D | search.c | 238 match[0].rm_so = coff; 247 (match[0].rm_so == 0 ? 0 : REG_NOTBOL) | REG_STARTEND); 264 match[0].rm_so, match[0].rm_eo); 267 rm->cno = match[0].rm_so; 375 match[0].rm_so = 0; 396 if (coff != 0 && (size_t)match[0].rm_so >= coff) 405 match[0].rm_so, match[0].rm_eo); 414 last = match[0].rm_so++; 415 if ((size_t)match[0].rm_so >= len) 419 (match[0].rm_so [all...] |
/netbsd-current/usr.bin/grep/ |
H A D | fastgrep.c | 210 if (pmatch->rm_so == (ssize_t)len) 213 if (fg->bol && pmatch->rm_so != 0) { 214 pmatch->rm_so = len; 233 pmatch->rm_so = j; 244 pmatch->rm_so = j - fg->len; 256 j = pmatch->rm_so; 259 pmatch->rm_so = j;
|
H A D | util.c | 297 pmatch.rm_so = st; 322 (pmatch.rm_so != 0 || 326 if (fg_pattern[i].word && pmatch.rm_so != 0) { 330 if (pmatch.rm_so != 0 && 331 sscanf(&l->dat[pmatch.rm_so - 1], 357 if (st == (size_t)pmatch.rm_so) 476 fwrite(line->dat + a, matches[i].rm_so - a, 1, 481 fwrite(line->dat + matches[i].rm_so, 482 matches[i].rm_eo - matches[i].rm_so, 1,
|
/netbsd-current/external/gpl3/gcc.old/dist/gcc/ |
H A D | regsub.c | 133 } else if (rm[i].rm_so != -1 && rm[i].rm_eo != -1) { 134 size_t l = (size_t)(rm[i].rm_eo - rm[i].rm_so); 135 addnstr(&s, str + rm[i].rm_so, l);
|
/netbsd-current/external/gpl3/gcc/dist/gcc/ |
H A D | regsub.cc | 133 } else if (rm[i].rm_so != -1 && rm[i].rm_eo != -1) { 134 size_t l = (size_t)(rm[i].rm_eo - rm[i].rm_so); 135 addnstr(&s, str + rm[i].rm_so, l);
|
/netbsd-current/lib/libc/regex/ |
H A D | regsub.c | 135 } else if (rm[i].rm_so != -1 && rm[i].rm_eo != -1) { 136 size_t l = (size_t)(rm[i].rm_eo - rm[i].rm_so); 137 addnstr(&s, str + (size_t)rm[i].rm_so, l);
|
/netbsd-current/external/bsd/nvi/dist/regex/ |
H A D | regex.h | 61 regoff_t rm_so; /* start of match */ member in struct:__anon5914
|
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Support/ |
H A D | regex_impl.h | 44 llvm_regoff_t rm_so; /* start of match */ member in struct:__anon1962
|
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));
|
/netbsd-current/external/gpl3/gdb.old/dist/gdb/ |
H A D | ui-style.c | 245 gdb_assert (subexps[0].rm_so == 0); 247 gdb_assert (subexps[FINAL_SUBEXP].rm_eo - subexps[FINAL_SUBEXP].rm_so == 1); 249 if (buf[subexps[FINAL_SUBEXP].rm_so] != 'm') 264 if (subexps[DATA_SUBEXP].rm_so == subexps[DATA_SUBEXP].rm_eo) 267 for (regoff_t i = subexps[DATA_SUBEXP].rm_so; 400 if (match == REG_NOMATCH || buf[subexps[FINAL_SUBEXP].rm_so] != 'm')
|
/netbsd-current/external/gpl3/gdb/dist/gdb/ |
H A D | ui-style.c | 245 gdb_assert (subexps[0].rm_so == 0); 247 gdb_assert (subexps[FINAL_SUBEXP].rm_eo - subexps[FINAL_SUBEXP].rm_so == 1); 249 if (buf[subexps[FINAL_SUBEXP].rm_so] != 'm') 264 if (subexps[DATA_SUBEXP].rm_so == subexps[DATA_SUBEXP].rm_eo) 267 for (regoff_t i = subexps[DATA_SUBEXP].rm_so; 400 if (match == REG_NOMATCH || buf[subexps[FINAL_SUBEXP].rm_so] != 'm')
|
/netbsd-current/usr.bin/sed/ |
H A D | process.c | 413 if (lastempty || match[0].rm_so != match[0].rm_eo) { 415 re_off = match[0].rm_so; 423 if (match[0].rm_so != match[0].rm_eo) { 428 if (match[0].rm_so < slen) 429 cspace(&SS, s + match[0].rm_so, 1, 431 s += match[0].rm_so + 1; 432 slen -= match[0].rm_so + 1; 442 if (match[0].rm_eo == match[0].rm_so) 443 match[0].rm_eo = match[0].rm_so + 1; 454 re_off = match[0].rm_so [all...] |
/netbsd-current/crypto/external/bsd/netpgp/dist/src/hkpd/ |
H A D | hkpd.c | 269 (int)(fmtmatch[1].rm_eo - fmtmatch[1].rm_so), 270 &buf[(int)fmtmatch[1].rm_so]); 283 n = frompercent(&buf[searchmatches[1].rm_so], 284 (int)(searchmatches[1].rm_eo - searchmatches[1].rm_so), 289 if (strncmp(&buf[opmatches[1].rm_so], "vindex", 6) == 0) { 303 } else if (strncmp(&buf[opmatches[1].rm_so], "index", 5) == 0) { 316 } else if (strncmp(&buf[opmatches[1].rm_so], "get", 3) == 0) {
|
/netbsd-current/bin/expr/ |
H A D | expr.y | 121 if (regexec(&rp, $1, 2, rm, 0) == 0 && rm[0].rm_so == 0) { 123 if (rm[1].rm_so >= 0) { 125 (int) (rm[1].rm_eo - rm[1].rm_so), 126 $1 + rm[1].rm_so); 129 (int)(rm[0].rm_eo - rm[0].rm_so));
|
/netbsd-current/external/bsd/libarchive/dist/tar/ |
H A D | subst.c | 261 realloc_strncat(result, name, matches[0].rm_so); 267 name + matches[0].rm_so, 268 matches[0].rm_eo - matches[0].rm_so); 299 realloc_strncat(result, name + matches[c - '0'].rm_so, matches[c - '0'].rm_eo - matches[c - '0'].rm_so);
|
/netbsd-current/crypto/external/bsd/netpgp/dist/src/libmj/ |
H A D | mj.c | 158 *tok = (matches[2].rm_so >= 0) ? MJ_NUMBER : 159 (matches[5].rm_so >= 0) ? MJ_STRING : 160 (matches[7].rm_so >= 0) ? MJ_NULL : 161 (matches[8].rm_so >= 0) ? MJ_FALSE : 162 (matches[9].rm_so >= 0) ? MJ_TRUE : 163 (matches[10].rm_so < 0) ? -1 : 164 (s[*from + (int)(matches[10].rm_so)] == '[') ? MJ_OPEN_BRACKET : 165 (s[*from + (int)(matches[10].rm_so)] == ']') ? MJ_CLOSE_BRACKET : 166 (s[*from + (int)(matches[10].rm_so)] == '{') ? MJ_OPEN_BRACE : 167 (s[*from + (int)(matches[10].rm_so)] [all...] |
/netbsd-current/include/ |
H A D | regex.h | 91 regoff_t rm_so; /* start of match */ member in struct:__anon2
|
/netbsd-current/external/bsd/tre/dist/src/ |
H A D | agrep.c | 288 record_len = pmatch[0].rm_so; 291 next_delim_len = pmatch[0].rm_eo - pmatch[0].rm_so; 481 invert_match ? 0 : (int)pmatch[0].rm_so, 494 pmatch[0].rm_so += delim_len; 500 printf("%.*s", (int)pmatch[0].rm_so, record); 502 printf("%.*s", (int)(pmatch[0].rm_eo - pmatch[0].rm_so), 503 record + pmatch[0].rm_so);
|
/netbsd-current/share/examples/refuse/dmesgfs/ |
H A D | dmesgfs.c | 280 add_dev(&buf[matchv[1].rm_so], 281 matchv[1].rm_eo - matchv[1].rm_so, 282 &buf[matchv[2].rm_so], 283 matchv[2].rm_eo - matchv[2].rm_so, 285 matchv[0].rm_eo - matchv[0].rm_so);
|