← All docs
ucwords() — internals
Compiler internals for ucwords(): lowering path, type checks, and runtime helpers.
ucwords() — internals
Where it lives
- Signature:
src/builtins/string/ucwords.rs - Lowering:
src/codegen/lower_inst/builtins/strings.rs:75 (lower_unary_string_runtime) - Function symbol:
lower_unary_string_runtime()
Lowering notes
- Lowers a one-argument string builtin that directly delegates to a runtime helper.
Runtime helpers
The following runtime helpers are referenced:
__rt_htmlspecialchars
Signature summary
function ucwords(string $string, string $separators = ' \t\r\n\x0c\x0b'): string
What the type checker enforces
- Arity: takes 1–2 arguments (1 optional).
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/string/ucwords.rs(eval_builtin!) - Dispatch hooks:
direct,values