[#bsl-basic_string-0e-ends_with-09] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0e.adoc[basic_string<wchar_t>]::ends_with :relfileprefix: ../../ :mrdocs: `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}. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:bsl/basic_string-0e/ends_with-0e.adoc[ends_with](wchar_t character) const noexcept; ---- [.small]#xref:bsl/basic_string-0e/ends_with-0e.adoc[_» 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}. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:bsl/basic_string-0e/ends_with-03.adoc[ends_with](basic_string_view<wchar_t, char_traits<wchar_t>> characterString) const noexcept; ---- [.small]#xref:bsl/basic_string-0e/ends_with-03.adoc[_» 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}. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:bsl/basic_string-0e/ends_with-08.adoc[ends_with](wchar_t const* characterString) const; ---- [.small]#xref:bsl/basic_string-0e/ends_with-08.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#