Home
last modified time | relevance | path

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

/external/lldb/source/Core/
DRegularExpression.cpp167 if (m_matches[idx].rm_eo == m_matches[idx].rm_so) in GetMatchAtIndex()
173 else if (m_matches[idx].rm_eo > m_matches[idx].rm_so) in GetMatchAtIndex()
175 match_str.assign (s + m_matches[idx].rm_so, in GetMatchAtIndex()
176 m_matches[idx].rm_eo - m_matches[idx].rm_so); in GetMatchAtIndex()
188 if (m_matches[idx].rm_eo == m_matches[idx].rm_so) in GetMatchAtIndex()
194 else if (m_matches[idx].rm_eo > m_matches[idx].rm_so) in GetMatchAtIndex()
196 …match_str = llvm::StringRef (s + m_matches[idx].rm_so, m_matches[idx].rm_eo - m_matches[idx].rm_so in GetMatchAtIndex()
208 if (m_matches[idx1].rm_so == m_matches[idx2].rm_eo) in GetMatchSpanningIndices()
214 else if (m_matches[idx1].rm_so < m_matches[idx2].rm_eo) in GetMatchSpanningIndices()
216 …match_str = llvm::StringRef (s + m_matches[idx1].rm_so, m_matches[idx2].rm_eo - m_matches[idx1].rm… in GetMatchSpanningIndices()
/external/mesa3d/src/gallium/drivers/r300/compiler/tests/
Drc_test_helpers.c32 return matches[index].rm_eo - matches[index].rm_so; in match_length()
57 matches[i].rm_so, matches[i].rm_eo); in regex_helper()
106 tokens.Negate.String = src_str + matches[1].rm_so; in init_rc_normal_src()
108 tokens.Abs.String = src_str + matches[2].rm_so; in init_rc_normal_src()
110 tokens.File.String = src_str + matches[3].rm_so; in init_rc_normal_src()
112 tokens.Index.String = src_str + matches[4].rm_so; in init_rc_normal_src()
114 tokens.Swizzle.String = src_str + matches[5].rm_so; in init_rc_normal_src()
232 tokens.File.String = dst_str + matches[1].rm_so; in init_rc_normal_dst()
234 tokens.Index.String = dst_str + matches[2].rm_so; in init_rc_normal_dst()
236 tokens.WriteMask.String = dst_str + matches[3].rm_so; in init_rc_normal_dst()
[all …]
/external/toybox/toys/posix/
Dgrep.c120 matches[which].rm_so = (s-line);
130 if (matches[which].rm_so || line[matches[which].rm_eo]) rc = 1;
135 else if (!matches[which].rm_so) {
138 } else matches[which].rm_eo = matches[which].rm_so;
143 matches[which].rm_so = 0;
156 if (matches[which].rm_eo == matches[which].rm_so)
164 ((toys.optflags & FLAG_o) ? matches[which].rm_so : 0));
167 xprintf("%.*s%c", matches[which].rm_eo - matches[which].rm_so,
168 start + matches[which].rm_so, outdelim);
Dsed.c232 for (rc = 0; rc<nmatch && pmatch[rc].rm_so!=-1; rc++) { in ghostwheel()
233 pmatch[rc].rm_so += s-string; in ghostwheel()
497 mlen = match[0].rm_eo-match[0].rm_so; in walk_pattern()
527 newlen += match[cc].rm_eo-match[cc].rm_so; in walk_pattern()
534 rswap = swap+(rline-line)+match[0].rm_so; in walk_pattern()
535 memcpy(swap, line, (rline-line)+match[0].rm_so); in walk_pattern()
549 } else if (match[cc].rm_so == -1) error_exit("no s//\\%d/", cc); in walk_pattern()
556 ll = match[cc].rm_eo-match[cc].rm_so; in walk_pattern()
557 memcpy(rswap+mlen, rline+match[cc].rm_so, ll); in walk_pattern()
/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()
Dregex_impl.h44 llvm_regoff_t rm_so; /* start of match */ member
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 …]
/external/toybox/toys/pending/
Dexpr.c90 if (!regexec(&rp, lhs->s, 2, rm, 0) && rm[0].rm_so == 0) { in re()
91 if (rp.re_nsub > 0 && rm[1].rm_so >= 0) in re()
92 lhs->s = xmprintf("%.*s", rm[1].rm_eo - rm[1].rm_so, lhs->s+rm[1].rm_so); in re()
Dpgrep.c58 if ((rm[0].rm_so == 0) && ((rm[0].rm_eo - rm[0].rm_so) == len)) return 1; in regex_match()
Dmdev.c126 if (result || off.rm_so in make_device()
/external/pcre/dist/
Dpcreposix.c367 so = pmatch[0].rm_so; in regexec()
390 pmatch[i].rm_so = ovector[i*2]; in regexec()
394 for (; i < nmatch; i++) pmatch[i].rm_so = pmatch[i].rm_eo = -1; in regexec()
Dpcreposix.h108 regoff_t rm_so; member
Dpcretest.c5072 if (pmatch[i].rm_so >= 0) in main()
5075 PCHARSV(dbuffer, pmatch[i].rm_so, in main()
5076 pmatch[i].rm_eo - pmatch[i].rm_so, outfile); in main()
/external/lldb/source/Plugins/Disassembler/llvm/
DDisassemblerLLVMC.cpp382 if (matches[1].rm_so != -1) in CalculateMnemonicOperandsAndComment()
383 … m_opcode_name.assign(out_string + matches[1].rm_so, matches[1].rm_eo - matches[1].rm_so); in CalculateMnemonicOperandsAndComment()
384 if (matches[2].rm_so != -1) in CalculateMnemonicOperandsAndComment()
385 … m_mnemonics.assign(out_string + matches[2].rm_so, matches[2].rm_eo - matches[2].rm_so); in CalculateMnemonicOperandsAndComment()
/external/pcre/dist/doc/
Dpcre.txt9686 The string is considered to start at string + pmatch[0].rm_so and to
9692 rm_so does not imply REG_NOTBOL; REG_STARTEND affects only the location
9705 bers rm_so and rm_eo. These contain the offset to the first character