Documentation

string::IndexOf

Method in string

int IndexOf(const string&in) const

Searches the string for the given substring and returns the index at which it starts. When it is not found, returns -1.

Returns int