kotlin.text.trimEnd

trimEnd

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

Returns a sub sequence of this char sequence having trailing characters matching the predicate trimmed.

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

Returns a string with trailing characters matching the predicate登录查看完整内容