← All docs
addslashes() — internals
Compiler internals for addslashes(): lowering path, type checks, and runtime helpers.
addslashes() — internals
Where it lives
- Signature:
src/builtins/string/addslashes.rs - Lowering:
src/codegen/lower_inst/builtins/strings.rs:76 (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 addslashes(string $string): string
What the type checker enforces
- Arity: takes exactly 1 argument.