File indexing completed on 2025-01-18 09:53:28
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_URL_RFC_DETAIL_HIER_PART_RULE_HPP
0011 #define BOOST_URL_RFC_DETAIL_HIER_PART_RULE_HPP
0012
0013 #include <boost/url/detail/config.hpp>
0014 #include <boost/url/pct_string_view.hpp>
0015 #include <boost/url/rfc/authority_rule.hpp>
0016 #include <cstdlib>
0017
0018 namespace boost {
0019 namespace urls {
0020 namespace detail {
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036 struct hier_part_rule_t
0037 {
0038 struct value_type
0039 {
0040 authority_view authority;
0041 pct_string_view path;
0042 std::size_t segment_count = 0;
0043 bool has_authority = false;
0044 };
0045
0046 BOOST_URL_DECL
0047 auto
0048 parse(
0049 char const*& it,
0050 char const* const end
0051 ) const noexcept ->
0052 system::result<value_type>;
0053 };
0054
0055 constexpr hier_part_rule_t hier_part_rule{};
0056
0057 }
0058 }
0059 }
0060
0061 #endif