Skip to main content

is_ascii_punctuation

Function is_ascii_punctuation 

Source
pub open spec fn is_ascii_punctuation(c: char) -> bool
Expand description
{
    ('!' <= c && c <= '/') || (':' <= c && c <= '@') || ('[' <= c && c <= '`')
        || ('{' <= c && c <= '~')
}

ASCII punctuation property https://www.unicode.org/reports/tr18/#General_Category_Property.