Update of /cvsroot/boost/boost/boost/xpressive/detail/core/matcher
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv13173/detail/core/matcher
Modified Files:
assert_word_matcher.hpp logical_newline_matcher.hpp
Log Message:
transforms for ~_ln and ~_b, clean-up
Index: assert_word_matcher.hpp
===================================================================
RCS file:
/cvsroot/boost/boost/boost/xpressive/detail/core/matcher/assert_word_matcher.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- assert_word_matcher.hpp 26 Nov 2005 17:12:25 -0000 1.2
+++ assert_word_matcher.hpp 11 Apr 2007 16:24:32 -0000 1.3
@@ -81,6 +81,7 @@
: quant_style_assertion
{
typedef typename Traits::char_type char_type;
+ typedef typename Traits::char_class_type char_class_type;
assert_word_matcher(Traits const &traits)
: word_(lookup_classname(traits, "w"))
@@ -88,6 +89,10 @@
BOOST_ASSERT(0 != this->word_);
}
+ assert_word_matcher(char_class_type word)
+ : word_(word)
+ {}
+
bool is_word(Traits const &traits, char_type ch) const
{
return traits.isctype(traits.translate(ch), this->word_);
@@ -104,7 +109,13 @@
return Cond::eval(prevword, thisword, state) && next.match(state);
}
- typename Traits::char_class_type word_;
+ char_class_type word() const
+ {
+ return this->word_;
+ }
+
+ private:
+ char_class_type word_;
};
}}}
Index: logical_newline_matcher.hpp
===================================================================
RCS file:
/cvsroot/boost/boost/boost/xpressive/detail/core/matcher/logical_newline_matcher.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- logical_newline_matcher.hpp 26 Nov 2005 17:12:25 -0000 1.2
+++ logical_newline_matcher.hpp 11 Apr 2007 16:24:32 -0000 1.3
@@ -68,6 +68,11 @@
return false;
}
+ char_class_type newline() const
+ {
+ return this->newline_;
+ }
+
private:
char_class_type newline_;
char_type nl_, cr_;
-------------------------------------------------------------------------
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