[stdlib] Use more idiomatic and performant implementation of isBlank
Also replace expect-actual with a common function because its implementation is no longer different in different platforms. KT-65590
This commit is contained in:
committed by
Space Team
parent
6f6496d78a
commit
15375c0fd5
@@ -421,7 +421,6 @@ public expect fun String.endsWith(suffix: String, ignoreCase: Boolean = false):
|
||||
internal expect fun String.nativeIndexOf(ch: Char, fromIndex: Int): Int
|
||||
internal expect fun String.nativeLastIndexOf(ch: Char, fromIndex: Int): Int
|
||||
|
||||
public expect fun CharSequence.isBlank(): Boolean
|
||||
/**
|
||||
* Returns `true` if the specified range in this char sequence is equal to the specified range in another char sequence.
|
||||
* @param thisOffset the start offset in this char sequence of the substring to compare.
|
||||
|
||||
Reference in New Issue
Block a user