sub_delim_chars.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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_SUB_DELIM_CHARS_HPP
  10. #define BOOST_URL_RFC_SUB_DELIM_CHARS_HPP
  11. #include <boost/url/detail/config.hpp>
  12. #include <boost/url/grammar/lut_chars.hpp>
  13. namespace boost {
  14. namespace urls {
  15. /** The sub-delims 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 > = grammar::parse( "Program%20Files", pct_encoded_rule( sub_delim_chars ) );
  22. @endcode
  23. @par BNF
  24. @code
  25. sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
  26. / "*" / "+" / "," / ";" / "="
  27. @endcode
  28. @par Specification
  29. @li <a href="https://datatracker.ietf.org/doc/html/rfc3986#section-2.2"
  30. >2.2. Reserved Characters (rfc3986)</a>
  31. @see
  32. @ref grammar::find_if,
  33. @ref grammar::find_if_not,
  34. @ref grammar::parse,
  35. @ref pct_encoded_rule.
  36. */
  37. constexpr
  38. grammar::lut_chars
  39. sub_delim_chars = "!$&()*+,;=\x27";
  40. } // urls
  41. } // boost
  42. #endif