use 'Regional_Indicator' script property instead of fixed constants

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
duerst 2018-11-27 03:56:19 +00:00
parent b549d14c00
commit b62e466fb5

View File

@ -6263,10 +6263,7 @@ node_extended_grapheme_cluster(Node** np, ScanEnv* env)
/* this is actually Regional_Indicator+ in Unicode 10.0.0, /* this is actually Regional_Indicator+ in Unicode 10.0.0,
* but it is Regional_Indicator{2} in Unicode 11.0.0, so no need to fix */ * but it is Regional_Indicator{2} in Unicode 11.0.0, so no need to fix */
/* RI-Sequence := Regional_Indicator{2} */ /* RI-Sequence := Regional_Indicator{2} */
np1 = node_new_cclass(); r = create_property_node(&np1, env, "Regional_Indicator");
if (IS_NULL(np1)) goto err;
cc = NCCLASS(np1);
r = add_code_range(&(cc->mbuf), env, 0x1F1E6, 0x1F1FF);
if (r != 0) goto err; if (r != 0) goto err;
tmp = node_new_quantifier(2, 2, 0); tmp = node_new_quantifier(2, 2, 0);