File indexing completed on 2025-01-18 09:53:28
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_URL_GRAMMAR_VCHARS_HPP
0011 #define BOOST_URL_GRAMMAR_VCHARS_HPP
0012
0013 #include <boost/url/detail/config.hpp>
0014 #include <boost/url/grammar/detail/charset.hpp>
0015
0016 namespace boost {
0017 namespace urls {
0018 namespace grammar {
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045 #ifdef BOOST_URL_DOCS
0046 constexpr __implementation_defined__ vchars;
0047 #else
0048 struct vchars_t
0049 {
0050 constexpr
0051 bool
0052 operator()(char c) const noexcept
0053 {
0054 return c >= 0x21 && c <= 0x7e;
0055 }
0056
0057 #ifdef BOOST_URL_USE_SSE2
0058 char const*
0059 find_if(
0060 char const* first,
0061 char const* last) const noexcept
0062 {
0063 return detail::find_if_pred(
0064 *this, first, last);
0065 }
0066
0067 char const*
0068 find_if_not(
0069 char const* first,
0070 char const* last) const noexcept
0071 {
0072 return detail::find_if_not_pred(
0073 *this, first, last);
0074 }
0075 #endif
0076 };
0077
0078 constexpr vchars_t vchars{};
0079 #endif
0080
0081 }
0082 }
0083 }
0084
0085 #endif