Documentation clarification

This commit is contained in:
Philip.Hazel 2016-02-27 12:10:40 +00:00
parent be1ac011ec
commit 4d807dc033
1 changed files with 10 additions and 6 deletions

View File

@ -1,4 +1,4 @@
.TH PCRE2API 3 "26 February 2016" "PCRE2 10.22" .TH PCRE2API 3 "27 February 2016" "PCRE2 10.22"
.SH NAME .SH NAME
PCRE2 - Perl-compatible regular expressions (revised API) PCRE2 - Perl-compatible regular expressions (revised API)
.sp .sp
@ -1628,10 +1628,14 @@ are as follows:
Return a copy of the pattern's options. The third argument should point to a Return a copy of the pattern's options. The third argument should point to a
\fBuint32_t\fP variable. PCRE2_INFO_ARGOPTIONS returns exactly the options that \fBuint32_t\fP variable. PCRE2_INFO_ARGOPTIONS returns exactly the options that
were passed to \fBpcre2_compile()\fP, whereas PCRE2_INFO_ALLOPTIONS returns were passed to \fBpcre2_compile()\fP, whereas PCRE2_INFO_ALLOPTIONS returns
the compile options as modified by any top-level option settings such as (*UTF) the compile options as modified by any top-level (*XXX) option settings such as
at the start of the pattern itself. For example, if the pattern /(*UTF)abc/ is (*UTF) at the start of the pattern itself.
compiled with the PCRE2_EXTENDED option, the result is PCRE2_EXTENDED and .P
PCRE2_UTF. For example, if the pattern /(*UTF)abc/ is compiled with the PCRE2_EXTENDED
option, the result for PCRE2_INFO_ALLOPTIONS is PCRE2_EXTENDED and PCRE2_UTF.
Option settings such as (?i) that can change within a pattern do not affect the
result of PCRE2_INFO_ALLOPTIONS, even if they appear right at the start of the
pattern. (This was different in some earlier releases.)
.P .P
A pattern compiled without PCRE2_ANCHORED is automatically anchored by PCRE2 if A pattern compiled without PCRE2_ANCHORED is automatically anchored by PCRE2 if
the first significant item in every top-level branch is one of the following: the first significant item in every top-level branch is one of the following:
@ -3229,6 +3233,6 @@ Cambridge, England.
.rs .rs
.sp .sp
.nf .nf
Last updated: 26 February 2016 Last updated: 27 February 2016
Copyright (c) 1997-2016 University of Cambridge. Copyright (c) 1997-2016 University of Cambridge.
.fi .fi