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 the documentation for a snapshot of the master branch, built from commit 41715b1c50.
PrevUpHomeNext
static_url::remove_scheme

(Inherited from url_base)

Remove the scheme.

Synopsis
url_base&
remove_scheme();
Description

This function removes the scheme if it is present.

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

Linear in this->size().

Exception Safety

Throws nothing.

BNF
URI           = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
Specification
See Also

set_scheme.


PrevUpHomeNext