Skip to main content

has_acronym_exception

Function has_acronym_exception 

Source
pub fn has_acronym_exception(
    s: &str,
    patterns: &[String],
    pre_is_valid: fn(&str) -> bool,
) -> bool
Expand description

True if s is <pre><pattern><digits><post> for one of the configured acronym patterns (e.g. ERC in rescueERC20Tokens), where pre satisfies pre_is_valid and post is UpperCamelCase. One preserved leading or trailing underscore is tolerated.