Back to home page

EIC code displayed by LXR

 
 

    


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

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_UNRESERVED_CHARS_HPP
0011 #define BOOST_URL_RFC_UNRESERVED_CHARS_HPP
0012 
0013 #include <boost/url/detail/config.hpp>
0014 #include <boost/url/grammar/lut_chars.hpp>
0015 
0016 namespace boost {
0017 namespace urls {
0018 
0019 /** The unreserved character set
0020 
0021     @par Example
0022     Character sets are used with rules and
0023     the functions @ref grammar::find_if and
0024     @ref grammar::find_if_not.
0025     @code
0026     system::result< decode_view > rv = grammar::parse( "Program%20Files", pct_encoded_rule( unreserved_chars ) );
0027     @endcode
0028 
0029     @par BNF
0030     @code
0031     unreserved    = ALPHA / DIGIT / "-" / "." / "_" / "~"
0032     @endcode
0033 
0034     @par Specification
0035     @li <a href="https://datatracker.ietf.org/doc/html/rfc3986#section-2.3"
0036         >2.3. Unreserved Characters (rfc3986)</a>
0037 
0038     @see
0039         @ref grammar::find_if,
0040         @ref grammar::find_if_not,
0041         @ref grammar::parse,
0042         @ref pct_encoded_rule.
0043 */
0044 constexpr
0045 grammar::lut_chars
0046 unreserved_chars =
0047     "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
0048     "abcdefghijklmnopqrstuvwxyz"
0049     "0123456789"
0050     "-._~";
0051 
0052 } // urls
0053 } // boost
0054 
0055 #endif