bsl::basic_string::rfind

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.

Synopsis

Declared in <bslstl_string.h>

size_type
rfind(
    CHAR_TYPE const* characterString,
    size_type position,
    size_type numChars) const;