![]() |
Home | Libraries | People | FAQ | More |
(Inherited from url_base
)
Return the path as a container of segments.
segments_view segments() const;
This function returns a bidirectional view of strings over the path. The returned view references the same underlying character buffer; ownership is not transferred. Any percent-escapes in strings returned when iterating the view are decoded first.
[link url.ref.boost__urls__url_view_base.segments_view `segments_view`] sv = [link url.ref.boost__urls__url_view_base.url_view `url_view`]( "/path/to/file.txt" ).segments();
Constant.
Throws nothing.
[link url.ref.boost__urls__static_url.path `path`] = [ "/" ] segment *( "/" segment )
is_path_absolute
, encoded_path
, encoded_segments
. path
, /root/project/libs/url/include/boost/url/url_base.hpp