cpp/string/basic string/rfind

Finds the last substring equal to the given character sequence. Search begins at, i.e. the found substring must not begin in a position following. If npos or any value not smaller than is passed as, whole string will be searched.

@1@ Finds the last substring equal to.

@2@ Finds the last substring equal to the range. This range can include null characters.

@3@ Finds the last substring equal to the character string pointed to by. The length of the string is determined by the first null character using.

@4@ Finds the last character equal to.

@5@

In all cases, equality is checked by calling.

Return value
Position of the first character of the found substring or npos if no such substring is found. Note that this is an offset from the start of the string, not the end.

If searching for an empty string (,, or is zero) returns  (the empty string is found immediately) unless  (including the case where ), in which case returns.

Otherwise, if size is zero, npos is always returned.

Exceptions
@5@