trimEnd

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

Returns a subsequence of this char sequence having trailing characters matching the predicate removed.

Since Kotlin

1.0

inline fun String.trimEnd(predicate: (Char) -> Boolean): String(source)

Returns a string having trailing characters matching the predicate removed.

Since Kotlin

1.0

Returns a subsequence of this char sequence having trailing characters from the chars array removed.

Since Kotlin

1.0

fun String.trimEnd(vararg chars: Char): String(source)

Returns a string having trailing characters from the chars array removed.

Since Kotlin

1.0

Returns a subsequence of this char sequence having trailing whitespace removed.

Since Kotlin

1.0

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

Returns a string having trailing whitespace removed.

Since Kotlin

1.0