diff options
author | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-04 01:36:52 +0000 |
---|---|---|
committer | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-04 01:36:52 +0000 |
commit | 3272e3b1999a1793e8dc03a5d2ce11b2755c5ad1 (patch) | |
tree | 21b450e1f3891efd9bea8a6f0200e4268d50ac85 /lib/unicode_normalize | |
parent | 79994001557428e85a0f47b83ed9b2812b6e276f (diff) | |
download | ruby-3272e3b1999a1793e8dc03a5d2ce11b2755c5ad1.tar.gz |
move definition of String#unicode_normalize! to C to make sure it is documented
* lib/unicode_normalize.rb: Remove definition of String#unicode_normalize!
(including documentation)
* string.c: Define String#unicode_normalize! in rb_str_unicode_normalize_bang in C,
(including documentation)
* lib/unicode_normalize/normalize.rb: Remove (re)definition of
String#unicode_normalize! to avoid warnings (when $VERBOSE==true) and
problems when String is frozen
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/unicode_normalize')
-rw-r--r-- | lib/unicode_normalize/normalize.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/unicode_normalize/normalize.rb b/lib/unicode_normalize/normalize.rb index 8bfbbfeea5..4302c6a975 100644 --- a/lib/unicode_normalize/normalize.rb +++ b/lib/unicode_normalize/normalize.rb @@ -160,10 +160,6 @@ module UnicodeNormalize # :nodoc: end # module class String # :nodoc: - def unicode_normalize!(form = :nfc) - replace(UnicodeNormalize.normalize(self, form)) - end - def unicode_normalized?(form = :nfc) UnicodeNormalize.normalized?(self, form) end |