--- code/trunk/doc/html/pcre.html 2010/11/17 17:55:57 572 +++ code/trunk/doc/html/pcre.html 2011/08/02 11:00:40 654 @@ -33,7 +33,7 @@ The current implementation of PCRE corresponds approximately with Perl 5.12, including support for UTF-8 encoded strings and Unicode general category properties. However, UTF-8 and Unicode support has to be explicitly enabled; it -is not the default. The Unicode tables correspond to Unicode release 5.2.0. +is not the default. The Unicode tables correspond to Unicode release 6.0.0.

In addition to the Perl-compatible matching function, PCRE contains an @@ -207,13 +207,18 @@ UTF-8.)

-If an invalid UTF-8 string is passed to PCRE, an error return -(PCRE_ERROR_BADUTF8) is given. In some situations, you may already know that -your strings are valid, and therefore want to skip these checks in order to -improve performance. If you set the PCRE_NO_UTF8_CHECK flag at compile time or -at run time, PCRE assumes that the pattern or subject it is given -(respectively) contains only valid UTF-8 codes. In this case, it does not -diagnose an invalid UTF-8 string. +If an invalid UTF-8 string is passed to PCRE, an error return is given. At +compile time, the only additional information is the offset to the first byte +of the failing character. The runtime functions (pcre_exec() and +pcre_dfa_exec()), pass back this information as well as a more detailed +reason code if the caller has provided memory in which to do this. +

+

+In some situations, you may already know that your strings are valid, and +therefore want to skip these checks in order to improve performance. If you set +the PCRE_NO_UTF8_CHECK flag at compile time or at run time, PCRE assumes that +the pattern or subject it is given (respectively) contains only valid UTF-8 +codes. In this case, it does not diagnose an invalid UTF-8 string.

If you pass an invalid UTF-8 string when PCRE_NO_UTF8_CHECK is set, what @@ -305,9 +310,9 @@


REVISION

-Last updated: 13 November 2010 +Last updated: 07 May 2011
-Copyright © 1997-2010 University of Cambridge. +Copyright © 1997-2011 University of Cambridge.

Return to the PCRE index page.