Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit fa2ecb07cd.
PrevUpHomeNext
url_view::segments

Return the path as a container of segments.

Synopsis
segments_view
segments() const;
Description

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.

Example
segments_view sv = url_view( "/path/to/file.txt" ).segments();
Complexity

Constant.

Exception Safety

Throws nothing.

BNF
path          = [ "/" ] segment *( "/" segment )
Specification
See Also

is_path_absolute, encoded_path, encoded_segments. path, segments_view.


PrevUpHomeNext