...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Parse a string and return an encoded segment view.
Defined in header <boost/url/parse_path.hpp>
result< segments_encoded_view > parse_path( string_view s);
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.
A valid view on success, otherwise an error code.
Name |
Description |
---|---|
|
The string to parse |
Convenience header <boost/url.hpp>