// // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // Official repository: https://github.com/boostorg/url // #ifndef BOOST_URL_RFC_DETAIL_IP_LITERAL_RULE_HPP #define BOOST_URL_RFC_DETAIL_IP_LITERAL_RULE_HPP #include #include #include #include namespace boost { namespace urls { namespace detail { /** Rule for IP-literal @par BNF @code IP-literal = "[" ( IPv6address / IPvFuture ) "]" @endcode @par Specification @li 3.2.2. Host (rfc3986) @see @ref ipv6_address. */ struct ip_literal_rule_t { struct value_type { bool is_ipv6 = false; ipv6_address ipv6; string_view ipvfuture; }; auto parse( char const*& it, char const* end ) const noexcept -> result; }; constexpr ip_literal_rule_t ip_literal_rule{}; } // detail } // urls } // boost #endif