JS stdlib: implement String.compareTo with ignoreCase

#KT-18067 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-08-03 10:25:22 +09:00
committed by Ilya Gorbunov
parent d194893012
commit f05a19aafb
4 changed files with 62 additions and 1 deletions
@@ -290,6 +290,11 @@ expect fun Int.toString(radix: Int): String
@SinceKotlin("1.2")
expect fun Long.toString(radix: Int): String
/**
* Compares two strings lexicographically, optionally ignoring case differences.
*/
expect fun String.compareTo(other: String, ignoreCase: Boolean = false): Int
@PublishedApi
internal expect fun checkRadix(radix: Int): Int