Functions§
- char_at
- char_
at_ pos - char_
to_ lower - char_
to_ upper - explode_
esc - explode_
escaped - format_
percentage - int_
arr_ from_ str_ printed_ arr - Parse a space-delimited string of decimal integers (the inverse of
str_print_arr<int>). Accepts optional trailing space. Rejects any non-digit / non-space characters. - len_str
- reverse_
str - set_
char_ at - str_
char - str_
char_ at_ pos - str_
contains_ only_ int - str_
empty - str_
from_ byte_ array - Build a string from raw bytes (each byte -> U+00XX).
- str_
join_ esc - Convenience wrapper.
- str_
join_ esc_ no_ trailing - Join escaped but remove trailing separator.
- str_
join_ escaped - Join with escaping: occurrences of the separator in any element are preceded by a backslash. A separator is appended after each element (trailing).
- str_
nonempty - str_
replace_ once - strReplace(str, find, replace) – JS version used String.replace with first occurrence. We replicate first occurrence behavior.
- str_
split - Basic (non-escaped) split replicating the original StageL strSplit.
Unlike
str.split(sep)in many languages, this custom implementation: - str_
split_ esc - Convenience wrappers retained for compatibility naming.
- str_
split_ escaped - Escape-aware split:
- str_
to_ byte_ array - Convert string to vector of raw bytes (0..=255) treating each char’s codepoint (0..=255). For bytes above ASCII range, the direct low-byte value of the char is used (mirroring JS charCodeAt & 0xFF).
- str_
to_ lower - str_
to_ upper - substring_
bug_ compatible - Index into a substring by start and lengths. Supports negative indices, but
replicates an off-by-one error from the original StageL implementation: the
length has to be one more than seems intuitive.
substring_bug_compatible("test", 0, -2)would return “tes”.