indexOf

expect fun indexOf(string: String): Int(source)

Returns the index within this string builder of the first occurrence of the specified string.

Returns -1 if the specified string does not occur in this string builder.

Since Kotlin

1.4

expect fun indexOf(string: String, startIndex: Int): Int(source)

Returns the index within this string builder of the first occurrence of the specified string, starting at the specified startIndex.

Returns -1 if the specified string does not occur in this string builder starting at the specified startIndex.

Since Kotlin

1.4
actual fun indexOf(string: String): Int(source)

Returns the index within this string builder of the first occurrence of the specified string.

Returns -1 if the specified string does not occur in this string builder.

Since Kotlin

1.4

actual fun indexOf(string: String, startIndex: Int): Int(source)

Returns the index within this string builder of the first occurrence of the specified string, starting at the specified startIndex.

Returns -1 if the specified string does not occur in this string builder starting at the specified startIndex.

Since Kotlin

1.4
actual fun indexOf(string: String): Int(source)

Returns the index within this string builder of the first occurrence of the specified string.

Returns -1 if the specified string does not occur in this string builder.

Since Kotlin

1.4

actual fun indexOf(string: String, startIndex: Int): Int(source)

Returns the index within this string builder of the first occurrence of the specified string, starting at the specified startIndex.

Returns -1 if the specified string does not occur in this string builder starting at the specified startIndex.

Since Kotlin

1.4
actual fun indexOf(string: String): Int(source)

Returns the index within this string builder of the first occurrence of the specified string.

Returns -1 if the specified string does not occur in this string builder.

Since Kotlin

1.8

actual fun indexOf(string: String, startIndex: Int): Int(source)

Returns the index within this string builder of the first occurrence of the specified string, starting at the specified startIndex.

Returns -1 if the specified string does not occur in this string builder starting at the specified startIndex.

Since Kotlin

1.8
actual fun indexOf(string: String): Int(source)

Returns the index within this string builder of the first occurrence of the specified string.

Returns -1 if the specified string does not occur in this string builder.

Since Kotlin

1.8

actual fun indexOf(string: String, startIndex: Int): Int(source)

Returns the index within this string builder of the first occurrence of the specified string, starting at the specified startIndex.

Returns -1 if the specified string does not occur in this string builder starting at the specified startIndex.

Since Kotlin

1.8