[#boost-urls-decode_view-ends_with] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/decode_view.adoc[decode_view]::ends_with :relfileprefix: ../../../ :mrdocs: Checks if the string ends with the given prefix == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/decode_view.hpp#L365[boost/url/decode_view.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:boost/urls/decode_view/ends_with-04.adoc[ends_with](core::string_view s) const noexcept; ---- [.small]#xref:boost/urls/decode_view/ends_with-04.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:boost/urls/decode_view/ends_with-0d.adoc[ends_with](char ch) const noexcept; ---- [.small]#xref:boost/urls/decode_view/ends_with-0d.adoc[_» more..._]# == Description === Example [,cpp] ---- assert( decode_view( "Program%20Files" ).ends_with("Files") ); ---- === Complexity Linear. === Exception Safety Throws nothing. [.small]#Created with https://www.mrdocs.com[MrDocs]#