|
1 | | -.TH PCRE2API 3 "27 January 2024" "PCRE2 10.43" |
| 1 | +.TH PCRE2API 3 "24 April 2024" "PCRE2 10.44" |
2 | 2 | .SH NAME |
3 | 3 | PCRE2 - Perl-compatible regular expressions (revised API) |
4 | 4 | .sp |
@@ -101,6 +101,9 @@ document for an overview of all the PCRE2 documentation. |
101 | 101 | .B int pcre2_set_max_pattern_length(pcre2_compile_context *\fIccontext\fP, |
102 | 102 | .B " PCRE2_SIZE \fIvalue\fP);" |
103 | 103 | .sp |
| 104 | +.B int pcre2_set_max_pattern_compiled_length( |
| 105 | +.B " pcre2_compile_context *\fIccontext\fP, PCRE2_SIZE \fIvalue\fP);" |
| 106 | +.sp |
104 | 107 | .B int pcre2_set_max_varlookbehind(pcre2_compile_contest *\fIccontext\fP, |
105 | 108 | .B " uint32_t \fIvalue\fP); |
106 | 109 | .sp |
@@ -805,6 +808,18 @@ external sources can limit their size. The default is the largest number that a |
805 | 808 | PCRE2_SIZE variable can hold, which is effectively unlimited. |
806 | 809 | .sp |
807 | 810 | .nf |
| 811 | +.B int pcre2_set_max_pattern_compiled_length( |
| 812 | +.B " pcre2_compile_context *\fIccontext\fP, PCRE2_SIZE \fIvalue\fP);" |
| 813 | +.fi |
| 814 | +.sp |
| 815 | +This sets a maximum size, in bytes, for the memory needed to hold the compiled |
| 816 | +version of a pattern that is compiled with this context. If the pattern needs |
| 817 | +more memory, an error is generated. This facility is provided so that |
| 818 | +applications that accept patterns from external sources can limit the amount of |
| 819 | +memory they use. The default is the largest number that a PCRE2_SIZE variable |
| 820 | +can hold, which is effectively unlimited. |
| 821 | +.sp |
| 822 | +.nf |
808 | 823 | .B int pcre2_set_max_varlookbehind(pcre2_compile_contest *\fIccontext\fP, |
809 | 824 | .B " uint32_t \fIvalue\fP); |
810 | 825 | .fi |
@@ -4167,6 +4182,6 @@ Cambridge, England. |
4167 | 4182 | .rs |
4168 | 4183 | .sp |
4169 | 4184 | .nf |
4170 | | -Last updated: 27 January 2024 |
| 4185 | +Last updated: 24 April 2024 |
4171 | 4186 | Copyright (c) 1997-2024 University of Cambridge. |
4172 | 4187 | .fi |
0 commit comments