:relfileprefix: ../../
[#boost-urls-parse_path]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::parse_path


Parse a string and return an encoded segment view


=== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_encoded_view.hpp#L258[boost/url/segments_encoded_view.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
system::result<xref:boost/urls/segments_encoded_view.adoc[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.
[,cpp]
----
path          = [ "/" ] segment *( "/" segment )
----

=== No-throw guarantee.

* link:https://datatracker.ietf.org/doc/html/rfc3986#section-3.3[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.
[,cpp]
----
path          = [ "/" ] segment *( "/" segment )
----

=== No-throw guarantee.

* link:https://datatracker.ietf.org/doc/html/rfc3986#section-3.3[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


xref:boost/urls/segments_encoded_view.adoc[segments_encoded_view]
.



xref:boost/urls/segments_encoded_view.adoc[segments_encoded_view]
.



