Return the position of the last character from characters.
Declared in <bdlb_stringviewutil.h>
static
size_type
findLastOf(
std::string_view const& string,
std::string_view const& characters,
size_type position = k_NPOS);
Return the position of the last occurrence of a character belonging to the specified characters, if such an occurrence can can be found in the specified string (on or before the optionally specified position if such a position is specified), and return k_NPOS otherwise.
position of the last match, or k_NPOS
| Name | Description |
|---|---|
| string | string view to search |
| characters | set of characters to match |
| position | ending index for the search (default k_NPOS) |