![]() |
Home | Libraries | People | FAQ | More |
boost::xpressive::sub_match — Class template sub_match denotes the sequence of characters matched by a particular marked sub-expression.
// In header: <boost/xpressive/sub_match.hpp> template<typename BidiIter> struct sub_match : public { // types typedef ; typedef ; typedef ; typedef ; // construct/copy/destruct (); (, , = ); // public member functions () ; () ; () ; () ; () ; () ; () ; () ; // public data members matched; // true if this sub-match participated in the full match. };
When the marked sub-expression denoted by an object of type sub_match<> participated in a regular expression match then member matched evaluates to true, and members first and second denote the range of characters [first,second) which formed that match. Otherwise matched is false, and members first and second contained undefined values.
If an object of type sub_match<> represents sub-expression 0 - that is to say the whole match - then member matched is always true, unless a partial match was obtained as a result of the flag match_partial being passed to a regular expression algorithm, in which case member matched is false, and members first and second represent the character range that formed the partial match.
sub_match public member functions() ;
() ;
() ;
() ;
() ;
( str) ;Performs a lexicographic string comparison.
Parameters: |
|
||
Returns: |
the results of |
( sub) ;
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
( ptr) ;
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.