[#boost-urls-pct_string_view-2constructor-06] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/pct_string_view.adoc[pct_string_view]::pct_string_view :relfileprefix: ../../../ :mrdocs: Constructor == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/pct_string_view.hpp#L199[boost/url/pct_string_view.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- pct_string_view( char const* s, std::size_t len); ---- == Description The newly constructed string references the specified character buffer. Ownership is not transferred. === Postconditions [,cpp] ---- this->data() == s && this->size() == len ---- === Complexity Linear in `len`. === Exception Safety Exceptions thrown on invalid input. == Exceptions |=== | Name | Thrown on | `system_error` | The string contains an invalid percent encoding. |=== == Parameters |=== | Name | Description | *s* | The string to construct from. | *len* | The length of the string. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#