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