std/unicode
March 17, 2026 ยท View on GitHub
Unicode character classification and case conversion.
Functions
isSpace
bool isSpace(uint c)
Checks if codepoint is whitespace (space, tab, newline, etc.).
isDigit
bool isDigit(uint c)
Checks if codepoint is ASCII digit (0-9).
isLower
bool isLower(uint c)
Checks if codepoint is lowercase letter. Supports ASCII and Cyrillic.
isUpper
bool isUpper(uint c)
Checks if codepoint is uppercase letter. Supports ASCII and Cyrillic.
toLower
uint toLower(uint c)
Converts codepoint to lowercase. Supports ASCII and Cyrillic.
toUpper
uint toUpper(uint c)
Converts codepoint to uppercase. Supports ASCII and Cyrillic.
Notes
- Currently supports ASCII and Russian Cyrillic characters
- Full Unicode support is planned for future versions
Example
import <std/unicode>
uint ch = 'A';
if (std::unicode::isUpper(ch)) {
ch = std::unicode::toLower(ch);
}