[#boost-urls-decode_view-ends_with-04]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/decode_view.adoc[decode&lowbar;view]::ends&lowbar;with
:relfileprefix: ../../../
:mrdocs:

Checks if the string ends with the given prefix

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/decode_view.hpp#Lundefined[boost&sol;url&sol;decode&lowbar;view&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
ends&lowbar;with(core::string&lowbar;view s) const noexcept;
----

== Example

[,cpp]
----
assert( decode_view( "Program%20Files" ).ends_with("Files") );
----
== Complexity

Linear&period;

== Exception Safety

Throws nothing&period;

== Return Value

`true` if the decoded string ends with `s`

== Parameters

[cols="1,4"]
|===
|Name|Description

| *s*
| The string to search for
|===


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