boost::urls::parse_path

Parse a string and return an encoded segment view

Synopsis

Declared in <include/boost/url/segments_encoded_view.hpp>

system::result<segments_encoded_view>
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.

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

No-throw guarantee.

  • 3.3. Path (rfc3986)
  • Parse a string and return an encoded segment view

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

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

    No-throw guarantee.

  • 3.3. Path (rfc3986)
  • Return Value

    A valid view on success, otherwise an error code.

    Parameters

    Name Description
    s

    The string to parse

    s

    The string to parse

    See Also

    segments_encoded_view .

    segments_encoded_view .

    Created with MrDocs