Documentation update.

This commit is contained in:
Philip.Hazel 2017-06-17 11:40:17 +00:00
parent 76a57bd839
commit b8a935f35e
3 changed files with 31 additions and 28 deletions

View File

@ -439,10 +439,11 @@ but some of them use Unicode properties if PCRE2_UCP is set. You can use
</pre> </pre>
The following are recognized only at the very start of a pattern or after one The following are recognized only at the very start of a pattern or after one
of the newline or \R options with similar syntax. More than one of them may of the newline or \R options with similar syntax. More than one of them may
appear. appear. For the first three, d is a decimal number.
<pre> <pre>
(*LIMIT_MATCH=d) set the match limit to d (decimal number) (*LIMIT_DEPTH=d) set the backtracking limit to d
(*LIMIT_DEPTH=d) set the backtracking limit to d (decimal number) (*LIMIT_HEAP=d) set the heap size limit to d kilobytes
(*LIMIT_MATCH=d) set the match limit to d
(*NOTEMPTY) set PCRE2_NOTEMPTY when matching (*NOTEMPTY) set PCRE2_NOTEMPTY when matching
(*NOTEMPTY_ATSTART) set PCRE2_NOTEMPTY_ATSTART when matching (*NOTEMPTY_ATSTART) set PCRE2_NOTEMPTY_ATSTART when matching
(*NO_AUTO_POSSESS) no auto-possessification (PCRE2_NO_AUTO_POSSESS) (*NO_AUTO_POSSESS) no auto-possessification (PCRE2_NO_AUTO_POSSESS)
@ -452,9 +453,9 @@ appear.
(*UTF) set appropriate UTF mode for the library in use (*UTF) set appropriate UTF mode for the library in use
(*UCP) set PCRE2_UCP (use Unicode properties for \d etc) (*UCP) set PCRE2_UCP (use Unicode properties for \d etc)
</pre> </pre>
Note that LIMIT_MATCH and LIMIT_DEPTH can only reduce the value of the limits Note that LIMIT_DEPTH, LIMIT_HEAP, and LIMIT_MATCH can only reduce the value of
set by the caller of <b>pcre2_match()</b> or <b>pcre2_dfa_match()</b>, not the limits set by the caller of <b>pcre2_match()</b> or <b>pcre2_dfa_match()</b>,
increase them. LIMIT_RECURSION is an obsolete synonym for LIMIT_DEPTH. The not increase them. LIMIT_RECURSION is an obsolete synonym for LIMIT_DEPTH. The
application can lock out the use of (*UTF) and (*UCP) by setting the application can lock out the use of (*UTF) and (*UCP) by setting the
PCRE2_NEVER_UTF or PCRE2_NEVER_UCP options, respectively, at compile time. PCRE2_NEVER_UTF or PCRE2_NEVER_UCP options, respectively, at compile time.
</P> </P>
@ -599,7 +600,7 @@ Cambridge, England.
</P> </P>
<br><a name="SEC27" href="#TOC1">REVISION</a><br> <br><a name="SEC27" href="#TOC1">REVISION</a><br>
<P> <P>
Last updated: 26 May 2017 Last updated: 17 June 2017
<br> <br>
Copyright &copy; 1997-2017 University of Cambridge. Copyright &copy; 1997-2017 University of Cambridge.
<br> <br>

View File

@ -9829,10 +9829,11 @@ OPTION SETTING
The following are recognized only at the very start of a pattern or The following are recognized only at the very start of a pattern or
after one of the newline or \R options with similar syntax. More than after one of the newline or \R options with similar syntax. More than
one of them may appear. one of them may appear. For the first three, d is a decimal number.
(*LIMIT_MATCH=d) set the match limit to d (decimal number) (*LIMIT_DEPTH=d) set the backtracking limit to d
(*LIMIT_DEPTH=d) set the backtracking limit to d (decimal number) (*LIMIT_HEAP=d) set the heap size limit to d kilobytes
(*LIMIT_MATCH=d) set the match limit to d
(*NOTEMPTY) set PCRE2_NOTEMPTY when matching (*NOTEMPTY) set PCRE2_NOTEMPTY when matching
(*NOTEMPTY_ATSTART) set PCRE2_NOTEMPTY_ATSTART when matching (*NOTEMPTY_ATSTART) set PCRE2_NOTEMPTY_ATSTART when matching
(*NO_AUTO_POSSESS) no auto-possessification (PCRE2_NO_AUTO_POSSESS) (*NO_AUTO_POSSESS) no auto-possessification (PCRE2_NO_AUTO_POSSESS)
@ -9842,12 +9843,12 @@ OPTION SETTING
(*UTF) set appropriate UTF mode for the library in use (*UTF) set appropriate UTF mode for the library in use
(*UCP) set PCRE2_UCP (use Unicode properties for \d etc) (*UCP) set PCRE2_UCP (use Unicode properties for \d etc)
Note that LIMIT_MATCH and LIMIT_DEPTH can only reduce the value of the Note that LIMIT_DEPTH, LIMIT_HEAP, and LIMIT_MATCH can only reduce the
limits set by the caller of pcre2_match() or pcre2_dfa_match(), not value of the limits set by the caller of pcre2_match() or
increase them. LIMIT_RECURSION is an obsolete synonym for LIMIT_DEPTH. pcre2_dfa_match(), not increase them. LIMIT_RECURSION is an obsolete
The application can lock out the use of (*UTF) and (*UCP) by setting synonym for LIMIT_DEPTH. The application can lock out the use of (*UTF)
the PCRE2_NEVER_UTF or PCRE2_NEVER_UCP options, respectively, at com- and (*UCP) by setting the PCRE2_NEVER_UTF or PCRE2_NEVER_UCP options,
pile time. respectively, at compile time.
NEWLINE CONVENTION NEWLINE CONVENTION
@ -9989,7 +9990,7 @@ AUTHOR
REVISION REVISION
Last updated: 26 May 2017 Last updated: 17 June 2017
Copyright (c) 1997-2017 University of Cambridge. Copyright (c) 1997-2017 University of Cambridge.
------------------------------------------------------------------------------ ------------------------------------------------------------------------------

