← All docs
ucfirst() — internals
Compiler internals for ucfirst(): lowering path, type checks, and runtime helpers.
ucfirst() — internals
Where it lives
- Signature:
src/builtins/string/ucfirst.rs - Lowering:
src/codegen/lower_inst/builtins/strings.rs:113 (lower_ucfirst) - Function symbol:
lower_ucfirst()
Lowering notes
- Lowers
ucfirst()by copying the string and uppercasing the first ASCII byte.
Runtime helpers
The following runtime helpers are referenced:
__rt_strcopy
Signature summary
function ucfirst(string $string): string
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/string/ucfirst.rs(eval_builtin!) - Dispatch hooks:
direct,values