mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
lib/unicode_normalize/normalize.rb: Comment clarification. [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2cd4da28c6
commit
2b7f0289f8
2 changed files with 5 additions and 1 deletions
|
@ -71,7 +71,7 @@ module UnicodeNormalize
|
|||
## 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue