[#5064F661E47427BCF465CC86F3F552B659AD1A15]

Function parse_path

Parse a string and return an encoded segment view

Synopsis

            system::result
parse_path(core::string_view s) noexcept;
        

Description

This function parses the string and returns the corresponding path object if the string is valid, otherwise returns an error.

BNF

path = [ "/" ] segment *( "/" segment )

Exception Safety

No-throw guarantee.

Specification

  • 3.3. Path (rfc3986)