Parse a string and return an encoded segment view

Synopsis

Declared in header </boost/url/parse_path.hpp#L48[boost/url/parse_path.hpp,window=blank_]>

result<segments_encoded_view>
parse_path(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

Return Value

  • result

Parameters

Name Type

s

string_view