startsWith

actual fun String.startsWith(prefix: String, ignoreCase: Boolean = false): Boolean(source)

Returns true if this string starts with the specified prefix.

Since Kotlin

1.0

actual 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.0