Kouhei Sutou
null+****@clear*****
Sat Dec 5 18:52:48 JST 2015
Kouhei Sutou 2015-12-05 18:52:48 +0900 (Sat, 05 Dec 2015) New Revision: 22f1c52bd9f96ad4828c00be09a3ae08599200bb https://github.com/groonga/groonga/commit/22f1c52bd9f96ad4828c00be09a3ae08599200bb Message: nfkc: use pack for creating byte sequence Modified files: lib/nfkc.rb Modified: lib/nfkc.rb (+1 -1) =================================================================== --- lib/nfkc.rb 2015-12-05 17:13:14 +0900 (f43dbe8) +++ lib/nfkc.rb 2015-12-05 18:52:48 +0900 (c014c01) @@ -85,7 +85,7 @@ def generate_blockcode_char_type(file, option) bc = {} open("|./icudump --#{option}").each{|l| src,_,code = l.chomp.split("\t") - str = src.split(':').collect{|c| format("%c", c.hex)}.join + str = src.split(':').collect(&:hex).pack("c*") bc[str] = code } $lv = 0 -------------- next part -------------- HTML����������������������������... Download