12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- #ifndef BOOST_URL_GRAMMAR_VCHARS_HPP
- #define BOOST_URL_GRAMMAR_VCHARS_HPP
- #include <boost/url/detail/config.hpp>
- #include <boost/url/grammar/detail/charset.hpp>
- namespace boost {
- namespace urls {
- namespace grammar {
- #ifdef BOOST_URL_DOCS
- constexpr __implementation_defined__ vchars;
- #else
- struct vchars_t
- {
- constexpr
- bool
- operator()(char c) const noexcept
- {
- return c >= 0x21 && c <= 0x7e;
- }
- #ifdef BOOST_URL_USE_SSE2
- char const*
- find_if(
- char const* first,
- char const* last) const noexcept
- {
- return detail::find_if_pred(
- *this, first, last);
- }
- char const*
- find_if_not(
- char const* first,
- char const* last) const noexcept
- {
- return detail::find_if_not_pred(
- *this, first, last);
- }
- #endif
- };
- constexpr vchars_t vchars{};
- #endif
- }
- }
- }
- #endif
|