Home
last modified time | relevance | path

Searched refs:find_iter (Results 1 – 25 of 35) sorted by relevance

12

/third_party/rust/crates/regex/bench/src/
Dmain.rs92 Regex::new(pat).unwrap().find_iter(haystack).count() in count_onig()
99 Regex::new(pat).unwrap().find_iter(haystack).count() in count_pcre1()
106 Regex::new(pat).unwrap().find_iter(haystack).count() in count_pcre2()
113 Regex::new(pat).unwrap().find_iter(haystack).count() in count_re2()
120 Regex::new(pat).unwrap().find_iter(haystack).count() in count_rust()
127 Regex::new(pat).unwrap().find_iter(haystack.as_bytes()).count() in count_rust_bytes()
134 Regex::new(pat).unwrap().find_iter(&Text::new(haystack.to_owned())).count() in count_tcl()
/third_party/rust/crates/aho-corasick/bench/src/
Drandom.rs92 |ac, haystack| ac.find_iter(haystack).count(), in many_patterns()
103 |ac, haystack| ac.find_iter(haystack).count(), in many_patterns()
114 |ac, haystack| ac.find_iter(haystack).count(), in many_patterns()
140 |ac, haystack| ac.find_iter(haystack).count(), in many_patterns()
151 |ac, haystack| ac.find_iter(haystack).count(), in many_patterns()
162 |ac, haystack| ac.find_iter(haystack).count(), in many_patterns()
Dbench.rs42 b.iter(|| assert_eq!(count, aut.find_iter(&haystack).count())); in define_aho_corasick()
53 b.iter(|| assert_eq!(count, aut.find_iter(&haystack).count())); in define_aho_corasick()
63 assert_eq!(count, searcher.find_iter(&haystack).count()) in define_aho_corasick()
75 assert_eq!(count, searcher.find_iter(&haystack).count()) in define_aho_corasick()
/third_party/rust/crates/regex/bench/src/ffi/
Donig.rs25 pub fn find_iter<'r, 't>( in find_iter() method
29 self.0.find_iter(text) in find_iter()
Dpcre1.rs77 pub fn find_iter<'r, 't>(&'r self, text: &'t str) -> FindMatches<'r, 't> { in find_iter() method
Dre2.rs36 pub fn find_iter<'r, 't>(&'r self, text: &'t str) -> FindMatches<'r, 't> { in find_iter() method
/third_party/rust/crates/regex/examples/
Dshootout-regex-dna-single-cheat.rs36 println!("{} {}", re.to_string(), re.find_iter(&seq).count()); in main()
68 for m in re.find_iter(text) { in replace_all()
Dshootout-regex-dna-cheat.rs47 let future = thread::spawn(move || variant.find_iter(&seq).count()); in main()
83 for m in re.find_iter(text) { in replace_all()
Dshootout-regex-dna-single.rs36 println!("{} {}", re.to_string(), re.find_iter(&seq).count()); in main()
Dshootout-regex-dna.rs42 let future = thread::spawn(move || variant.find_iter(&seq).count()); in main()
Dshootout-regex-dna-bytes.rs42 let future = thread::spawn(move || variant.find_iter(&seq).count()); in main()
/third_party/rust/crates/regex/tests/
Dmacros.rs5 $re.find_iter(text!($text))
63 r.find_iter(text).map(|m| (m.start(), m.end())).collect();
89 r.find_iter(text).map(|m| (m.start(), m.end())).collect();
Dconsistent.rs193 let fi1 = self.re1.find_iter(input);
194 let fi2 = self.re2.find_iter(input);
Dregression.rs200 assert_eq!(0, re.find_iter(b"s\xE4").count()); in regression_nfa_stops1()
/third_party/rust/crates/memchr/bench/src/memmem/
Dimp.rs44 memmem::find_iter(haystack.as_bytes(), needle.as_bytes()) in oneshotiter()
59 self.0.find_iter(haystack.as_bytes()) in iter()
155 self.0.find_iter(haystack.as_bytes()) in iter()
238 bstr::ByteSlice::find_iter(haystack.as_bytes(), needle.as_bytes()) in oneshotiter()
352 self.0.find_iter(haystack).map(|m| m.start()) in iter()
Dmod.rs261 ($dir:expr, $find_iter:expr) => { in oneshot_iter()
278 $find_iter($inp.corpus, $q.needle); in oneshot_iter()
/third_party/rust/crates/regex/src/
Dre_trait.rs152 fn find_iter(self, text: &Self::Text) -> Matches<'_, Self> { in find_iter() method
159 CaptureMatches(self.find_iter(text)) in captures_iter()
Dre_unicode.rs244 pub fn find_iter<'r, 't>(&'r self, text: &'t str) -> Matches<'r, 't> { in find_iter() method
245 Matches(self.0.searcher_str().find_iter(text)) in find_iter()
371 Split { finder: self.find_iter(text), last: 0 } in split()
550 let mut it = self.find_iter(text).enumerate().peekable(); in replacen()
Dre_bytes.rs188 pub fn find_iter<'r, 't>(&'r self, text: &'t [u8]) -> Matches<'r, 't> { in find_iter() method
189 Matches(self.0.searcher().find_iter(text)) in find_iter()
318 Split { finder: self.find_iter(text), last: 0 } in split()
492 let mut it = self.find_iter(text).enumerate().peekable(); in replacen()
Dpattern.rs19 it: self.find_iter(haystack), in into_searcher()
/third_party/rust/crates/memchr/fuzz/fuzz_targets/
Dmemmem.rs12 memmem::find_iter(haystack, needle).count();
/third_party/python/Tools/c-analyzer/c_parser/parser/
D_delim.py10 for m in DELIMITER_RE.find_iter(text):
/third_party/rust/crates/aho-corasick/src/
Dahocorasick.rs350 pub fn find_iter<'a, 'b, B: ?Sized + AsRef<[u8]>>( in find_iter() method
554 for mat in self.find_iter(haystack) { in replace_all_with()
620 for mat in self.find_iter(haystack) { in replace_all_with_bytes()
Dtests.rs670 .find_iter(test.haystack)
1168 ac.find_iter(&haystack).count(), in regression_case_insensitive_prefilter()
1240 let from_whole = aut.find_iter(&buf).next().unwrap().start(); in regression_stream_rare_byte_prefilter()
/third_party/rust/crates/aho-corasick/
DREADME.md46 for mat in ac.find_iter(haystack) {
72 for mat in ac.find_iter(haystack) {

12