| ... | ... | @@ -91,7 +91,7 @@ pub const control_code = struct { |
| 91 | 91 | /// Returns whether the character is alphanumeric: A-Z, a-z, or 0-9. |
| 92 | 92 | pub fn isAlphanumeric(c: u8) bool { |
| 93 | 93 | return switch (c) { |
| 94 | | 'A'...'Z', 'a'...'z', '0'...'9' => true, |
| 94 | '0'...'9', 'A'...'Z', 'a'...'z' => true, |
| 95 | 95 | else => false, |
| 96 | 96 | }; |
| 97 | 97 | } |
| ... | ... | @@ -167,7 +167,7 @@ pub fn isUpper(c: u8) bool { |
| 167 | 167 | /// Returns whether the character is a hexadecimal digit: A-F, a-f, or 0-9. |
| 168 | 168 | pub fn isHex(c: u8) bool { |
| 169 | 169 | return switch (c) { |
| 170 | | 'A'...'F', 'a'...'f', '0'...'9' => true, |
| 170 | '0'...'9', 'A'...'F', 'a'...'f' => true, |
| 171 | 171 | else => false, |
| 172 | 172 | }; |
| 173 | 173 | } |