Home
last modified time | relevance | path

Searched refs:last_match (Results 1 – 12 of 12) sorted by relevance

/external/rust/crates/regex-automata/src/
Ddfa.rs270 let mut last_match = if self.is_dead_state(state) { in find_at() localVariable
281 return last_match; in find_at()
283 last_match = Some(start + i + 1); in find_at()
286 last_match in find_at()
302 let mut last_match = if self.is_dead_state(state) { in rfind_at() localVariable
313 return last_match; in rfind_at()
315 last_match = Some(i); in rfind_at()
318 last_match in rfind_at()
Dregex.rs419 last_match: Option<usize>, field
424 Matches { re, text, last_end: 0, last_match: None } in new()
446 if Some(e) == self.last_match { in next()
452 self.last_match = Some(e); in next()
/external/rust/crates/aho-corasick/src/
Dautomaton.rs306 let mut last_match = self.get_match(*state_id, 0, at); in leftmost_find_at_imp() localVariable
342 last_match.is_some() || self.anchored(), in leftmost_find_at_imp()
345 return last_match; in leftmost_find_at_imp()
347 last_match = self.get_match(*state_id, 0, at); in leftmost_find_at_imp()
350 last_match in leftmost_find_at_imp()
420 let mut last_match = self.get_match(state_id, 0, at); in leftmost_find_at_no_state_imp() localVariable
457 last_match.is_some() || self.anchored(), in leftmost_find_at_no_state_imp()
460 return last_match; in leftmost_find_at_no_state_imp()
462 last_match = self.get_match(state_id, 0, at); in leftmost_find_at_no_state_imp()
465 last_match in leftmost_find_at_no_state_imp()
Dahocorasick.rs553 let mut last_match = 0; in replace_all_with() localVariable
555 dst.push_str(&haystack[last_match..mat.start()]); in replace_all_with()
556 last_match = mat.end(); in replace_all_with()
561 dst.push_str(&haystack[last_match..]); in replace_all_with()
619 let mut last_match = 0; in replace_all_with_bytes() localVariable
621 dst.extend(&haystack[last_match..mat.start()]); in replace_all_with_bytes()
622 last_match = mat.end(); in replace_all_with_bytes()
627 dst.extend(&haystack[last_match..]); in replace_all_with_bytes()
/external/rust/crates/regex/examples/
Dshootout-regex-dna-single-cheat.rs69 let mut last_match = 0; in replace_all() localVariable
71 new.push_str(&text[last_match..m.start()]); in replace_all()
73 last_match = m.end(); in replace_all()
75 new.push_str(&text[last_match..]); in replace_all()
Dshootout-regex-dna-cheat.rs84 let mut last_match = 0; in replace_all() localVariable
86 new.push_str(&text[last_match..m.start()]); in replace_all()
88 last_match = m.end(); in replace_all()
90 new.push_str(&text[last_match..]); in replace_all()
/external/rust/crates/regex/src/
Dre_trait.rs142 Matches { re: self, text: text, last_end: 0, last_match: None } in find_iter()
162 last_match: Option<usize>, field
203 if Some(e) == self.last_match { in next()
209 self.last_match = Some(e); in next()
267 if Some(e) == self.0.last_match { in next()
273 self.0.last_match = Some(e); in next()
Dre_unicode.rs556 let mut last_match = 0; in replacen() localVariable
561 new.push_str(&text[last_match..m.start()]); in replacen()
563 last_match = m.end(); in replacen()
565 new.push_str(&text[last_match..]); in replacen()
576 let mut last_match = 0; in replacen() localVariable
583 new.push_str(&text[last_match..m.start()]); in replacen()
585 last_match = m.end(); in replacen()
587 new.push_str(&text[last_match..]); in replacen()
Dre_bytes.rs497 let mut last_match = 0; in replacen() localVariable
502 new.extend_from_slice(&text[last_match..m.start()]); in replacen()
504 last_match = m.end(); in replacen()
506 new.extend_from_slice(&text[last_match..]); in replacen()
517 let mut last_match = 0; in replacen() localVariable
524 new.extend_from_slice(&text[last_match..m.start()]); in replacen()
526 last_match = m.end(); in replacen()
528 new.extend_from_slice(&text[last_match..]); in replacen()
Ddfa.rs1299 let last_match = if self.last_match_si <= STATE_MAX { in clear_cache() localVariable
1314 if let Some(last_match) = last_match { in clear_cache()
1315 self.last_match_si = self.restore_state(last_match).unwrap(); in clear_cache()
/external/autotest/client/cros/
Dcros_logging.py169 last_match = None
172 last_match = line
173 if last_match:
174 return last_match
/external/mksh/src/
Djobs.c1678 Job *j, *last_match; in j_lookup() local
1727 last_match = NULL; in j_lookup()
1731 if (last_match) { in j_lookup()
1736 last_match = j; in j_lookup()
1738 if (last_match) in j_lookup()
1739 return (last_match); in j_lookup()
1745 last_match = NULL; in j_lookup()
1748 if (last_match) { in j_lookup()
1753 last_match = j; in j_lookup()
1755 if (last_match) in j_lookup()
[all …]