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)
Source Codepublic method index_of(this: String, needle: String): Option<Int> { __BUILTIN_IMPLEMENTATION }
public method index_of(this: String, needle: String): Option<Int> { __BUILTIN_IMPLEMENTATION }