This function returns the index of the last position where the one of the bytes in substring exists in the input string. If the characters in the substring doesn't exist in the input string -1 is returned. int string::findLastOf(const string &in sub, uint start = 0) const
| 373 | // |
| 374 | // int string::findLastOf(const string &in sub, uint start = 0) const |
| 375 | static std::int32_t StringFindLastOf(const String& sub, std::uint32_t start, const String& str) |
| 376 | { |
| 377 | auto found = str.exceptSuffix(start).findLastAny(sub); |
| 378 | return (found != nullptr ? (std::int32_t)(found.begin() - str.begin()) : -1); |
| 379 | } |
| 380 | |
| 381 | /* |
| 382 | // This function returns the index of the first position where a byte other than those in substring |
nothing calls this directly
no test coverage detected