diff options
author | Maganty Rushyendra <mrushyendra@yahoo.com.sg> | 2020-06-11 14:45:05 +0800 |
---|---|---|
committer | Maganty Rushyendra <mrushyendra@yahoo.com.sg> | 2020-06-11 14:49:02 +0800 |
commit | 9f10f6779cfdc15c1304c017bac5ad25de2383b6 (patch) | |
tree | 8348613cdb9d6aa46bb223128e9842df8d22d076 | |
parent | c2b43403b4850b679bcf2524eac5bc2d52eec8f2 (diff) |
Enable Unicode support for RegEx class
Build PCRE2 thirdparty library with unicode support. RegEx objects
in Godot can now be used to recognize unicode strings.
-rw-r--r-- | modules/regex/SCsub | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/regex/SCsub b/modules/regex/SCsub index 753650adcb..2afacc1d9c 100644 --- a/modules/regex/SCsub +++ b/modules/regex/SCsub @@ -7,7 +7,7 @@ env_regex = env_modules.Clone() if env["builtin_pcre2"]: thirdparty_dir = "#thirdparty/pcre2/src/" - thirdparty_flags = ["PCRE2_STATIC", "HAVE_CONFIG_H"] + thirdparty_flags = ["PCRE2_STATIC", "HAVE_CONFIG_H", "SUPPORT_UNICODE"] if env["builtin_pcre2_with_jit"]: thirdparty_flags.append("SUPPORT_JIT") |