Skip to content

Commit c3d96fb

Browse files
ilya-gNataliaUkhorskaya
authored andcommitted
Temporary Add jvmOverloads to String.indexOf
(cherry picked from commit acff722)
1 parent 46b8ec7 commit c3d96fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/stdlib/src/kotlin/text/Strings.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,7 @@ public fun String.indexOf(char: Char, startIndex: Int = 0, ignoreCase: Boolean =
743743
* @param ignoreCase `true` to ignore character case when matching a string. By default `false`.
744744
* @returns An index of the first occurrence of [string] or -1 if none is found.
745745
*/
746+
kotlin.jvm.jvmOverloads
746747
public fun String.indexOf(string: String, startIndex: Int = 0, ignoreCase: Boolean = false): Int {
747748
return if (ignoreCase)
748749
indexOfAny(listOf(string), startIndex, ignoreCase)

0 commit comments

Comments
 (0)