HomeSort by: relevance | last modified time | path
    Searched refs:rm_so (Results 1 - 25 of 92) sorted by relevancy

1 2 3 4

  /src/external/bsd/flex/dist/src/
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 < 0 || m->rm_so == m->rm_eo)
    [all...]
  /src/external/bsd/tre/dist/lib/
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 = pmatch[i].rm_eo = -1
    [all...]
  /src/external/bsd/tmux/dist/
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) {
  /src/tests/lib/libc/regex/
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 and rm_eo for consistency *
    [all...]
  /src/tests/fs/cd9660/
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);
  /src/external/bsd/nvi/dist/common/
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 == 0 ? 0 : REG_NOTBOL)
    [all...]
  /src/usr.bin/grep/
fastgrep.c 224 if (pmatch->rm_so == (ssize_t)len)
227 if (fg->bol && pmatch->rm_so != 0) {
228 pmatch->rm_so = len;
247 pmatch->rm_so = j;
258 pmatch->rm_so = j - fg->len;
270 j = pmatch->rm_so;
273 pmatch->rm_so = j;
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,
  /src/lib/libc/regex/
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);
  /src/external/gpl3/gcc.old/dist/gcc/
regsub.cc 134 } else if (rm[i].rm_so != -1 && rm[i].rm_eo != -1) {
135 size_t l = (size_t)(rm[i].rm_eo - rm[i].rm_so);
136 addnstr(&s, str + rm[i].rm_so, l);
  /src/external/gpl3/gcc/dist/gcc/
regsub.cc 134 } else if (rm[i].rm_so != -1 && rm[i].rm_eo != -1) {
135 size_t l = (size_t)(rm[i].rm_eo - rm[i].rm_so);
136 addnstr(&s, str + rm[i].rm_so, l);
  /src/external/apache2/llvm/dist/llvm/lib/Support/
regex_impl.h 44 llvm_regoff_t rm_so; /* start of match */ member in struct:__anon2244
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));
  /src/external/bsd/nvi/dist/regex/
regex.h 61 regoff_t rm_so; /* start of match */ member in struct:__anon5305
  /src/external/gpl3/gdb/dist/gdb/
ui-style.c 244 gdb_assert (subexps[0].rm_so == 0);
246 gdb_assert (subexps[FINAL_SUBEXP].rm_eo - subexps[FINAL_SUBEXP].rm_so == 1);
248 if (buf[subexps[FINAL_SUBEXP].rm_so] != 'm')
263 if (subexps[DATA_SUBEXP].rm_so == subexps[DATA_SUBEXP].rm_eo)
266 for (regoff_t i = subexps[DATA_SUBEXP].rm_so;
403 if (match == REG_NOMATCH || buf[subexps[FINAL_SUBEXP].rm_so] != 'm')
  /src/external/gpl3/gdb.old/dist/gdb/
ui-style.c 244 gdb_assert (subexps[0].rm_so == 0);
246 gdb_assert (subexps[FINAL_SUBEXP].rm_eo - subexps[FINAL_SUBEXP].rm_so == 1);
248 if (buf[subexps[FINAL_SUBEXP].rm_so] != 'm')
263 if (subexps[DATA_SUBEXP].rm_so == subexps[DATA_SUBEXP].rm_eo)
266 for (regoff_t i = subexps[DATA_SUBEXP].rm_so;
399 if (match == REG_NOMATCH || buf[subexps[FINAL_SUBEXP].rm_so] != 'm')
  /src/usr.bin/sed/
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 + (s - ps)
    [all...]
  /src/bin/expr/
expr.y 311 if (regexec(&rp, str, 2, rm, 0) == 0 && rm[0].rm_so == 0) {
313 if (rm[1].rm_so >= 0) {
315 (int)(rm[1].rm_eo - rm[1].rm_so),
316 str + rm[1].rm_so);
319 mbs_len(str + rm[0].rm_so, str + rm[0].rm_eo));
  /src/external/bsd/libarchive/dist/tar/
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);
284 realloc_strncat(result, name + matches[c - '0'].rm_so, matches[c - '0'].rm_eo - matches[c - '0'].rm_so);
  /src/include/
regex.h 92 regoff_t rm_so; /* start of match */ member in struct:__anon145
  /src/external/bsd/tre/dist/src/
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);
  /src/share/examples/refuse/dmesgfs/
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);
  /src/usr.bin/m4/
gnum4.c 277 else if (pm[n].rm_so != -1 &&
279 addchars(string + pm[n].rm_so,
280 pm[n].rm_eo - pm[n].rm_so);
340 if (pm[0].rm_so == pm[0].rm_eo &&
341 string + pm[0].rm_so == last_match) {
351 last_match = string + pm[0].rm_so;
352 addchars(string, pm[0].rm_so);
389 pbunsigned(pm[0].rm_so);
  /src/external/bsd/less/dist/
pattern.c 330 rm[0].rm_so = 0;
339 if (rm[ecount-1].rm_so >= 0)
345 if (rm[i].rm_so < 0)
351 *sp++ = line + rm[i].rm_so;
  /src/external/bsd/tre/dist/tests/
test-str-source.c 118 printf("Match: %d - %d\n", (int)pmatch[0].rm_so, (int)pmatch[0].rm_eo);

Completed in 46 milliseconds

1 2 3 4