decapitalize
Deprecated
Use replaceFirstChar instead.
Replace with
import java.util.Locale
Content copied to clipboard
replaceFirstChar { it.lowercase(Locale.getDefault()) }
Content copied to clipboard
Returns a copy of this string having its first letter lowercased using the rules of the default locale, or the original string if it's empty or already starts with a lower case letter.
Since Kotlin
1.0Samples
Deprecated
Use replaceFirstChar instead.
Replace with
replaceFirstChar { it.lowercase() }
Content copied to clipboard
Returns a copy of this string having its first letter lowercased using the rules of the default locale, or the original string if it's empty or already starts with a lower case letter.