зеркало из https://github.com/github/ruby.git
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:
Родитель
2cd4da28c6
Коммит
2b7f0289f8
|
@ -1,3 +1,7 @@
|
|||
Thu Nov 6 08:49:49 2014 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||
|
||||
* lib/unicode_normalize/normalize.rb: Comment clarification.
|
||||
|
||||
Wed Nov 5 23:43:24 2014 Naohisa Goto <ngotogenome@gmail.com>
|
||||
|
||||
* compile.c (compile_data_alloc): add padding when strict alignment
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче