summaryrefslogtreecommitdiff
path: root/doc/html
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/html
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/html')
-rw-r--r--doc/html/pcre2api.html19
1 files changed, 10 insertions, 9 deletions
diff --git a/doc/html/pcre2api.html b/doc/html/pcre2api.html
index 9ac4098..5faadc4 100644
--- a/doc/html/pcre2api.html
+++ b/doc/html/pcre2api.html
@@ -1304,9 +1304,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
<a href="#matchdatablock">match data block</a>
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
@@ -2420,11 +2420,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 <b>pcre2_match()</b>"
+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 <b>pcre2_match()</b>"
<a href="#matchoptions>">below.</a>
</P>
<P>
@@ -3756,7 +3757,7 @@ Cambridge, England.
</P>
<br><a name="SEC42" href="#TOC1">REVISION</a><br>
<P>
-Last updated: 17 October 2018
+Last updated: 19 October 2018
<br>
Copyright &copy; 1997-2018 University of Cambridge.
<br>