Perl-совместимые регулярные выражения (Perl-compatible regular expressions)
UTF-8, UTF-16 AND UTF-32 SUPPORT
To build PCRE with support for UTF Unicode character strings, add
--enable-utf
to the configure
command. This setting applies to all three
libraries, adding support for UTF-8 to the 8-bit library, support
for UTF-16 to the 16-bit library, and support for UTF-32 to the
to the 32-bit library. There are no separate options for enabling
UTF-8, UTF-16 and UTF-32 independently because that would allow
ridiculous settings such as requesting UTF-16 support while
building only the 8-bit library. It is not possible to build one
library with UTF support and another without in the same
configuration. (For backwards compatibility, --enable-utf8 is a
synonym of --enable-utf.)
Of itself, this setting does not make PCRE treat strings as
UTF-8, UTF-16 or UTF-32. As well as compiling PCRE with this
option, you also have have to set the PCRE_UTF8, PCRE_UTF16 or
PCRE_UTF32 option (as appropriate) when you call one of the
pattern compiling functions.
If you set --enable-utf when compiling in an EBCDIC environment,
PCRE expects its input to be either ASCII or UTF-8 (depending on
the run-time option). It is not possible to support both EBCDIC
and UTF-8 codes in the same version of the library. Consequently,
--enable-utf and --enable-ebcdic are mutually exclusive.