casefold

Values

pub const ascii_letters: String

ASCII letters (lower and uppercase)

pub const ascii_lowercase: String

ASCII lowercase letters

pub const ascii_printable: String
pub const ascii_punctuation: String

ASCII characters which are considered punctuation characters

pub const ascii_uppercase: String

ASCII uppercase letters

pub const ascii_whitespace: String

ASCII characters which are considered whitespace

pub fn casefold(s: String) -> String

Converts a String to a case-agnostic comparable string. casefold is preferred over string.lowercase when two strings are to be compared for equality.

pub const digits: String

The string “0123456789”

pub fn expand_tabs(s: String, tabstop: Int) -> String

Expand leading tabs with the given tabstop

pub const hex_digits: String

The string “0123456789abcdefABCDEF”

pub const oct_digits: String

The string “01234567”

Search Document