Update of /cvsroot/boost/boost/boost/xpressive/detail/core/matcher
In directory
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv4470/boost/xpressive/detail/core/matcher
Modified Files:
action_matcher.hpp charset_matcher.hpp set_matcher.hpp
Log Message:
as_set and as_list_set transforms, and set complement
Index: action_matcher.hpp
===================================================================
RCS file:
/cvsroot/boost/boost/boost/xpressive/detail/core/matcher/action_matcher.hpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- action_matcher.hpp 31 Mar 2007 07:40:19 -0000 1.16
+++ action_matcher.hpp 5 Apr 2007 20:49:10 -0000 1.17
@@ -97,20 +97,20 @@
, typename proto::result_of::right<Expr>::const_reference
, typename proto::result_of::right<Expr>::reference
>::type>::type right_type;
-
+
typedef typename remove_reference<typename mpl::if_<
is_const<Expr>
, typename proto::result_of::left<Expr>::const_reference
, typename proto::result_of::left<Expr>::reference
>::type>::type left_type;
-
+
typedef
typename proto::result_of::arg<
typename proto::result_of::arg_c<right_type, 0>::type
>::type
function_type;
- typedef
+ typedef
fusion::transform_view<
typename fusion::result_of::push_front<
typename
fusion::result_of::pop_front<proto::children<right_type> >::type const
@@ -176,7 +176,7 @@
struct apply
: proto::terminal<sub_match<typename State::iterator> >
{};
-
+
template<typename Expr, typename State, typename Visitor>
static typename apply<Expr, State, Visitor>::type
call(Expr const &expr, State const &state, Visitor &visitor)
@@ -199,7 +199,7 @@
struct apply
: proto::terminal<sub_match<typename State::iterator> >
{};
-
+
template<typename Expr, typename State, typename Visitor>
static typename apply<Expr, State, Visitor>::type
call(Expr const &expr, State const &state, Visitor &)
@@ -222,7 +222,7 @@
struct apply
: proto::terminal<typename
proto::result_of::arg<Expr>::const_reference>
{};
-
+
template<typename Expr, typename State, typename Visitor>
static typename apply<Expr, State, Visitor>::type
call(Expr const &expr, State const &state, Visitor &)
Index: charset_matcher.hpp
===================================================================
RCS file:
/cvsroot/boost/boost/boost/xpressive/detail/core/matcher/charset_matcher.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- charset_matcher.hpp 26 Nov 2005 17:12:25 -0000 1.2
+++ charset_matcher.hpp 5 Apr 2007 20:49:10 -0000 1.3
@@ -36,6 +36,11 @@
{
}
+ void inverse()
+ {
+ this->charset_.inverse();
+ }
+
template<typename BidiIter, typename Next>
bool match(state_type<BidiIter> &state, Next const &next) const
{
Index: set_matcher.hpp
===================================================================
RCS file:
/cvsroot/boost/boost/boost/xpressive/detail/core/matcher/set_matcher.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- set_matcher.hpp 5 Apr 2007 07:10:10 -0000 1.5
+++ set_matcher.hpp 5 Apr 2007 20:49:10 -0000 1.6
@@ -58,6 +58,12 @@
this->set_[0] = traits.translate(ch);
}
+ void inverse()
+ {
+ this->not_ = !this->not_;
+ }
+
+ // TODO remove me
void complement()
{
this->not_ = !this->not_;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs