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_RELATIVE_PART_RULE_HPP
0011 #define BOOST_URL_RFC_DETAIL_RELATIVE_PART_RULE_HPP
0012
0013 #include <boost/url/detail/config.hpp>
0014 #include <boost/url/error_types.hpp>
0015 #include <boost/url/pct_string_view.hpp>
0016 #include <boost/url/rfc/authority_rule.hpp>
0017 #include <cstdlib>
0018
0019 namespace boost {
0020 namespace urls {
0021 namespace detail {
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043 struct relative_part_rule_t
0044 {
0045 struct value_type
0046 {
0047 authority_view authority;
0048 pct_string_view path;
0049 std::size_t segment_count = 0;
0050 bool has_authority = false;
0051 };
0052
0053 auto
0054 parse(
0055 char const*& it,
0056 char const* end
0057 ) const noexcept ->
0058 system::result<value_type>;
0059 };
0060
0061 constexpr relative_part_rule_t relative_part_rule{};
0062
0063 }
0064 }
0065 }
0066
0067 #endif