bsl::basic_string::find_last_not_of

find_last_not_of overloads

Synopses

Declared in <bslstl_string.h>

Return the position of the last non-matching character.

size_type
find_last_not_of(
    CHAR_TYPE character,
    size_type position = npos) const;
» more...

Return the position of the last non-matching character.

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

Return the position of the last character in this string that is not found in the specified characterString, or npos if not found.

size_type
find_last_not_of(
    CHAR_TYPE const* characterString,
    size_type position = npos) const;
» more...

Return the position of the last non-matching character.

template<class STRING_VIEW_LIKE_TYPE>
size_type
find_last_not_of(
    STRING_VIEW_LIKE_TYPE const& characterString,
    size_type position = npos) const noexcept(true);
» more...

Return the position of the last non-matching character.

size_type
find_last_not_of(
    CHAR_TYPE const* characterString,
    size_type position,
    size_type numChars) const;
» more...

Return Value

  • position of the last non-matching character, or npos
  • the position of the last non-match, or npos

Parameters

NameDescription
charactercharacter value
positionstarting index
characterStringthe character set to exclude
numCharsnumber of characters