This function returns the index of the last position where the substring exists in the input string. If the substring doesn't exist in the input string -1 is returned. AngelScript signature: int string::findLast(const string &in sub, int start = -1) const
| 474 | // AngelScript signature: |
| 475 | // int string::findLast(const string &in sub, int start = -1) const |
| 476 | static int StringFindLast(const string &sub, int start, const string &str) |
| 477 | { |
| 478 | // We don't register the method directly because the argument types change between 32bit and 64bit platforms |
| 479 | return (int)str.rfind(sub, (size_t)(start < 0 ? string::npos : start)); |
| 480 | } |
| 481 | |
| 482 | // AngelScript signature: |
| 483 | // void string::insert(uint pos, const string &in other) |
no outgoing calls
no test coverage detected