File indexing completed on 2025-01-18 09:53:28
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_URL_RFC_DETAIL_IP_LITERAL_RULE_HPP
0012 #define BOOST_URL_RFC_DETAIL_IP_LITERAL_RULE_HPP
0013
0014 #include <boost/url/detail/config.hpp>
0015 #include <boost/url/ipv6_address.hpp>
0016 #include <boost/url/error_types.hpp>
0017 #include <boost/core/detail/string_view.hpp>
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 struct ip_literal_rule_t
0038 {
0039 struct value_type
0040 {
0041 bool is_ipv6 = false;
0042 ipv6_address ipv6;
0043 core::string_view ipvfuture;
0044 };
0045
0046 auto
0047 parse(
0048 char const*& it,
0049 char const* end
0050 ) const noexcept ->
0051 system::result<value_type>;
0052 };
0053
0054 constexpr ip_literal_rule_t ip_literal_rule{};
0055
0056 }
0057 }
0058 }
0059
0060 #endif