← All docs
mb_ereg_match() — internals
Compiler internals for mb_ereg_match(): lowering path, type checks, and runtime helpers.
mb_ereg_match() — internals
Where it lives
- Signature:
src/builtins/string/mb_ereg_match.rs - Lowering:
src/codegen/lower_inst/builtins/regex.rs:52 (lower_mb_ereg_match) - Function symbol:
lower_mb_ereg_match()
Lowering notes
- Lowers
mb_ereg_match(pattern, subject, options = null)as a start-anchored regex match. - The bare delimiter-less pattern and subject use the shared regex string loader. Optional
- options are passed as a string pair when present, or as
(0, 0)fornull/omitted options.
Runtime helpers
The following runtime helpers are referenced:
__rt_mb_ereg_match
Signature summary
function mb_ereg_match(string $pattern, string $subject, string $options = null): bool
What the type checker enforces
- Arity: takes 2–3 arguments (1 optional).