You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnthis->substr(start, end - start + 1).rfind(sub);
361
362
}
362
363
363
364
/** Returns the highest index in the string where substring sub is found starting at start position in string, or -1 (i.e. 'npos') if sub is not found.
364
365
*
366
+
* Note that this is an offset from the start of the string, not the end.
367
+
*
365
368
* Note: this method should be used only if you need to know the position
366
369
* of sub. To check if sub is a substring or not, use the method contains().
367
370
*
@@ -370,15 +373,13 @@ class CppStringT : public std::basic_string<CharT>
0 commit comments