![]() | Fun 0.41.5 The programming language that makes You have fun |
Implements the OP_PCRE2_TEST 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_int(0)) | |
Variables | |
| case | OP_PCRE2_TEST |
| Value | b = pop_value(vm) |
| Value | c = pop_value(vm) |
| break | |
Implements the OP_PCRE2_TEST opcode (conditional build).
Tests whether a PCRE2 pattern matches a subject string and returns 1 on success or 0 otherwise when FUN_WITH_PCRE2 is enabled. When PCRE2 support is disabled at build time, the opcode always returns 0.
Definition in file test.c.
| free_value | ( | a | ) |
| free_value | ( | b | ) |
| free_value | ( | c | ) |
| push_value | ( | vm | , |
| make_int(0) | ) |
| case OP_PCRE2_TEST |
OP_PCRE2_TEST: (pattern:any, text:any, flags:int|bool=0) -> int
Behavior when FUN_WITH_PCRE2 is enabled:
Behavior when FUN_WITH_PCRE2 is disabled: