trimEnd
inline fun CharSequence.trimEnd(
predicate: (Char) -> Boolean
): CharSequenceReturns a sub sequence of this char sequence having trailing characters matching the predicate removed.
Returns a string having trailing characters matching the predicate removed.
fun CharSequence.trimEnd(vararg chars: Char): CharSequenceReturns a sub sequence of this char sequence having trailing characters from the chars array removed.
Returns a string having trailing characters from the chars array removed.
fun CharSequence.trimEnd(): CharSequenceReturns a sub sequence of this char sequence having trailing whitespace removed.