From 3e6f0169072c302ee4c05e62c47ab611b8d00990 Mon Sep 17 00:00:00 2001 From: "Philip.Hazel" Date: Fri, 7 Sep 2018 15:56:36 +0000 Subject: [PATCH] Documentation update. --- doc/pcre2api.3 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/doc/pcre2api.3 b/doc/pcre2api.3 index fff4fcc..34d96d8 100644 --- a/doc/pcre2api.3 +++ b/doc/pcre2api.3 @@ -1,4 +1,4 @@ -.TH PCRE2API 3 "02 September 2018" "PCRE2 10.32" +.TH PCRE2API 3 "07 September 2018" "PCRE2 10.32" .SH NAME PCRE2 - Perl-compatible regular expressions (revised API) .sp @@ -2768,7 +2768,7 @@ Elements in the ovector that do not correspond to capturing parentheses in the pattern are never changed. That is, if a pattern contains \fIn\fP capturing parentheses, no more than \fIovector[0]\fP to \fIovector[2n+1]\fP are set by \fBpcre2_match()\fP. The other elements retain whatever values they previously -had. +had. After a failed match attempt, the contents of the ovector are unchanged. . . .\" HTML @@ -3200,6 +3200,11 @@ data block is obtained and freed within this function, using memory management functions from the match context, if provided, or else those that were used to allocate memory for the compiled code. .P +If an external \fImatch_data\fP block is provided, its contents afterwards +are those set by the final call to \fBpcre2_match()\fP, which will have +ended in a matching error. The contents of the ovector within the match data +block may or may not have been changed. +.P The \fIoutlengthptr\fP argument must point to a variable that contains the length, in code units, of the output buffer. If the function is successful, the value is updated to contain the length of the new string, excluding the @@ -3665,6 +3670,6 @@ Cambridge, England. .rs .sp .nf -Last updated: 03 August 2018 +Last updated: 07 September 2018 Copyright (c) 1997-2018 University of Cambridge. .fi