rfind overloads
Synopses
Declared in <bslstl_string.h>
Find the last occurrence of a sequence in this string.
size_type
rfind(
CHAR_TYPE character,
size_type position = npos) const;
Return the last occurrence of the specified substring in this string.
size_type
rfind(
basic_string const& substring,
size_type position = npos) const noexcept;
Same as the three‐argument rfind overload with default position.
size_type
rfind(
CHAR_TYPE const* characterString,
size_type position = npos) const;
Find the last occurrence of a sequence in this string.
template<class STRING_VIEW_LIKE_TYPE>
size_type
rfind(
STRING_VIEW_LIKE_TYPE const& substring,
size_type position = npos) const noexcept(true);
Find the last occurrence of a sequence in this string.
size_type
rfind(
CHAR_TYPE const* characterString,
size_type position,
size_type numChars) const;
Return Value
position of the match, or npos if not found
Parameters
Name |
Description |
character |
character value |
position |
starting index |
substring |
substring to search for |
characterString |
pointer to characters |
numChars |
number of characters |
Created with MrDocs