← All docs
ctype_space() — internals
Compiler internals for ctype_space(): lowering path, type checks, and runtime helpers.
ctype_space() — internals
Where it lives
- Signature:
src/builtins/string/ctype_space.rs - Lowering:
src/codegen/lower_inst/builtins/ctype.rs:35 (lower_ctype_space) - Function symbol:
lower_ctype_space()
Lowering notes
- Lowers
ctype_space(string)by checking every byte against PHP’s ASCII whitespace set.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function ctype_space(string $text): bool
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/string/ctype_space.rs(eval_builtin!) - Dispatch hooks:
direct,values