Text: case and classification

pub fn to_lowercase(self: text) -> text

Returns a lowercase copy. Use for case-insensitive comparisons.

pub fn to_uppercase(self: text) -> text

Returns an uppercase copy.

pub fn is_lowercase(self: text) -> boolean

True if the text is non-empty and all characters are lowercase letters.

pub fn is_lowercase(self: character) -> boolean

True if the character is a lowercase letter.

pub fn is_uppercase(self: text) -> boolean

True if the text is non-empty and all characters are uppercase letters.

pub fn is_uppercase(self: character) -> boolean

True if the character is an uppercase letter.

pub fn is_numeric(self: text) -> boolean

True if the text is non-empty and all characters are numeric digits (Unicode numeric, not just ASCII 0–9).

pub fn is_numeric(self: character) -> boolean

True if the character is a numeric digit.

pub fn is_alphanumeric(self: text) -> boolean

True if the text is non-empty and all characters are letters or digits. Use to validate identifiers or tokens.

pub fn is_alphanumeric(self: character) -> boolean

True if the character is a letter or digit.

pub fn is_alphabetic(self: text) -> boolean

True if the text is non-empty and all characters are alphabetic.

pub fn is_alphabetic(self: character) -> boolean

True if the character is alphabetic.

pub fn is_whitespace(self: text) -> boolean

True if the text is non-empty and all characters are whitespace. Use to detect blank lines.

pub fn is_whitespace(self: character) -> boolean

True if the character is whitespace.

pub fn is_control(self: text) -> boolean

True if the text is non-empty and all characters are control characters.

pub fn is_control(self: character) -> boolean

True if the character is a control character.

pub fn join(self: const vector<text>, sep: text) -> text

Joins parts with sep between each consecutive pair. Returns "" for an empty vector. Use to build comma-separated lists, path segments, or any delimited output.