View File

@ -1,4 +1,4 @@
.TH PCRE2SYNTAX 3 "26 May 2017" "PCRE2 10.30" .TH PCRE2SYNTAX 3 "17 June 2017" "PCRE2 10.30"
.SH NAME .SH NAME
PCRE2 - Perl-compatible regular expressions (revised API) PCRE2 - Perl-compatible regular expressions (revised API)
.SH "PCRE2 REGULAR EXPRESSION SYNTAX SUMMARY" .SH "PCRE2 REGULAR EXPRESSION SYNTAX SUMMARY"
@ -416,10 +416,11 @@ but some of them use Unicode properties if PCRE2_UCP is set. You can use
.sp .sp
The following are recognized only at the very start of a pattern or after one The following are recognized only at the very start of a pattern or after one
of the newline or \eR options with similar syntax. More than one of them may of the newline or \eR options with similar syntax. More than one of them may
appear. appear. For the first three, d is a decimal number.
.sp .sp
(*LIMIT_MATCH=d) set the match limit to d (decimal number) (*LIMIT_DEPTH=d) set the backtracking limit to d
(*LIMIT_DEPTH=d) set the backtracking limit to d (decimal number) (*LIMIT_HEAP=d) set the heap size limit to d kilobytes
(*LIMIT_MATCH=d) set the match limit to d
(*NOTEMPTY) set PCRE2_NOTEMPTY when matching (*NOTEMPTY) set PCRE2_NOTEMPTY when matching
(*NOTEMPTY_ATSTART) set PCRE2_NOTEMPTY_ATSTART when matching (*NOTEMPTY_ATSTART) set PCRE2_NOTEMPTY_ATSTART when matching
(*NO_AUTO_POSSESS) no auto-possessification (PCRE2_NO_AUTO_POSSESS) (*NO_AUTO_POSSESS) no auto-possessification (PCRE2_NO_AUTO_POSSESS)
@ -429,9 +430,9 @@ appear.
(*UTF) set appropriate UTF mode for the library in use (*UTF) set appropriate UTF mode for the library in use
(*UCP) set PCRE2_UCP (use Unicode properties for \ed etc) (*UCP) set PCRE2_UCP (use Unicode properties for \ed etc)
.sp .sp
Note that LIMIT_MATCH and LIMIT_DEPTH can only reduce the value of the limits Note that LIMIT_DEPTH, LIMIT_HEAP, and LIMIT_MATCH can only reduce the value of
set by the caller of \fBpcre2_match()\fP or \fBpcre2_dfa_match()\fP, not the limits set by the caller of \fBpcre2_match()\fP or \fBpcre2_dfa_match()\fP,
increase them. LIMIT_RECURSION is an obsolete synonym for LIMIT_DEPTH. The not increase them. LIMIT_RECURSION is an obsolete synonym for LIMIT_DEPTH. The
application can lock out the use of (*UTF) and (*UCP) by setting the application can lock out the use of (*UTF) and (*UCP) by setting the
PCRE2_NEVER_UTF or PCRE2_NEVER_UCP options, respectively, at compile time. PCRE2_NEVER_UTF or PCRE2_NEVER_UCP options, respectively, at compile time.
. .
@ -588,6 +589,6 @@ Cambridge, England.
.rs .rs
.sp .sp
.nf .nf
Last updated: 26 May 2017 Last updated: 17 June 2017
Copyright (c) 1997-2017 University of Cambridge. Copyright (c) 1997-2017 University of Cambridge.
.fi .fi