Difference between revisions of "cpp/regex/match results"
m (Text replace - "{{tdcl list begin}} {{tdcl list h1 | Member types}}" to "===Member types=== {{tdcl list begin}}") |
m (Text replace - "{{dcl list begin}} {{dcl list h1 | Member functions}}" to "===Member functions=== {{dcl list begin}}") |
||
Line 38: | Line 38: | ||
{{tdcl list end}} | {{tdcl list end}} | ||
+ | |||
{{dcl list begin}} | {{dcl list begin}} | ||
− | |||
{{dcl list mem cons | cpp/regex/match_results/match_results | constructs the object }} | {{dcl list mem cons | cpp/regex/match_results/match_results | constructs the object }} | ||
{{dcl list mem des | cpp/regex/match_results/~match_results | destructs the object }} | {{dcl list mem des | cpp/regex/match_results/~match_results | destructs the object }} |
Revision as of 17:06, 18 August 2011
Template:cpp/regex/match results/sidebar
Defined in header <regex>
|
||
template< class BidirectionalIterator, |
Template:mark c++11 feature | |
The class template match_results holds a collection of character sequences that represent the result of a regular expression match.
This section is incomplete |
Several specializations for common character sequence types are provided:
Template:tdcl list begin Template:tdcl list header Template:tdcl list hitem Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list end
Contents |
Member types
Template:tdcl list begin Template:tdcl list hitem Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list end
Member functions
returns the associated allocator (public member function) | |
State | |
(public member function) | |
Size | |
checks if nothing was matched (public member function) | |
returns one the number of matches, or Template:cpp if Template:cpp does not represent a successful match (public member function) | |
returns maximum possible number of sub-matches (public member function) | |
Element access | |
returns the length of the particular sub-match (public member function) | |
returns the position of the first character of the particular sub-match (public member function) | |
returns the sequence of characters for the particular sub-match (public member function) | |
returns an sub_match defining particular sub-match (public member function) | |
returns sub-sequence between the beginning of the sequence and the beginning of the particular sub-match (public member function) | |
returns sub-sequence between the end of the particular sub-match and the end of the sequence (public member function) | |
Iterators | |
returns iterator to the beginning of the list of sub-matches (public member function) | |
returns iterator to the end of the list of sub-matches (public member function) | |
Format | |
formats match results for output (public member function) | |
Modifiers | |
swaps the contents (public member function) |