libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ find_last_of() [1/4]

template<typename _CharT, typename _Traits, typename _Alloc, template< typename, typename, typename > class _Base>
size_type __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::find_last_of ( _CharT __c,
size_type __pos = npos ) const
inlinenoexcept

Find last position of a character.

Parameters
__cCharacter to locate.
__posIndex of character to search back from (default end).
Returns
Index of last occurrence.

Starting from __pos, searches backward for __c within this string. If found, returns the index where it was found. If not found, returns npos.

Note: equivalent to rfind(c, pos).

Definition at line 1917 of file vstring.h.

1918 { return this->rfind(__c, __pos); }
size_type rfind(const __versa_string &__str, size_type __pos=npos) const noexcept
Find last position of a string.
Definition vstring.h:1744
Template class __versa_string.
Definition vstring.h:63