[Gradle] Replace toLowerCase/toUpperCase with ASCII-only variants

^KT-38712 Verification Pending
This commit is contained in:
Anton Lakotka
2022-12-09 14:59:11 +01:00
committed by Space Team
parent afb2bfe492
commit 36591ab8a0
36 changed files with 116 additions and 67 deletions
@@ -27,7 +27,7 @@ enum class KotlinJsCompilerType {
}
val KotlinJsCompilerType.lowerName
get() = name.toLowerCase()
get() = name.toLowerCase(Locale.ENGLISH)
fun String.removeJsCompilerSuffix(compilerType: KotlinJsCompilerType): String {
val truncatedString = removeSuffix(compilerType.lowerName)
@@ -10,6 +10,7 @@ import org.gradle.api.Named
import org.jetbrains.kotlin.konan.target.CompilerOutputKind
import org.jetbrains.kotlin.konan.target.Family.*
import org.jetbrains.kotlin.konan.target.KonanTarget
import java.util.*
enum class NativeBuildType(
val optimized: Boolean,
@@ -18,7 +19,7 @@ enum class NativeBuildType(
RELEASE(true, false),
DEBUG(false, true);
override fun getName(): String = name.toLowerCase()
override fun getName(): String = name.toLowerCase(Locale.ENGLISH)
@Suppress("UNUSED_PARAMETER")
@Deprecated(