Boost.URL Logo

PrevUpHomeNext

parse_path_noscheme

Parse a string and return an encoded segment view.

Synopsis

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

result< segments_encoded_view >
parse_path_noscheme(
    string_view s);
Description

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

BNF
path-noscheme = segment-nz-nc *( "/" segment )

segment-nz-nc = 1*( unreserved / pct-encoded / sub-delims / "@" )
                ; non-zero-length segment without any colon ":"
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

parse_path, parse_path_abempty, parse_path_absolute, parse_path_rootless.

Convenience header <boost/url.hpp>


PrevUpHomeNext