parse_path

Parse a string and return an encoded segment view

Synopsis

result<segments_encoded_view>
parse_path(string_view s) noexcept;

Declared in file <include/boost/url/parse_path.hpp> on line 48

Declared in file <include/boost/url/segments_encoded_view.hpp> on line 232

Defined in file <src/parse_path.cpp> on line 24

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