Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
url::remove_scheme

Remove the scheme.

Synopsis
url&
remove_scheme();
Description

This function removes the scheme if it is present.

Example
assert( [link url.ref.boost__urls__url.url `url`]( "http://www.example.com/index.htm" ).[link url.ref.boost__urls__url.remove_scheme `remove_scheme`]().[link url.ref.boost__urls__url.buffer `buffer`]() == "//www.example.com/index.htm" );
Postconditions
this->[link url.ref.boost__urls__url.has_scheme `has_scheme`]() == false && this->[link url.ref.boost__urls__url.scheme_id `scheme_id`]() == [link url.ref.boost__urls__scheme `scheme::none`]
Complexity

Linear in this->size().

Exception Safety

Throws nothing.

BNF
URI           = [link url.ref.boost__urls__scheme `scheme`] ":" hier-part [ "?" [link url.ref.boost__urls__url.query `query`] ] [ "#" [link url.ref.boost__urls__url.fragment `fragment`] ]
Specification
See Also

/root/project/libs/url/include/boost/url/url.hpp


PrevUpHomeNext