1PCRE2_JIT_MATCH(3) Library Functions Manual PCRE2_JIT_MATCH(3)
2
3
4
6 PCRE2 - Perl-compatible regular expressions (revised API)
7
9
10 #include <pcre2.h>
11
12 int pcre2_jit_match(const pcre2_code *code, PCRE2_SPTR subject,
13 PCRE2_SIZE length, PCRE2_SIZE startoffset,
14 uint32_t options, pcre2_match_data *match_data,
15 pcre2_match_context *mcontext);
16
18
19 This function matches a compiled regular expression that has been suc‐
20 cessfully processed by the JIT compiler against a given subject string,
21 using a matching algorithm that is similar to Perl's. It is a "fast
22 path" interface to JIT, and it bypasses some of the sanity checks that
23 pcre2_match() applies. Its arguments are exactly the same as for
24 pcre2_match().
25
26 The supported options are PCRE2_NOTBOL, PCRE2_NOTEOL, PCRE2_NOTEMPTY,
27 PCRE2_NOTEMPTY_ATSTART, PCRE2_PARTIAL_HARD, and PCRE2_PARTIAL_SOFT.
28 Unsupported options are ignored. The subject string is not checked for
29 UTF validity.
30
31 The return values are the same as for pcre2_match() plus
32 PCRE2_ERROR_JIT_BADOPTION if a matching mode (partial or complete) is
33 requested that was not compiled. For details of partial matching, see
34 the pcre2partial page.
35
36 There is a complete description of the PCRE2 native API in the pcre2api
37 page and a description of the JIT API in the pcre2jit page.
38
39
40
41PCRE2 10.0 03 November 2014 PCRE2_JIT_MATCH(3)