Module char

Source
Expand description

Predicates for characters.

Structs§

IsAlphabetic
Checks whether the given character is alphabetic.
IsAlphanumeric
Checks whether the given character is alphanumeric.
IsAscii
Checks whether the given character is within the ASCII range.
IsControl
Checks whether the given character is control.
IsDigit
Checks whether the given character is a digit in the specified base B.
IsLowercase
Checks whether the given character is lowercase.
IsNumeric
Checks whether the given character is numeric.
IsUppercase
Checks whether the given character is uppercase.
IsWhitespace
Checks whether the given character is whitespace.
NonAlphabeticError
Non-alphabetic character encountered.
NonAlphanumericError
Non-alphanumeric character encountered.
NonAsciiError
Non-ASCII character encountered.
NonControlError
Non-control character encountered.
NonDigitError
Non-digit character encountered in the given base.
NonLowercaseError
Non-lowercase character encountered.
NonNumericError
Non-numeric character encountered.
NonUppercaseError
Non-uppercase character encountered.
NonWhitespaceError
Non-whitespace character encountered.

Constants§

DEFAULT_BASE
The default base in IsDigit.
HEX_BASE
The hexadecimal base.
OCT_BASE
The octal base.

Type Aliases§

Base
Represents base for checks.
IsAsciiAlphabetic
Composition of IsAscii and IsDigit.
IsAsciiAlphanumeric
Composition of IsAscii and IsAlphanumeric.
IsAsciiControl
Composition of IsAscii and IsControl.
IsAsciiLowercase
Composition of IsAscii and IsLowercase.
IsAsciiNumeric
Composition of IsAscii and IsNumeric.
IsAsciiUppercase
Composition of IsAscii and IsUppercase.
IsAsciiWhitespace
Composition of IsAscii and IsWhitespace.
IsHexDigit
Checks whether the given character is a hexadecimal digit.
IsOctDigit
Checks whether the given character is an octal digit.