bsl::basic_string::find_last_not_of

Return the position of the last non-matching character.

Synopsis

Declared in <bslstl_string.h>

size_type
find_last_not_of(
    basic_string const& characterString,
    size_type position = npos) const noexcept;

Description

Return the position of the last occurrence of a character not belonging to the specified characterString, if such an occurrence can be found in this string (on or before the optionally specified position if such a position is specified), and return npos otherwise.

Return Value

the position of the last non-match, or npos

Parameters

NameDescription
characterStringthe character set to exclude
positionthe starting search position