summaryrefslogtreecommitdiff
path: root/doc/pcre2api.3
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2018-10-19 15:31:16 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2018-10-19 15:31:16 +0000
commita5b6bbcc28348f8f66327a4a9f21b2eb8e0feb3d (patch)
treedfb14ffbac8b3069eb0fd1006deb8a37c4934933 /doc/pcre2api.3
parent02cb71124f638f9079cfbe3c51a68980aec25956 (diff)
downloadpcre2-a5b6bbcc28348f8f66327a4a9f21b2eb8e0feb3d.tar.gz
Set subject field in match data to NULL after failed match.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1031 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'doc/pcre2api.3')
-rw-r--r--doc/pcre2api.321
1 files changed, 11 insertions, 10 deletions
diff --git a/doc/pcre2api.3 b/doc/pcre2api.3
index d1697ed..52a68c5 100644
--- a/doc/pcre2api.3
+++ b/doc/pcre2api.3
@@ -1,4 +1,4 @@
-.TH PCRE2API 3 "17 October 2018" "PCRE2 10.33"
+.TH PCRE2API 3 "19 October 2018" "PCRE2 10.33"
.SH NAME
PCRE2 - Perl-compatible regular expressions (revised API)
.sp
@@ -1236,9 +1236,9 @@ NULL.
.P
NOTE: When one of the matching functions is called, pointers to the compiled
pattern and the subject string are set in the match data block so that they can
-be referenced by the substring extraction functions. After running a match, you
-must not free a compiled pattern or a subject string until after all
-operations on the
+be referenced by the substring extraction functions after a successful match.
+After running a match, you must not free a compiled pattern or a subject string
+until after all operations on the
.\" HTML <a href="#matchdatablock">
.\" </a>
match data block
@@ -2394,11 +2394,12 @@ on the error, and is detailed below.
.P
When one of the matching functions is called, pointers to the compiled pattern
and the subject string are set in the match data block so that they can be
-referenced by the extraction functions. After running a match, you must not
-free a compiled pattern or a subject string until after all operations on the
-match data block (for that match) have taken place, unless, in the case of the
-subject string, you have used the PCRE2_COPY_MATCHED_SUBJECT option, which is
-described in the section entitled "Option bits for \fBpcre2_match()\fP"
+referenced by the extraction functions after a successful match. After running
+a match, you must not free a compiled pattern or a subject string until after
+all operations on the match data block (for that match) have taken place,
+unless, in the case of the subject string, you have used the
+PCRE2_COPY_MATCHED_SUBJECT option, which is described in the section entitled
+"Option bits for \fBpcre2_match()\fP"
.\" HTML <a href="#matchoptions>">
.\" </a>
below.
@@ -3767,6 +3768,6 @@ Cambridge, England.
.rs
.sp
.nf
-Last updated: 17 October 2018
+Last updated: 19 October 2018
Copyright (c) 1997-2018 University of Cambridge.
.fi