startsWith
Returns true if this char sequence starts with the specified character.
Since Kotlin
1.2Returns true if this char sequence starts with the specified prefix.
Since Kotlin
1.2fun CharSequence.startsWith(prefix: CharSequence, startIndex: Int, ignoreCase: Boolean = false): Boolean(source)
Returns true if a substring of this char sequence starting at the specified offset startIndex starts with the specified prefix.
Since Kotlin
1.2expect fun String.startsWith(prefix: String, startIndex: Int, ignoreCase: Boolean = false): Boolean(source)
Since Kotlin
1.2Returns true if this string starts with the specified prefix.
Since Kotlin
1.0actual fun String.startsWith(prefix: String, startIndex: Int, ignoreCase: Boolean = false): Boolean(source)
Returns true if a substring of this string starting at the specified offset startIndex starts with the specified prefix.
Since Kotlin
1.0Returns true if this string starts with the specified prefix.
Since Kotlin
1.1actual fun String.startsWith(prefix: String, startIndex: Int, ignoreCase: Boolean = false): Boolean(source)
Returns true if a substring of this string starting at the specified offset startIndex starts with the specified prefix.