Enable UTF and UCP support in PCRE
This commit is contained in:
parent
f6b6a429ff
commit
7c24290eec
3 changed files with 8 additions and 2 deletions
|
|
@ -324,13 +324,13 @@ sure both macros are undefined; an emulation function will then be used. */
|
||||||
/* #undef SUPPORT_PCREGREP_JIT */
|
/* #undef SUPPORT_PCREGREP_JIT */
|
||||||
|
|
||||||
/* Define to any value to enable support for Unicode properties. */
|
/* Define to any value to enable support for Unicode properties. */
|
||||||
/* #undef SUPPORT_UCP */
|
#define SUPPORT_UCP
|
||||||
|
|
||||||
/* Define to any value to enable support for the UTF-8/16/32 Unicode encoding.
|
/* Define to any value to enable support for the UTF-8/16/32 Unicode encoding.
|
||||||
This will work even in an EBCDIC environment, but it is incompatible with
|
This will work even in an EBCDIC environment, but it is incompatible with
|
||||||
the EBCDIC macro. That is, PCRE can support *either* EBCDIC code *or*
|
the EBCDIC macro. That is, PCRE can support *either* EBCDIC code *or*
|
||||||
ASCII/UTF-8/16/32, but not both at once. */
|
ASCII/UTF-8/16/32, but not both at once. */
|
||||||
/* #undef SUPPORT_UTF */
|
#define SUPPORT_UTF
|
||||||
|
|
||||||
/* Define to any value for valgrind support to find invalid memory reads. */
|
/* Define to any value for valgrind support to find invalid memory reads. */
|
||||||
/* #undef SUPPORT_VALGRIND */
|
/* #undef SUPPORT_VALGRIND */
|
||||||
|
|
|
||||||
5
test/misc.nim
Normal file
5
test/misc.nim
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
import unittest, nre
|
||||||
|
|
||||||
|
suite "Misc tests":
|
||||||
|
test "unicode":
|
||||||
|
check("".find(re("", "8")).match == "")
|
||||||
|
|
@ -6,3 +6,4 @@ import split
|
||||||
import match
|
import match
|
||||||
import replace
|
import replace
|
||||||
import escape
|
import escape
|
||||||
|
import misc
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue