summaryrefslogtreecommitdiff
path: root/doc/pcrepartial.3
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2010-11-07 16:14:50 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2010-11-07 16:14:50 +0000
commit48f3c76588362811dfc43674ba54066f2f31b045 (patch)
treec87bbd2572ac3c6d6e5fa40d4699a39fca61d665 /doc/pcrepartial.3
parentd04625dfed2986d95e3d39df9ed653d5d6de7ab3 (diff)
downloadpcre-48f3c76588362811dfc43674ba54066f2f31b045.tar.gz
Add PCRE_ERROR_SHORTUTF8 to PCRE_PARTIAL_HARD processing.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@569 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'doc/pcrepartial.3')
-rw-r--r--doc/pcrepartial.38
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/pcrepartial.3 b/doc/pcrepartial.3
index eeb7d85..116b56d 100644
--- a/doc/pcrepartial.3
+++ b/doc/pcrepartial.3
@@ -113,6 +113,12 @@ an earlier partial match over a later complete match. For this reason, the
assumption is made that the end of the supplied subject string may not be the
true end of the available data, and so, if \ez, \eZ, \eb, \eB, or $ are
encountered at the end of the subject, the result is PCRE_ERROR_PARTIAL.
+.P
+Setting PCRE_PARTIAL_HARD also affects the way \fBpcre_exec()\fP checks UTF-8
+subject strings for validity. Normally, an invalid UTF-8 sequence causes the
+error PCRE_ERROR_BADUTF8. However, in the special case of a truncated UTF-8
+character at the end of the subject, PCRE_ERROR_SHORTUTF8 is returned when
+PCRE_PARTIAL_HARD is set.
.
.
.SS "Comparing hard and soft partial matching"
@@ -406,6 +412,6 @@ Cambridge CB2 3QH, England.
.rs
.sp
.nf
-Last updated: 22 October 2010
+Last updated: 07 November 2010
Copyright (c) 1997-2010 University of Cambridge.
.fi