bsl::basic_string<char>::ends_with

ends_with overloads

Synopses

Declared in <bslstl_string.h>

Return true if this string contains at least one symbol and the last symbol of this string is equal to the specified character, and false otherwise. CHAR_TRAITS::eq is used to compare characters. See {Lexicographical Comparisons}.

bool
ends_with(char character) const noexcept;
» more...

Return true if the length of this string is equal to or greater than the length of the specified characterString and the last characterString.length() characters of this string are equal to the characters of the characterString, and false otherwise. CHAR_TRAITS::compare is used to compare characters. See {Lexicographical Comparisons}.

bool
ends_with(basic_string_view<char, char_traits<char>> characterString) const noexcept;
» more...

Return true if the length of this string is equal to or greater than the length of the specified characterString and the last CHAR_TRAITS::length(characterString) characters of this string are equal to the characters of the characterString, and false otherwise. CHAR_TRAITS::compare is used to compare characters. See {Lexicographical Comparisons}.

bool
ends_with(char const* characterString) const;
» more...