core-ktx / androidx.text / kotlin.CharSequence / trimmedLength

trimmedLength

inline fun CharSequence.trimmedLength(): Int

Returns the length that the specified CharSequence would have if spaces and ASCII control characters were trimmed from the start and end, as by String.trim.

See Also

TextUtils.getTrimmedLength