CharSequenceKt

Added in 1.1.0

public final class CharSequenceKt


Summary

Public methods

static final boolean

Returns whether the given CharSequence contains only digits.

static final 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.

Public methods

isDigitsOnly

public static final boolean isDigitsOnly(@NonNull CharSequence receiver)

Returns whether the given CharSequence contains only digits.

See also
isDigitsOnly

trimmedLength

public static final int trimmedLength(@NonNull CharSequence receiver)

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
getTrimmedLength