compareTo
fun
String
.
compareTo
(
other
:
String
,
ignoreCase
:
Boolean
=
false
)
:
Int
(Common source) (JVM source) (JS source) (Native source)
Compares two strings lexicographically, optionally ignoring case differences.
If
ignoreCase
is true, the result of
Char.uppercaseChar().lowercaseChar()
on each character is compared.