Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2022. The current version is 1.90.0.
Constructor.
static_url( string_view s);
This function constructs a url from the string s,
which must contain a valid URI or relative-ref
or else an exception is thrown. The new url retains ownership by making
a copy of the passed string.
static_url< 1024 > u( "https://www.example.com" );
return static_url( parse_uri_reference( s ).value() );
this->buffer().data() != s.data()
Linear in s.size().
Exceptions thrown on invalid input.
|
Type |
Thrown On |
|---|---|
|
|
The input does not contain a valid url. |
|
Name |
Description |
|---|---|
|
|
The string to parse. |
URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] relative-ref = relative-part [ "?" query ] [ "#" fragment ]