Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit 579430ad1f.
PrevUpHomeNext
segments_encoded_view::parse_path

Parse a string and return an encoded segment view.

Synopsis

Defined in header <boost/url/segments_encoded_view.hpp>

system::result< segments_encoded_view >
parse_path(
    core::string_view s);
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.

Return Value

A valid view on success, otherwise an error code.

Parameters

Name

Description

s

The string to parse

Specification
See Also

segments_encoded_view.

Convenience header <boost/url.hpp>


PrevUpHomeNext