File indexing completed on 2025-01-18 09:53:48
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef BOOST_XPRESSIVE_DETAIL_CORE_MATCHER_ATTR_END_MATCHER_HPP_EAN_06_09_2007
0009 #define BOOST_XPRESSIVE_DETAIL_CORE_MATCHER_ATTR_END_MATCHER_HPP_EAN_06_09_2007
0010
0011
0012 #if defined(_MSC_VER)
0013 # pragma once
0014 #endif
0015
0016 #include <boost/xpressive/detail/detail_fwd.hpp>
0017 #include <boost/xpressive/detail/core/quant_style.hpp>
0018 #include <boost/xpressive/detail/core/state.hpp>
0019
0020 namespace boost { namespace xpressive { namespace detail
0021 {
0022
0023
0024
0025
0026 struct attr_end_matcher
0027 : quant_style<quant_none, 0, false>
0028 {
0029 template<typename BidiIter, typename Next>
0030 static bool match(match_state<BidiIter> &state, Next const &next)
0031 {
0032 attr_context old_attr_context = state.attr_context_;
0033 state.attr_context_ = *old_attr_context.prev_attr_context_;
0034
0035 if(next.match(state))
0036 {
0037 return true;
0038 }
0039
0040 state.attr_context_ = old_attr_context;
0041 return false;
0042 }
0043 };
0044
0045 }}}
0046
0047 #endif