Skip to main content

zero_width_count

Function zero_width_count 

Source
pub fn zero_width_count(s: &str) -> usize
Expand description

Number of zero-width / Unicode formatting codepoints in s (using the is_zero_width predicate). Useful for a statistical “obfuscation” signal that fires even when canonicalization has already stripped the characters: callers count on the original pre-canonicalization string.