aboutsummaryrefslogtreecommitdiffstats
path: root/lib/unicode_normalize
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-04 02:00:19 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-04 02:00:19 +0000
commit8c00c6d5b3284c4684d8667149dd1fe12b2bf89b (patch)
treeb7f3e95078e32396249d6225899446e5bca1bda7 /lib/unicode_normalize
parent5d79a9fc30ca5d0c6a93ddd15580acb4685d875c (diff)
downloadruby-8c00c6d5b3284c4684d8667149dd1fe12b2bf89b.tar.gz
move definition of String#unicode_normalized? to C to make sure it is documented
* lib/unicode_normalize.rb: Remove definition of String#unicode_normalized? (including documentation). Leave a comment explaining that the file is now empty. * string.c: Define String#unicode_normalized? in rb_str_unicode_normalized_p in C, (including documentation) * lib/unicode_normalize/normalize.rb: Remove (re)definition of String#unicode_normalized? to avoid warnings (when $VERBOSE==true) and problems when String is frozen git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/unicode_normalize')
-rw-r--r--lib/unicode_normalize/normalize.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/unicode_normalize/normalize.rb b/lib/unicode_normalize/normalize.rb
index 4302c6a975..90579a3212 100644
--- a/lib/unicode_normalize/normalize.rb
+++ b/lib/unicode_normalize/normalize.rb
@@ -158,9 +158,3 @@ module UnicodeNormalize # :nodoc:
end
end
end # module
-
-class String # :nodoc:
- def unicode_normalized?(form = :nfc)
- UnicodeNormalize.normalized?(self, form)
- end
-end