Function isDigit [src]
Returns whether the character is a digit.
Prototype
pub fn isDigit(c: u8) bool Parameters
c: u8 Source
pub fn isDigit(c: u8) bool {
return switch (c) {
'0'...'9' => true,
else => false,
};
} pub fn isDigit(c: u8) bool c: u8 pub fn isDigit(c: u8) bool {
return switch (c) {
'0'...'9' => true,
else => false,
};
}