Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/regex/sub match"

From cppreference.com
< cpp‎ | regex
m (Text replace - "{{mark c++0x feature}}" to "{{mark c++11 feature}}")
m (Text replace - "{{dcl list begin}} {{dcl list h1 | Member functions}}" to "===Member functions=== {{dcl list begin}}")
Line 32: Line 32:
 
{{tdcl list end}}
 
{{tdcl list end}}
  
 +
===Member functions===
 
{{dcl list begin}}
 
{{dcl list begin}}
{{dcl list h1 | Member functions}}
 
 
{{dcl list mem cons | cpp/regex/sub_match/sub_match | constructs the match object}}
 
{{dcl list mem cons | cpp/regex/sub_match/sub_match | constructs the match object}}
  

Revision as of 16:06, 18 August 2011

Template:cpp/regex/sub match/sidebar

Defined in header <regex>
template<

    class BidirectionalIterator

> class sub_match;
Template:mark c++11 feature

The class template sub_match is used by the regular expression engine to denote sequences of characters matched by marked sub-expressions.

Inherits Template:cpp

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

Template:tdcl list begin Template:tdcl list h1 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 functions

Template:dcl list mem cons
Observers
returns the length of the match, if any
(public member function)
cast to the underlying string type
(public member function)
returns the matched subsequence
(public member function)
compares matched subsequence (if any)
(public member function)

Member objects

defines whether this match was successful
(public member object)

Non-member functions