[#boost-urls-decode_view-starts_with-01] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/decode_view.adoc[decode_view]::starts_with :relfileprefix: ../../../ :mrdocs: Checks if the string begins with the given prefix == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/decode_view.hpp#L359[boost/url/decode_view.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool starts_with(core::string_view s) const noexcept; ---- == Description == Example [,cpp] ---- assert( decode_view( "Program%20Files" ).starts_with("Program") ); ---- == Complexity Linear. == Exception Safety Throws nothing. == Return Value `true` if the decoded string starts with `s` == Parameters [cols=2] |=== | Name | Description | *s* | The string to search for |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#