KotlinStringindexOf
padEnd

indexOfString

listOf

Returns the index of the first occurrence of the string, or -1.

Syntax

str.indexOf(string)