(pat: &str, haystack: &str)
| 166 | nada!("re-rust-bytes", count_rust_bytes); |
| 167 | #[cfg(feature = "re-rust-bytes")] |
| 168 | fn count_rust_bytes(pat: &str, haystack: &str) -> usize { |
| 169 | use regex::bytes::Regex; |
| 170 | Regex::new(pat).unwrap().find_iter(haystack.as_bytes()).count() |
| 171 | } |
| 172 | |
| 173 | nada!("re-tcl", count_tcl); |
| 174 | #[cfg(feature = "re-tcl")] |