| 113 |
assumption is made that the end of the supplied subject string may not be the |
assumption is made that the end of the supplied subject string may not be the |
| 114 |
true end of the available data, and so, if \ez, \eZ, \eb, \eB, or $ are |
true end of the available data, and so, if \ez, \eZ, \eb, \eB, or $ are |
| 115 |
encountered at the end of the subject, the result is PCRE_ERROR_PARTIAL. |
encountered at the end of the subject, the result is PCRE_ERROR_PARTIAL. |
| 116 |
|
.P |
| 117 |
|
Setting PCRE_PARTIAL_HARD also affects the way \fBpcre_exec()\fP checks UTF-8 |
| 118 |
|
subject strings for validity. Normally, an invalid UTF-8 sequence causes the |
| 119 |
|
error PCRE_ERROR_BADUTF8. However, in the special case of a truncated UTF-8 |
| 120 |
|
character at the end of the subject, PCRE_ERROR_SHORTUTF8 is returned when |
| 121 |
|
PCRE_PARTIAL_HARD is set. |
| 122 |
. |
. |
| 123 |
. |
. |
| 124 |
.SS "Comparing hard and soft partial matching" |
.SS "Comparing hard and soft partial matching" |
| 412 |
.rs |
.rs |
| 413 |
.sp |
.sp |
| 414 |
.nf |
.nf |
| 415 |
Last updated: 22 October 2010 |
Last updated: 07 November 2010 |
| 416 |
Copyright (c) 1997-2010 University of Cambridge. |
Copyright (c) 1997-2010 University of Cambridge. |
| 417 |
.fi |
.fi |