Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:53:28

0001 //
0002 // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
0003 //
0004 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0005 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 // Official repository: https://github.com/boostorg/url
0008 //
0009 
0010 #ifndef BOOST_URL_RFC_DETAIL_IPVFUTURE_RULE_HPP
0011 #define BOOST_URL_RFC_DETAIL_IPVFUTURE_RULE_HPP
0012 
0013 #include <boost/url/error_types.hpp>
0014 #include <boost/core/detail/string_view.hpp>
0015 
0016 namespace boost {
0017 namespace urls {
0018 namespace detail {
0019 
0020 /** Rule for IPvFuture
0021 
0022     @par BNF
0023     @code
0024     IPvFuture     = "v" 1*HEXDIG "." 1*( unreserved / sub-delims / ":" )
0025     @endcode
0026 
0027     @par Specification
0028     @li <a href="https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.2"
0029         >3.2.2. Host (rfc3986)</a>
0030 */
0031 struct ipvfuture_rule_t
0032 {
0033     struct value_type
0034     {
0035         core::string_view str;
0036         core::string_view major;
0037         core::string_view minor;
0038     };
0039 
0040     auto
0041     parse(
0042         char const*& it,
0043         char const* const end
0044             ) const noexcept ->
0045         system::result<value_type>;
0046 };
0047 
0048 constexpr ipvfuture_rule_t ipvfuture_rule{};
0049 
0050 } // detail
0051 } // urls
0052 } // boost
0053 
0054 #endif