Project

General

Profile

« Previous | Next » 

Revision ad619e02

Added by duerst (Martin Dürst) over 7 years ago

implement String/Symbol#casecmp? including Unicode case folding

  • string.c: Implement String#casecmp? and Symbol#casecmp? by using
    String#downcase :fold for Unicode case folding. This does not include
    options such as :turkic, because these currently cannot be combined
    with the :fold option. This implements feature #12786.

  • test/ruby/test_string.rb/test_symbol.rb: Tests for above.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e