String::index_of()
Find the first index of needle in this. Positions are in character offsets, not bytes.
needle
this
"abc".index_of("c") //-> Some(2)
public method index_of(this: String, needle: String): Option<Int> { __BUILT_IN_IMPLEMENTATION }