CharSequenceKt

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

CharSequenceKt.isDigitsOnly

public static final boolean CharSequenceKt.isDigitsOnly(CharSequence receiver)

Returns whether the given CharSequence contains only digits.

See also
isDigitsOnly

CharSequenceKt.trimmedLength

public static final int CharSequenceKt.trimmedLength(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