mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
0efb15cda2
commit
140560e4ee
3 changed files with 38 additions and 30 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue