boost::urls::string_to_scheme :: Boost Libraries Documentation

# boost::urls::string_to_scheme

Return the known scheme for a non‐normalized string, if known

## Synopsis

Declared in `<boost/url/scheme.hpp>`

    scheme
    string_to_scheme(core::string_view s) noexcept;

## Description

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

## BNF

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

## Specification

- 3.1. Scheme (rfc3986)

## Return Value

The known scheme

## Parameters

Name | Description
--- | ---
s | The string holding the scheme

Created with MrDocs