[前][次][番号順一覧][スレッド一覧]

ruby-changes:53802

From: duerst <ko1@a...>
Date: Tue, 27 Nov 2018 12:56:25 +0900 (JST)
Subject: [ruby-changes:53802] duerst:r66020 (trunk): use 'Regional_Indicator' script property instead of fixed constants

duerst	2018-11-27 12:56:19 +0900 (Tue, 27 Nov 2018)

  New Revision: 66020

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66020

  Log:
    use 'Regional_Indicator' script property instead of fixed constants

  Modified files:
    trunk/regparse.c
Index: regparse.c
===================================================================
--- regparse.c	(revision 66019)
+++ regparse.c	(revision 66020)
@@ -6263,10 +6263,7 @@ node_extended_grapheme_cluster(Node** np https://github.com/ruby/ruby/blob/trunk/regparse.c#L6263
     /* 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 */
     /* RI-Sequence := Regional_Indicator{2} */
-    np1 = node_new_cclass();
-    if (IS_NULL(np1)) goto err;
-    cc = NCCLASS(np1);
-    r = add_code_range(&(cc->mbuf), env, 0x1F1E6, 0x1F1FF);
+    r = create_property_node(&np1, env, "Regional_Indicator");
     if (r != 0) goto err;
 
     tmp = node_new_quantifier(2, 2, 0);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]