Functions which operate on ASCII characters.
All of the functions in std. ascii accept Unicode characters but effectively
ignore them if they're not ASCII. All isX functions return false
for non-ASCII characters, and all toX functions do nothing to non-ASCII
characters.
For functions which operate on Unicode characters, see
std.uni.
0..9A..F
0..9a..f
0..9A..Fa..f
0..9
0..7
a..z
A..Z
A..Za..z
ASCII whitespace
Newline sequence for this system.
Returns whether c is a letter or a number (0..9, a..z, A..Z).
Returns whether c is an ASCII letter (A..Z, a..z).
Returns whether c is a lowercase ASCII letter (a..z).
Returns whether c is an uppercase ASCII letter (A..Z).
Returns whether c is a digit (0..9).
Returns whether c is a digit in base 8 (0..7).
Returns whether c is a digit in base 16 (0..9, A..F, a..f).
Whether or not c is a whitespace character. That includes the space, tab, vertical tab, form feed, carriage return, and linefeed characters.
Returns whether c is a control character.
Whether or not c is a punctuation character. That includes all ASCII characters which are not control characters, letters, digits, or whitespace.
Whether or not c is a printable character other than the space character.
Whether or not c is a printable character - including the space character.
Whether or not c is in the ASCII character set - i.e. in the range 0..0x7F.
If c is an uppercase ASCII character, then its corresponding lowercase letter is returned. Otherwise, c is returned.
C can be any type which implicitly converts to dchar. In the case where it's a built-in type, or an enum of a built-in type, Unqual!(OriginalType!C) is returned, whereas if it's a user-defined type, dchar is returned.
If c is a lowercase ASCII character, then its corresponding uppercase letter is returned. Otherwise, c is returned.
C can be any type which implicitly converts to dchar. In the case where it's a built-in type, or an enum of a built-in type, Unqual!(OriginalType!C) is returned, whereas if it's a user-defined type, dchar is returned.