Migrate compiler, idea and others to new case conversion api
This commit is contained in:
@@ -63,9 +63,9 @@ enum class CompilerSystemProperties(val property: String) {
|
||||
}
|
||||
|
||||
val isWindows: Boolean
|
||||
get() = CompilerSystemProperties.OS_NAME.value!!.toLowerCase(Locale.ENGLISH).startsWith("windows")
|
||||
get() = CompilerSystemProperties.OS_NAME.value!!.lowercase().startsWith("windows")
|
||||
|
||||
fun String?.toBooleanLenient(): Boolean? = when (this?.toLowerCase()) {
|
||||
fun String?.toBooleanLenient(): Boolean? = when (this?.lowercase()) {
|
||||
null -> false
|
||||
in listOf("", "yes", "true", "on", "y") -> true
|
||||
in listOf("no", "false", "off", "n") -> false
|
||||
|
||||
Reference in New Issue
Block a user