main.seskar.compiler.union.backend.Case.kt Maven / Gradle / Ivy
package seskar.compiler.union.backend
internal enum class Case {
ORIGINAL,
KEBAB,
SNAKE,
;
}
internal fun String.toCase(case: Case): String =
when (case) {
Case.ORIGINAL -> this
Case.KEBAB -> kebab()
Case.SNAKE -> snake()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy