mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
lib/unicode_normalize.rb: Changing method names, see https://bugs.ruby-lang.org/issues/10084#note-7
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
588bbfd1b4
commit
dfb68b3d21
2 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue