:relfileprefix: ../../../ [#boost-urls-decode_view-starts_with] == xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/decode_view.adoc[pass:[decode_view]]::starts_with Checks if the string begins with the given prefix === Synopsis [source,cpp,subs="verbatim,macros,-callouts"] ---- bool xref:boost/urls/decode_view/starts_with-01.adoc[pass:[starts_with]](core::string_view s) const noexcept; ---- [source,cpp,subs="verbatim,macros,-callouts"] ---- bool xref:boost/urls/decode_view/starts_with-0b.adoc[pass:[starts_with]](char ch) const noexcept; ---- === Description [,cpp] ---- assert( decode_view( "Program%20Files" ).starts_with("Program") ); ---- === Linear. === Throws nothing.