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

co.touchlab.faktory.StringExtensions.kt Maven / Gradle / Ivy

There is a newer version: 1.1.0-a3
Show newest version
package co.touchlab.faktory

import java.util.*

fun String.capitalized(): String {
    return this.replaceFirstChar {
        if (it.isLowerCase()) it.titlecase(Locale.getDefault()) else it.toString()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy