[Pcre-svn] [898] code/trunk/doc/pcre2api.3: Documentation up…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [898] code/trunk/doc/pcre2api.3: Documentation update.
Revision: 898
          http://www.exim.org/viewvc/pcre2?view=rev&revision=898
Author:   ph10
Date:     2017-12-31 17:44:12 +0000 (Sun, 31 Dec 2017)
Log Message:
-----------
Documentation update.


Modified Paths:
--------------
    code/trunk/doc/pcre2api.3


Modified: code/trunk/doc/pcre2api.3
===================================================================
--- code/trunk/doc/pcre2api.3    2017-12-26 16:43:45 UTC (rev 897)
+++ code/trunk/doc/pcre2api.3    2017-12-31 17:44:12 UTC (rev 898)
@@ -1,4 +1,4 @@
-.TH PCRE2API 3 "16 December 2017" "PCRE2 10.31"
+.TH PCRE2API 3 "31 December 2017" "PCRE2 10.31"
 .SH NAME
 PCRE2 - Perl-compatible regular expressions (revised API)
 .sp
@@ -875,10 +875,10 @@
 .P
 The offset limit facility can be used to track progress when searching large
 subject strings or to limit the extent of global substitutions. See also the
-PCRE2_FIRSTLINE option, which requires a match to start within the first line
-of the subject. If this is set with an offset limit, a match must occur in the
-first line and also within the offset limit. In other words, whichever limit
-comes first is used.
+PCRE2_FIRSTLINE option, which requires a match to start before or at the first
+newline that follows the start of matching in the subject. If this is set with
+an offset limit, a match must occur in the first line and also within the
+offset limit. In other words, whichever limit comes first is used.
 .sp
 .nf
 .B int pcre2_set_heap_limit(pcre2_match_context *\fImcontext\fP,
@@ -1446,11 +1446,16 @@
   PCRE2_FIRSTLINE
 .sp
 If this option is set, the start of an unanchored pattern match must be before
-or at the first newline in the subject string, though the matched text may
-continue over the newline. See also PCRE2_USE_OFFSET_LIMIT, which provides a
-more general limiting facility. If PCRE2_FIRSTLINE is set with an offset limit,
-a match must occur in the first line and also within the offset limit. In other
-words, whichever limit comes first is used.
+or at the first newline in the subject string following the start of matching,
+though the matched text may continue over the newline. If \fIstartoffset\fP is 
+non-zero, the limiting newline is not necessarily the first newline in the 
+subject. For example, if the subject string is "abc\enxyz" (where \en
+represents a single-character newline) a pattern match for "yz" succeeds with
+PCRE2_FIRSTLINE if \fIstartoffset\fP is greater than 3. See also
+PCRE2_USE_OFFSET_LIMIT, which provides a more general limiting facility. If
+PCRE2_FIRSTLINE is set with an offset limit, a match must occur in the first
+line and also within the offset limit. In other words, whichever limit comes
+first is used.
 .sp
   PCRE2_LITERAL
 .sp
@@ -3600,6 +3605,6 @@
 .rs
 .sp
 .nf
-Last updated: 16 December 2017
+Last updated: 31 December 2017
 Copyright (c) 1997-2017 University of Cambridge.
 .fi