(pat: &str, haystack: &str)
| 117 | nada!("re-onig", count_onig); |
| 118 | #[cfg(feature = "re-onig")] |
| 119 | fn count_onig(pat: &str, haystack: &str) -> usize { |
| 120 | use ffi::onig::Regex; |
| 121 | Regex::new(pat).unwrap().find_iter(haystack).count() |
| 122 | } |
| 123 | |
| 124 | nada!("re-pcre1", count_pcre1); |
| 125 | #[cfg(feature = "re-pcre1")] |