All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.seskar.compiler.union.backend.Case.kt Maven / Gradle / Ivy

There is a newer version: 3.75.0
Show newest version
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