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

ruby-changes:7643

From: akr <ko1@a...>
Date: Sat, 6 Sep 2008 06:25:01 +0900 (JST)
Subject: [ruby-changes:7643] Ruby:r19164 (trunk): * tool/transcode-tblgen.rb (StrSet.parse): accept upper case

akr	2008-09-06 06:24:42 +0900 (Sat, 06 Sep 2008)

  New Revision: 19164

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19164

  Log:
    * tool/transcode-tblgen.rb (StrSet.parse): accept upper case
      hexadecimal digits.

  Modified files:
    trunk/ChangeLog
    trunk/tool/transcode-tblgen.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 19163)
+++ ChangeLog	(revision 19164)
@@ -1,3 +1,8 @@
+Sat Sep  6 06:23:27 2008  Tanaka Akira  <akr@f...>
+
+	* tool/transcode-tblgen.rb (StrSet.parse): accept upper case
+	  hexadecimal digits.
+
 Sat Sep  6 05:37:08 2008  Tanaka Akira  <akr@f...>
 
 	* transcode.c (output_hex_charref): upcase hexadecimal digits.
Index: tool/transcode-tblgen.rb
===================================================================
--- tool/transcode-tblgen.rb	(revision 19163)
+++ tool/transcode-tblgen.rb	(revision 19164)
@@ -36,11 +36,11 @@
           seq = $'
           set_result = []
           set.scan(/[^,]+/) {|range|
-            if /\A([0-9a-f][0-9a-f])-([0-9a-f][0-9a-f])\z/ =~ range
+            if /\A([0-9a-f][0-9a-f])-([0-9a-f][0-9a-f])\z/i =~ range
               b = $1.to_i(16)
               e = $2.to_i(16)
               set_result << (b..e)
-            elsif /\A([0-9a-f][0-9a-f])\z/ =~ range
+            elsif /\A([0-9a-f][0-9a-f])\z/i =~ range
               byte = $1.to_i(16)
               set_result << (byte..byte)
             else

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

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