reserved_chars.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. // Official repository: https://github.com/boostorg/url
  8. //
  9. #ifndef BOOST_URL_RFC_RESERVED_CHARS_HPP
  10. #define BOOST_URL_RFC_RESERVED_CHARS_HPP
  11. #include <boost/url/detail/config.hpp>
  12. #include <boost/url/rfc/unreserved_chars.hpp>
  13. namespace boost {
  14. namespace urls {
  15. /** The reserved character set
  16. @par Example
  17. Character sets are used with rules and
  18. the functions @ref grammar::find_if and
  19. @ref grammar::find_if_not.
  20. @code
  21. system::result< decode_view > rv = grammar::parse( "Program%20Files", pct_encoded_rule( reserved_chars ) );
  22. @endcode
  23. @par Specification
  24. @li <a href="https://datatracker.ietf.org/doc/html/rfc3986#section-2.3"
  25. >2.3. Unreserved Characters (rfc3986)</a>
  26. @see
  27. @ref grammar::find_if,
  28. @ref grammar::find_if_not,
  29. @ref grammar::parse,
  30. @ref pct_encoded_rule.
  31. */
  32. constexpr auto reserved_chars = ~unreserved_chars;
  33. } // urls
  34. } // boost
  35. #endif