trimStart

inline fun CharSequence.trimStart(
    predicate: (Char) -> Boolean
): CharSequence
(source)

Returns a sub sequence 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.

fun CharSequence.trimStart(vararg chars: Char): CharSequence (source)

Returns a sub sequence 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 sub sequence of this char sequence having leading whitespace removed.

inline fun String.trimStart(): String (source)

Returns a string having leading whitespace removed.