Extension methods to make String to snake/camel case.
"ABC".toSnakeCase() // => "a_b_c"
"a_b_c".toCamelCase() // => "ABC"
"abc".beginWithUpperCase() // => "Abc"
"Abc".beginWithLowerCase() // => "abc"
CaseChanger.toSnakeCase("ABC") // => "a_b_c"
CaseChanger.toCamelCase("a_b_c") // => "ABC"
CaseChanger.beginWithUpperCase("abc") // => "Abc"
CaseChanger.beginWithLowerCase("Abc") // => "abc"
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
compile 'com.github.KenjiOhtsuka:kotlin-case-changer:0.1.1'
}