Skip to main content

case_check

Function case_check 

Source
pub fn case_check(s: &str) -> CaseStatus
Expand description

Check whether a string is all-lowercase, all-uppercase, or mixed.

Only ASCII letters are considered; non-ASCII characters (digits, punctuation, Unicode letters) are treated as neither case. This is appropriate for MD strings, whose alphabet is a subset of ASCII. An empty string or one with no ASCII letters returns CaseStatus::Lower.