![]() | Fun 0.41.5 The programming language that makes You have fun |
Implements the OP_PCRE2_FINDALL 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_array_from_values(NULL, 0)) | |
Variables | |
| case | OP_PCRE2_FINDALL |
| Value | b = pop_value(vm) |
| Value | c = pop_value(vm) |
| break | |
Implements the OP_PCRE2_FINDALL opcode (conditional build).
Finds all non-overlapping matches of a PCRE2 pattern in a subject string and returns an array of maps describing each match when FUN_WITH_PCRE2 is enabled. When PCRE2 support is disabled at build time, the opcode falls back to returning an empty array.
Definition in file findall.c.
| free_value | ( | a | ) |
| free_value | ( | b | ) |
| free_value | ( | c | ) |
| push_value | ( | vm | , |
| make_array_from_values(NULL, 0) | ) |
| case OP_PCRE2_FINDALL |
OP_PCRE2_FINDALL: (pattern:any, text:any, flags:int|bool=0) -> array(map)
Behavior when FUN_WITH_PCRE2 is enabled:
Behavior when FUN_WITH_PCRE2 is disabled: