Home
last modified time | relevance | path

Searched refs:rm_so (Results 1 – 25 of 26) sorted by relevance

12

/external/toybox/toys/posix/
Dgrep.c189 mm->rm_so = (s-line); in do_grep()
197 mm->rm_so = mm->rm_eo = INT_MAX; in do_grep()
203 shoe->m.rm_so -= baseline; in do_grep()
205 if (!matched || shoe->m.rm_so<0) in do_grep()
211 if (!shoe->rc && (shoe->m.rm_so < mm->rm_so || in do_grep()
212 (shoe->m.rm_so == mm->rm_so && shoe->m.rm_eo >= mm->rm_eo))) in do_grep()
221 if (mm->rm_so || line[mm->rm_eo]) rc = 1; in do_grep()
226 if ((start+mm->rm_so)!=line) { in do_grep()
227 c = start[mm->rm_so-1]; in do_grep()
235 start += mm->rm_so+1; in do_grep()
[all …]
Dsed.c479 mlen = match[0].rm_eo-match[0].rm_so; in sed_line()
509 newlen += match[cc].rm_eo-match[cc].rm_so; in sed_line()
516 rswap = swap+(rline-line)+match[0].rm_so; in sed_line()
517 memcpy(swap, line, (rline-line)+match[0].rm_so); in sed_line()
538 if (match[cc].rm_so == -1) ll = 0; // Empty match. in sed_line()
540 ll = match[cc].rm_eo-match[cc].rm_so; in sed_line()
541 memcpy(rswap+mlen, rline+match[cc].rm_so, ll); in sed_line()
Dcut.c149 ss += (!--start && j) ? match.rm_so : match.rm_eo; in cut_line()
Dps.c1850 if (match.rm_so || match.rm_eo!=strlen(name)) continue; in match_pgrep()
/external/mesa3d/src/gallium/drivers/r300/compiler/tests/
Drc_test_helpers.c78 return matches[index].rm_eo - matches[index].rm_so; in match_length()
103 matches[i].rm_so, matches[i].rm_eo); in regex_helper()
152 tokens.Negate.String = src_str + matches[1].rm_so; in init_rc_normal_src()
154 tokens.Abs.String = src_str + matches[2].rm_so; in init_rc_normal_src()
156 tokens.File.String = src_str + matches[3].rm_so; in init_rc_normal_src()
158 tokens.Index.String = src_str + matches[4].rm_so; in init_rc_normal_src()
160 tokens.Swizzle.String = src_str + matches[5].rm_so; in init_rc_normal_src()
280 tokens.File.String = dst_str + matches[1].rm_so; in init_rc_normal_dst()
282 tokens.Index.String = dst_str + matches[2].rm_so; in init_rc_normal_dst()
284 tokens.WriteMask.String = dst_str + matches[3].rm_so; in init_rc_normal_dst()
[all …]
/external/swiftshader/third_party/LLVM/lib/Support/
DRegex.cpp61 pm[0].rm_so = 0; in match()
80 if (pm[i].rm_so == -1) { in match()
85 assert(pm[i].rm_eo >= pm[i].rm_so); in match()
86 Matches->push_back(StringRef(String.data()+pm[i].rm_so, in match()
87 pm[i].rm_eo-pm[i].rm_so)); in match()
Dregengine.inc149 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 …]
Dregex_impl.h44 llvm_regoff_t rm_so; /* start of match */ member
/external/llvm/lib/Support/
DRegex.cpp65 pm[0].rm_so = 0; in match()
84 if (pm[i].rm_so == -1) { in match()
89 assert(pm[i].rm_eo >= pm[i].rm_so); in match()
90 Matches->push_back(StringRef(String.data()+pm[i].rm_so, in match()
91 pm[i].rm_eo-pm[i].rm_so)); in match()
Dregengine.inc149 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 …]
Dregex_impl.h44 llvm_regoff_t rm_so; /* start of match */ member
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DRegex.cpp77 pm[0].rm_so = 0; in match()
96 if (pm[i].rm_so == -1) { in match()
101 assert(pm[i].rm_eo >= pm[i].rm_so); in match()
102 Matches->push_back(StringRef(String.data()+pm[i].rm_so, in match()
103 pm[i].rm_eo-pm[i].rm_so)); in match()
Dregengine.inc149 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 …]
Dregex_impl.h44 llvm_regoff_t rm_so; /* start of match */ member
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DRegex.cpp82 pm[0].rm_so = 0; in match()
101 if (pm[i].rm_so == -1) { in match()
106 assert(pm[i].rm_eo >= pm[i].rm_so); in match()
107 Matches->push_back(StringRef(String.data()+pm[i].rm_so, in match()
108 pm[i].rm_eo-pm[i].rm_so)); in match()
Dregengine.inc149 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 …]
Dregex_impl.h44 llvm_regoff_t rm_so; /* start of match */ member
/external/pcre/dist2/src/
Dpcre2posix.c326 so = pmatch[0].rm_so; in regexec()
347 pmatch[i].rm_so = (ovector[i*2] == PCRE2_UNSET)? -1 : in regexec()
352 for (; i < nmatch; i++) pmatch[i].rm_so = pmatch[i].rm_eo = -1; in regexec()
Dpcre2posix.h113 regoff_t rm_so; member
Dpcre2test.c6802 pmatch[0].rm_so = dat_datctl.startend[0]; in process_data()
6828 if (pmatch[i].rm_so >= 0) in process_data()
6830 PCRE2_SIZE start = pmatch[i].rm_so; in process_data()
6838 end = pmatch[i].rm_so; in process_data()
/external/toybox/toys/pending/
Dexpr.c113 if (!regexec(&pat, target, 2, m, 0) && !m[0].rm_so) { in re()
116 ret->s = xmprintf("%.*s", (int)(m[1].rm_eo-m[1].rm_so), in re()
117 target+m[1].rm_so); in re()
Dmdev.c129 if (result || off.rm_so in make_device()
/external/adhd/cras/src/server/
Dcras_udev.c139 *card_number = (unsigned)atoi(&devpath[m[1].rm_so]); in is_card_device()
/external/toybox/lib/
Dlib.c1341 for (rc = 0; rc<nmatch && pmatch[rc].rm_so!=-1; rc++) { in regexec0()
1342 pmatch[rc].rm_so += s-string; in regexec0()
/external/u-boot/scripts/kconfig/
Dsymbol.c1072 sym_match_arr[cnt].so = match[0].rm_so; in sym_re_search()

12