Skip to main content

Crate grift_unicode

Crate grift_unicode 

Source
Expand description

§Grift Unicode

Minimal Unicode character operations for the Grift Scheme interpreter.

Provides case mapping, case folding, and character property queries without requiring std or alloc. Uses Rust’s built-in Unicode-aware core::char methods and a small static table for full case folding.

Structs§

CaseMapResult
Result of a full case mapping operation that may expand a single character into up to 3 characters.

Functions§

char_downcase
Return the simple lowercase mapping of a character.
char_foldcase
Return the simple case fold of a character.
char_is_alphabetic
Check if a character has the Unicode Alphabetic property.
char_is_lowercase
Check if a character has the Unicode Lowercase property.
char_is_numeric
Check if a character is a Unicode decimal digit (General Category Nd).
char_is_uppercase
Check if a character has the Unicode Uppercase property.
char_is_whitespace
Check if a character has the Unicode White_Space property.
char_upcase
Return the simple uppercase mapping of a character.
digit_value
Return the digit value of a Unicode decimal digit character.
full_downcase
Full lowercase mapping of a character.
full_foldcase
Full case folding of a character.
full_upcase
Full uppercase mapping of a character.