← All docs
ctype_digit() — internals
Compiler internals for ctype_digit(): lowering path, type checks, and runtime helpers.
ctype_digit() — internals
Where it lives
- Signature:
src/builtins/string/ctype_digit.rs - Lowering:
src/codegen/lower_inst/builtins/ctype.rs:25 (lower_ctype_digit) - Function symbol:
lower_ctype_digit()
Lowering notes
- Lowers
ctype_digit(string)by checking every byte against the ASCII digit range.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function ctype_digit(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_digit.rs(eval_builtin!) - Dispatch hooks:
direct,values