Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //
0002 // Copyright (c) 2022 alandefreitas (alandefreitas@gmail.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_CHARSETS_HPP
0011 #define BOOST_URL_RFC_DETAIL_CHARSETS_HPP
0012 
0013 #include <boost/url/rfc/pchars.hpp>
0014 #include <boost/url/rfc/sub_delim_chars.hpp>
0015 #include <boost/url/rfc/unreserved_chars.hpp>
0016 
0017 namespace boost {
0018 namespace urls {
0019 namespace detail {
0020 
0021 constexpr
0022 auto
0023 user_chars =
0024     unreserved_chars + sub_delim_chars;
0025 
0026 constexpr
0027 auto
0028 password_chars =
0029     unreserved_chars + sub_delim_chars + ':';
0030 
0031 constexpr
0032 auto
0033 userinfo_chars =
0034     password_chars;
0035 
0036 constexpr
0037 auto
0038 host_chars =
0039     unreserved_chars + sub_delim_chars;
0040 
0041 constexpr
0042 auto
0043 reg_name_chars =
0044     unreserved_chars + '-' + '.';
0045 
0046 constexpr
0047 auto
0048 segment_chars =
0049     pchars;
0050 
0051 constexpr
0052 auto
0053 path_chars =
0054     segment_chars + '/';
0055 
0056 constexpr
0057 auto
0058 query_chars =
0059     pchars + '/' + '?';
0060 
0061 constexpr
0062 auto
0063 param_key_chars = pchars
0064     + '/' + '?' + '[' + ']'
0065     - '&' - '=';
0066 
0067 constexpr
0068 auto
0069 param_value_chars = pchars
0070     + '/' + '?'
0071     - '&';
0072 
0073 constexpr
0074 auto
0075 fragment_chars =
0076     pchars + '/' + '?' + '#';
0077 
0078 constexpr
0079 auto
0080 nocolon_pchars =
0081     pchars - ':';
0082 
0083 } // detail
0084 } // urls
0085 } // boost
0086 
0087 #endif