Parse a string and return an encoded segment view
<include/boost/url/segments_encoded_view.hpp>
friend
system::result<segments_encoded_view>
parse_path(core::string_view s) noexcept;
This function parses the string and returns the corresponding path object if the string is valid, otherwise returns an error.
path = [ "/" ] segment *( "/" segment )
A valid view on success, otherwise an error code.
Name | Description |
---|---|
s | The string to parse |