method

casecmp?

v2_4_6 - Show latest stable - Class: String
casecmp?(p1)
public

Returns true if str and other_other_str are equal after Unicode case folding, false if they are not equal, and nil if other_str is not a string.

"abcdef".casecmp?("abcde")     #=> false
"aBcDeF".casecmp?("abcdef")    #=> true
"abcdef".casecmp?("abcdefg")   #=> false
"abcdef".casecmp?("ABCDEF")    #=> true
"\u{e4 f6 fc}".casecmp?("\u{c4 d6 dc}") #=> true