Searched refs:rm_so (Results 1 – 15 of 15) sorted by relevance
/external/lldb/source/Core/ |
D | RegularExpression.cpp | 167 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/ |
D | rc_test_helpers.c | 32 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/ |
D | grep.c | 120 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);
|
D | sed.c | 232 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/ |
D | Regex.cpp | 65 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()
|
D | regex_impl.h | 44 llvm_regoff_t rm_so; /* start of match */ member
|
D | regengine.inc | 149 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/ |
D | expr.c | 90 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()
|
D | pgrep.c | 58 if ((rm[0].rm_so == 0) && ((rm[0].rm_eo - rm[0].rm_so) == len)) return 1; in regex_match()
|
D | mdev.c | 126 if (result || off.rm_so in make_device()
|
/external/pcre/dist/ |
D | pcreposix.c | 367 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()
|
D | pcreposix.h | 108 regoff_t rm_so; member
|
D | pcretest.c | 5072 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/ |
D | DisassemblerLLVMC.cpp | 382 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/ |
D | pcre.txt | 9686 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
|