--- embedaddon/pcre/doc/html/pcre16.html 2012/02/21 23:50:25 1.1
+++ embedaddon/pcre/doc/html/pcre16.html 2013/07/22 08:25:57 1.1.1.3
@@ -187,7 +187,7 @@ library. For example, if you want to study a pattern t
THE HEADER FILE
There is only one header file, pcre.h. It contains prototypes for all the -functions in both libraries, as well as definitions of flags, structures, error +functions in all libraries, as well as definitions of flags, structures, error codes, etc.
@@ -259,8 +259,9 @@ buffer, including the zero terminator if the string wa
-The offsets within subject strings that are returned by the matching functions -are in 16-bit units rather than bytes. +The lengths and starting offsets of subject strings must be specified in 16-bit +data units, and the offsets within subject strings that are returned by the +matching functions are in also 16-bit units rather than bytes.
@@ -273,13 +274,19 @@ units.
There are two new general option names, PCRE_UTF16 and PCRE_NO_UTF16_CHECK, which correspond to PCRE_UTF8 and PCRE_NO_UTF8_CHECK in the 8-bit library. In -fact, these new options define the same bits in the options word. +fact, these new options define the same bits in the options word. There is a +discussion about the +validity of UTF-16 strings +in the +pcreunicode +page.
For the pcre16_config() function there is an option PCRE_CONFIG_UTF16 that returns 1 if UTF-16 support is configured, otherwise 0. If this option is -given to pcre_config(), or if the PCRE_CONFIG_UTF8 option is given to -pcre16_config(), the result is the PCRE_ERROR_BADOPTION error. +given to pcre_config() or pcre32_config(), or if the +PCRE_CONFIG_UTF8 or PCRE_CONFIG_UTF32 option is given to pcre16_config(), +the result is the PCRE_ERROR_BADOPTION error.
@@ -322,7 +329,7 @@ page. The UTF-16 errors are: PCRE_UTF16_ERR1 Missing low surrogate at end of string PCRE_UTF16_ERR2 Invalid low surrogate follows high surrogate PCRE_UTF16_ERR3 Isolated low surrogate - PCRE_UTF16_ERR4 Invalid character 0xfffe + PCRE_UTF16_ERR4 Non-character
When PCRE is being built, the RunTest script that is called by "make -check" uses the pcretest -C option to discover which of the 8-bit -and 16-bit libraries has been built, and runs the tests appropriately. +check" uses the pcretest -C option to discover which of the 8-bit, +16-bit and 32-bit libraries has been built, and runs the tests appropriately.
@@ -368,9 +375,9 @@ Cambridge CB2 3QH, England.
-Last updated: 08 January 2012
+Last updated: 12 May 2013
-Copyright © 1997-2012 University of Cambridge.
+Copyright © 1997-2013 University of Cambridge.
Return to the PCRE index page.