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 e70692e4d8.
PrevUpHomeNext

string_to_scheme

Return the known scheme for a non-normalized string, if known.

Synopsis

Defined in header <boost/url/scheme.hpp>

scheme
string_to_scheme(
    string_view s);
Description

If the string does not identify a known scheme, the value scheme::unknown is returned.

BNF
scheme      = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
Return Value

The known scheme

Parameters

Name

Description

s

The string holding the scheme

Specification

Convenience header <boost/url.hpp>


PrevUpHomeNext