11 lines
231 B
Text
int FindLast(const string text, const string what)
| |||
{
| |||
int pos = -1;
| |||
int next = StringFind(text, what, 0);
| |||
while(next >= 0)
| |||
{
| |||
pos = next;
| |||
next = StringFind(text, what, next + 1);
| |||
}
| |||
return pos;
| |||
}
|