rfind overloads
Declared in <bslstl_string.h>
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.
size_type
rfind(
char character,
size_type position = npos) const;
» more...
Return the starting position of the last occurrence of the specified substring within this string, if such a sequence can be found in this string (on or before the optionally specified position if such a position is specified) using CHAR_TRAITS::eq to compare characters, and return npos otherwise.
size_type
rfind(
basic_string<char> const& substring,
size_type position = npos) const noexcept;
» more...
Same as the three-argument rfind overload with default position.
size_type
rfind(
char const* characterString,
size_type position = npos) const;
» more...
Return the starting position of the last occurrence of the specified substring within this string, if such a sequence can be found in this string (on or before the optionally specified position if such a position is specified) using CHAR_TRAITS::eq to compare characters, and return npos otherwise. The behavior is undefined unless the conversion from STRING_VIEW_LIKE_TYPE to bsl::basic_string_view<CHAR_TYPE, CHAR_TRAITS> does not throw any exception. Note that this behavior differs from the behavior implemented in the standard container, where the following noexcept specification is used: ` noexcept( std::is_nothrow_convertible_v<const T&, std::basic_string_view<CharT, Traits> >) `
template<class STRING_VIEW_LIKE_TYPE>
size_type
rfind(
STRING_VIEW_LIKE_TYPE const& substring,
size_type position = npos) const noexcept(true);
» more...
Return the starting position of the last occurrence of a substring whose value equals that of the specified characterString of the optionally specified numChars length, if such a substring can be found in this string (on or before the optionally specified position if such a position is specified), and return npos otherwise. If numChars is not specified, CHAR_TRAITS::length(characterString) is used.
size_type
rfind(
char const* characterString,
size_type position,
size_type numChars) const;
» more...