Return the position of the last non-matching character in string.
Declared in <bdlb_stringrefutil.h>
static
size_type
findLastNotOf(
bslstl::StringRef const& string,
bslstl::StringRef const& characters,
size_type position = k_NPOS);
Return the position of the last occurrence of a character not belonging to the specified characters, if such an occurrence 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.
index of the last non-match, or k_NPOS
| Name | Description |
|---|---|
| string | string to search |
| characters | characters to exclude |
| position | highest index to consider |