[#bsl-basic_string-0ce-ends_with-05]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0ce.adoc[basic&lowbar;string&lt;char16&lowbar;t&gt;]::ends&lowbar;with
:relfileprefix: ../../
:mrdocs:

`ends&lowbar;with` overloads

== Synopses

Declared in `&lt;bslstl&lowbar;string&period;h&gt;`

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&period; `CHAR&lowbar;TRAITS&colon;&colon;eq` is used to compare characters&period; See &lcub;Lexicographical Comparisons&rcub;&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:bsl/basic_string-0ce/ends_with-02.adoc[ends&lowbar;with](char16&lowbar;t character) const noexcept;
----

[.small]#xref:bsl/basic_string-0ce/ends_with-02.adoc[_» more&period;&period;&period;_]#

Return `true` if the length of this string is equal to or greater than the length of the specified `characterString` and the last `characterString&period;length()` characters of this string are equal to the characters of the `characterString`, and `false` otherwise&period; `CHAR&lowbar;TRAITS&colon;&colon;compare` is used to compare characters&period; See &lcub;Lexicographical Comparisons&rcub;&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:bsl/basic_string-0ce/ends_with-04.adoc[ends&lowbar;with](basic&lowbar;string&lowbar;view&lt;char16&lowbar;t, char&lowbar;traits&lt;char16&lowbar;t&gt;&gt; characterString) const noexcept;
----

[.small]#xref:bsl/basic_string-0ce/ends_with-04.adoc[_» more&period;&period;&period;_]#

Return `true` if the length of this string is equal to or greater than the length of the specified `characterString` and the last `CHAR&lowbar;TRAITS&colon;&colon;length(characterString)` characters of this string are equal to the characters of the `characterString`, and `false` otherwise&period; `CHAR&lowbar;TRAITS&colon;&colon;compare` is used to compare characters&period; See &lcub;Lexicographical Comparisons&rcub;&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:bsl/basic_string-0ce/ends_with-07.adoc[ends&lowbar;with](char16&lowbar;t const* characterString) const;
----

[.small]#xref:bsl/basic_string-0ce/ends_with-07.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
