...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::xpressive::after — Look-behind assertion.
template<typename Xpr> unspecified after(Xpr const & xpr);
after(xpr) succeeds if the xpr sub-expression would match at the current position minus N in the sequence, where N is the width of xpr. xpr is not included in the match. For instance, after("foo") succeeds if we are after a "foo". Look-behind assertions can be negated with the bit-complement operator.
Parameters: |
|
||
Requires: | xpr cannot match a variable number of characters. |
||
Notes: | after(xpr) is equivalent to the perl (?<=...) extension. ~after(xpr) is a negative look-behind assertion, equivalent to the perl (?<!...) extension. |
Copyright © 2003, 2004 Eric Niebler |