Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
trimStart
Returns a subsequence of this char sequence having leading characters matching the predicate removed.
inline fun String.trimStart(
predicate: (Char) -> Boolean
): String
(source)
Returns a string having leading characters matching the predicate removed.
Returns a subsequence of this char sequence having leading characters from the chars array removed.
fun String.trimStart(vararg chars: Char): String
(source)
Returns a string having leading characters from the chars array removed.
Returns a subsequence of this char sequence having leading whitespace removed.
Returns a string having leading whitespace removed.