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

@NonNull
public static final boolean CharSequenceKt.isDigitsOnly(@NonNull CharSequence receiver)

Returns whether the given CharSequence contains only digits.

See also
isDigitsOnly

CharSequenceKt.trimmedLength

@NonNull
public static final int CharSequenceKt.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