Find the last occurrence of a sequence in this string.
Synopsis
Declared in <bslstl_string.h>
size_type
rfind(
CHAR_TYPE character,
size_type position = npos) const;
Description
Return the position of the last occurrence of the specified character, if such an occurrence can be found in this string (on or before the optionally specified position if such a position is specified), and return npos otherwise.
Return Value
position of the match, or npos if not found
Parameters
Name |
Description |
character |
character value |
position |
starting index |
Created with MrDocs