1 .TH PCRE2_SET_MAX_PATTERN_LENGTH 3 "05 October 2016" "PCRE2 10.23"
3 PCRE2 - Perl-compatible regular expressions (revised API)
10 .B int pcre2_set_max_pattern_length(pcre2_compile_context *\fIccontext\fP,
11 .B " PCRE2_SIZE \fIvalue\fP);"
17 This function sets, in a compile context, the maximum text length (in code
18 units) of the pattern that can be compiled. The result is always zero. If a
19 longer pattern is passed to \fBpcre2_compile()\fP there is an immediate error
20 return. The default is effectively unlimited, being the largest value a
21 PCRE2_SIZE variable can hold.
23 There is a complete description of the PCRE2 native API in the
27 page and a description of the POSIX API in the