ruby-changes:36209
From: duerst <ko1@a...>
Date: Thu, 6 Nov 2014 08:50:14 +0900 (JST)
Subject: [ruby-changes:36209] duerst:r48290 (trunk): lib/unicode_normalize/normalize.rb: Comment clarification. [ci skip]
duerst 2014-11-06 08:49:55 +0900 (Thu, 06 Nov 2014) New Revision: 48290 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48290 Log: lib/unicode_normalize/normalize.rb: Comment clarification. [ci skip] Modified files: trunk/ChangeLog trunk/lib/unicode_normalize/normalize.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 48289) +++ ChangeLog (revision 48290) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Nov 6 08:49:49 2014 Martin Duerst <duerst@i...> + + * lib/unicode_normalize/normalize.rb: Comment clarification. + Wed Nov 5 23:43:24 2014 Naohisa Goto <ngotogenome@g...> * compile.c (compile_data_alloc): add padding when strict alignment Index: lib/unicode_normalize/normalize.rb =================================================================== --- lib/unicode_normalize/normalize.rb (revision 48289) +++ lib/unicode_normalize/normalize.rb (revision 48290) @@ -71,7 +71,7 @@ module UnicodeNormalize https://github.com/ruby/ruby/blob/trunk/lib/unicode_normalize/normalize.rb#L71 ## Canonical Ordering def self.canonical_ordering_one(string) sorting = string.each_char.collect { |c| [c, CLASS_TABLE[c]] } - (sorting.length-2).downto(0) do |i| # bubble sort + (sorting.length-2).downto(0) do |i| # almost, but not exactly bubble sort (0..i).each do |j| later_class = sorting[j+1].last if 0<later_class and later_class<sorting[j].last -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/