1
- .TH PCRE2_JIT_MATCH 3 "11 February 2020 " "PCRE2 10.35 "
1
+ .TH PCRE2_JIT_MATCH 3 "20 January 2023 " "PCRE2 10.43 "
2
2
.SH NAME
3
3
PCRE2 - Perl-compatible regular expressions (revised API)
4
4
.SH SYNOPSIS
@@ -20,7 +20,15 @@ This function matches a compiled regular expression that has been successfully
20
20
processed by the JIT compiler against a given subject string, using a matching
21
21
algorithm that is similar to Perl's. It is a "fast path" interface to JIT, and
22
22
it bypasses some of the sanity checks that \fB pcre2_match() \fP applies.
23
- Its arguments are exactly the same as for
23
+ .P
24
+ In UTF mode, the subject string is not checked for UTF validity. Unless
25
+ PCRE2_MATCH_INVALID_UTF was set when the pattern was compiled, passing an
26
+ invalid UTF string results in undefined behaviour. Your program may crash or
27
+ loop or give wrong results. In the absence of PCRE2_MATCH_INVALID_UTF you
28
+ should only call \fB pcre2_jit_match() \fP in UTF mode if you are sure the
29
+ subject is valid.
30
+ .P
31
+ The arguments for \fB pcre2_jit_match() \fP are exactly the same as for
24
32
.\" HREF
25
33
\fB pcre2_match() \fP ,
26
34
.\"
@@ -29,7 +37,7 @@ PCRE2_ZERO_TERMINATED is not supported.
29
37
.P
30
38
The supported options are PCRE2_NOTBOL, PCRE2_NOTEOL, PCRE2_NOTEMPTY,
31
39
PCRE2_NOTEMPTY_ATSTART, PCRE2_PARTIAL_HARD, and PCRE2_PARTIAL_SOFT. Unsupported
32
- options are ignored. The subject string is not checked for UTF validity.
40
+ options are ignored.
33
41
.P
34
42
The return values are the same as for \fB pcre2_match() \fP plus
35
43
PCRE2_ERROR_JIT_BADOPTION if a matching mode (partial or complete) is requested
0 commit comments