Module encoding::ascii
ASCII validation and case conversion
Functions
| ascii_is_valid | Returns 1 if every byte in the NUL-terminated string is in [0, 127]. |
| ascii_is_valid_bytes | Returns 1 if every byte in s[0, len) is in [0, 127] (no NUL terminator required — for validating a raw byte range, e.g. from a socket read). |
| ascii_is_alpha | |
| ascii_is_digit | |
| ascii_is_alnum | |
| ascii_is_space | |
| ascii_is_upper | |
| ascii_is_lower | |
| ascii_is_print | printable, including ' ' (0x20..0x7E) |
| ascii_to_upper | no-op for non a-z bytes |
| ascii_to_lower | no-op for non A-Z bytes |