summaryrefslogtreecommitdiff
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
commit140560e4eeff4ffbf9d63183db25234f46943ab6 (patch)
treeb7f3e95078e32396249d6225899446e5bca1bda7 /lib/unicode_normalize
parent0efb15cda298c9e520376f46e8dcb59fb0cbaeaf (diff)
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