:relfileprefix: ../../../
[#17EC85A0D814CE64BAC8E46D3C45A5883DD5BBD7]

= Function decode_view::starts_with

pass:v,q[Checks if the string begins with the given prefix]


== Synopsis

Declared in header `</boost/url/decode_view.hpp#L357[boost/url/decode_view.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
bool
starts_with(string_view s) const noexcept;
----

== Description


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

=== Complexity
pass:v,q[Linear.]

=== Exception Safety
pass:v,q[Throws nothing.]



== Return Value

* `bool` 


== Parameters

|===
| Name | Type 

| *s*
| `string_view`

|===



