diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/unicode_normalize.rb | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,8 @@ +Sun Oct 19 10:12:12 2014 Martin Duerst <[email protected]> + + * 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 <[email protected]> * lib/unicode_normalize.rb: Changing module name. diff --git a/lib/unicode_normalize.rb b/lib/unicode_normalize.rb index d8255377fd..909aa0528b 100644 --- a/lib/unicode_normalize.rb +++ b/lib/unicode_normalize.rb @@ -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 |