Lines Matching refs:pat
54 let pat = &self.arg_pattern; in count() localVariable
56 count_onig(pat, haystack) in count()
58 count_pcre1(pat, haystack) in count()
60 count_pcre2(pat, haystack) in count()
62 count_re2(pat, haystack) in count()
64 count_rust(pat, haystack) in count()
66 count_rust_bytes(pat, haystack) in count()
68 count_tcl(pat, haystack) in count()
90 fn count_onig(pat: &str, haystack: &str) -> usize { in count_onig()
92 Regex::new(pat).unwrap().find_iter(haystack).count() in count_onig()
97 fn count_pcre1(pat: &str, haystack: &str) -> usize { in count_pcre1()
99 Regex::new(pat).unwrap().find_iter(haystack).count() in count_pcre1()
104 fn count_pcre2(pat: &str, haystack: &str) -> usize { in count_pcre2()
106 Regex::new(pat).unwrap().find_iter(haystack).count() in count_pcre2()
111 fn count_re2(pat: &str, haystack: &str) -> usize { in count_re2()
113 Regex::new(pat).unwrap().find_iter(haystack).count() in count_re2()
118 fn count_rust(pat: &str, haystack: &str) -> usize { in count_rust()
120 Regex::new(pat).unwrap().find_iter(haystack).count() in count_rust()
125 fn count_rust_bytes(pat: &str, haystack: &str) -> usize { in count_rust_bytes()
127 Regex::new(pat).unwrap().find_iter(haystack.as_bytes()).count() in count_rust_bytes()
132 fn count_tcl(pat: &str, haystack: &str) -> usize { in count_tcl()
134 Regex::new(pat).unwrap().find_iter(&Text::new(haystack.to_owned())).count() in count_tcl()