Documentation

string::LastIndexOf

Method in string

int LastIndexOf(const string&in) const

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

Returns int