string_to_scheme

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

Synopsis

scheme string_to_scheme( string_view s) noexcept;

Declared in file <src/scheme.cpp> at line 20

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)