(pat: &str, haystack: &str)
| 131 | nada!("re-pcre2", count_pcre2); |
| 132 | #[cfg(feature = "re-pcre2")] |
| 133 | fn count_pcre2(pat: &str, haystack: &str) -> usize { |
| 134 | use ffi::pcre2::Regex; |
| 135 | Regex::new(pat).unwrap().find_iter(haystack).count() |
| 136 | } |
| 137 | |
| 138 | #[cfg(not(any( |
| 139 | feature = "re-stdcpp", |