MCPcopy Create free account
hub / github.com/davidblewett/rure-python / count_onig

Function count_onig

regex/bench/src/main.rs:119–122  ·  view source on GitHub ↗
(pat: &str, haystack: &str)

Source from the content-addressed store, hash-verified

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

Callers 1

countMethod · 0.85

Calls 3

countMethod · 0.80
unwrapMethod · 0.80
find_iterMethod · 0.45

Tested by

no test coverage detected