![]() | Fun 0.41.5 The programming language that makes You have fun |
Implements the OP_PCRE2_MATCH opcode (conditional build). More...
Go to the source code of this file.
Functions | |
| free_value (a) | |
| free_value (b) | |
| free_value (c) | |
| push_value (vm, make_nil()) | |
Variables | |
| case | OP_PCRE2_MATCH |
| Value | b = pop_value(vm) |
| Value | c = pop_value(vm) |
| break | |
Implements the OP_PCRE2_MATCH opcode (conditional build).
Executes a single PCRE2 pattern match against a subject string and returns a map describing the first match and its capture groups when FUN_WITH_PCRE2 is enabled. Returns Nil when there is no match or on error. When PCRE2 support is disabled at build time, the opcode always returns Nil.
Definition in file match.c.
| free_value | ( | a | ) |
| free_value | ( | b | ) |
| free_value | ( | c | ) |
| push_value | ( | vm | , |
| make_nil() | ) |
| case OP_PCRE2_MATCH |
OP_PCRE2_MATCH: (pattern:any, text:any, flags:int|bool=0) -> map|Nil
Behavior when FUN_WITH_PCRE2 is enabled:
Behavior when FUN_WITH_PCRE2 is disabled: