(pat: &str, haystack: &str)
| 173 | nada!("re-tcl", count_tcl); |
| 174 | #[cfg(feature = "re-tcl")] |
| 175 | fn count_tcl(pat: &str, haystack: &str) -> usize { |
| 176 | use ffi::tcl::{Regex, Text}; |
| 177 | Regex::new(pat).unwrap().find_iter(&Text::new(haystack.to_owned())).count() |
| 178 | } |