[ruby-core:78386] [Ruby trunk Feature#12786] String#casecmp?
From:
duerst@...
Date:
2016-11-27 05:32:33 UTC
List:
ruby-core #78386
Issue #12786 has been updated by Martin D端rst.
Nobuyoshi Nakada wrote:
> `String#casecmp` also should have those options, I think.
I agree that once String#casecmp supports full Unicode, it should have these options (and more, because for Unicode sorting, you need/can have a lot more options than for simple casing operations). But I think we can add these options once we need them.
----------------------------------------
Feature #12786: String#casecmp?
https://bugs.ruby-lang.org/issues/12786#change-61760
* Author: Ryan Ringler
* Status: Feedback
* Priority: Normal
* Assignee:
----------------------------------------
Description
I would find String#casecmp? convenience method handy. I don't believe I've ever called String#casecmp without chaining #zero? to the result.
```ruby
'abc'.casecmp?('ABC') #=> true
'abc'.casecmp?('DEF') #=> false
```
---Files--------------------------------
string_casecmp_.patch (4.97 KB)
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>