main.seskar.compiler.union.backend.Strings.kt Maven / Gradle / Ivy
package seskar.compiler.union.backend
private val LOWER_TO_UPPER = Regex("([a-z])([A-Z])")
internal fun String.kebab(): String =
snake().replace("_", "-")
internal fun String.snake(): String =
replace(LOWER_TO_UPPER, "$1_$2")
.lowercase()
© 2015 - 2025 Weber Informatics LLC | Privacy Policy