Add support for CASE_INSENSITIVE_ORDER in JS and common

#KT-18067
This commit is contained in:
Ilya Gorbunov
2018-08-12 04:08:05 +03:00
parent 6866f5d19a
commit ed53983e1e
5 changed files with 25 additions and 7 deletions
@@ -187,6 +187,16 @@ expect fun CharSequence.regionMatches(
): Boolean
/**
* A Comparator that orders strings ignoring character case.
*
* Note that this Comparator does not take locale into account,
* and will result in an unsatisfactory ordering for certain locales.
*/
@SinceKotlin("1.2")
public expect val String.Companion.CASE_INSENSITIVE_ORDER: Comparator<String>
/**
* Returns `true` if the contents of this string is equal to the word "true", ignoring case, and `false` otherwise.
*/