git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
duerst 2014-10-19 01:12:26 +00:00
Родитель 588bbfd1b4
Коммит dfb68b3d21
2 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Sun Oct 19 10:12:12 2014 Martin Duerst <duerst@it.aoyama.ac.jp>
* lib/unicode_normalize.rb: Changing method names, see
https://bugs.ruby-lang.org/issues/10084#note-7
Sun Oct 19 10:10:10 2014 Martin Duerst <duerst@it.aoyama.ac.jp>
* lib/unicode_normalize.rb: Changing module name.

Просмотреть файл

@ -5,15 +5,15 @@
require 'unicode_normalize/normalize.rb'
class String
def normalize(form = :nfc)
def unicode_normalize(form = :nfc)
UnicodeNormalize.normalize(self, form)
end
def normalize!(form = :nfc)
def unicode_normalize!(form = :nfc)
replace(self.normalize(form))
end
def normalized?(form = :nfc)
def unicode_normalized?(form = :nfc)
UnicodeNormalize.normalized?(self, form)
end
end