STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Public Attributes | List of all members
sub_match< _BidIt > Class Template Reference
Inheritance diagram for sub_match< _BidIt >:
pair< _BidIt, _BidIt >

Public Types

typedef _BidIt iterator
 
typedef basic_string< value_type > string_type
 
- Public Types inherited from pair< _BidIt, _BidIt >
typedef pair< _BidIt, _BidIt > _Myt
 
typedef _BidIt first_type
 
typedef _BidIt second_type
 

Public Member Functions

typedef _REGEX_VALT (_BidIt) value_type
 
typedef _REGEX_DIFFT (_BidIt) difference_type
 
 sub_match ()
 
difference_type length () const
 
 operator string_type () const
 
string_type str () const
 
int compare (const sub_match &_Right) const
 
int compare (const string_type &_Right) const
 
int compare (_In_z_ const value_type *_Ptr) const
 
- Public Member Functions inherited from pair< _BidIt, _BidIt >
_Other1 &&::value second (_STD forward< _Other2 >(_Val2))
 
_Other1 &&::value second (_STD forward< _Other2 >(_Right.second))
 
 pair ()
 
 pair (const _BidIt &_Val1, const _BidIt &_Val2)
 
 pair (const pair< _Other1, _Other2 > &_Right)
 
 pair (_Tuple1 &_Val1, _Tuple2 &_Val2, _Arg_idx< _Indexes1...>, _Arg_idx< _Indexes2...>)
 
 pair (piecewise_construct_t, tuple< _Types1...> _Val1, tuple< _Types2...> _Val2) _NOEXCEPT_OP((is_nothrow_constructible< _BidIt
 
 pair (_Other1 &&_Val1, _Other2 &&_Val2) _NOEXCEPT_OP((is_nothrow_constructible< _BidIt
 
 pair (pair< _Other1, _Other2 > &&_Right) _NOEXCEPT_OP((is_nothrow_constructible< _BidIt
 
_Mytoperator= (const pair< _Other1, _Other2 > &_Right)
 
_Mytoperator= (pair< _Other1, _Other2 > &&_Right) _NOEXCEPT_OP((is_nothrow_assignable< _BidIt
 
_Mytoperator= (_Myt &&_Right) _NOEXCEPT_OP((is_nothrow_move_assignable< _BidIt >
 
_Mytoperator= (const _Myt &_Right)
 
void swap (_Myt &_Right)&&_NOEXCEPT_OP(_Swap_adl(this-> second, _Right.second)))
 

Public Attributes

bool matched
 
- Public Attributes inherited from pair< _BidIt, _BidIt >
 second
 
_BidIt second
 
returnthis
 
_BidIt first
 

Member Typedef Documentation

template<class _BidIt>
typedef _BidIt sub_match< _BidIt >::iterator
template<class _BidIt>
typedef basic_string<value_type> sub_match< _BidIt >::string_type

Constructor & Destructor Documentation

template<class _BidIt>
sub_match< _BidIt >::sub_match ( )
inline
612  : matched(false)
613  { // construct
614  }
bool matched
Definition: regex:616

Member Function Documentation

template<class _BidIt>
typedef sub_match< _BidIt >::_REGEX_DIFFT ( _BidIt  )
template<class _BidIt>
typedef sub_match< _BidIt >::_REGEX_VALT ( _BidIt  )
template<class _BidIt>
int sub_match< _BidIt >::compare ( const sub_match< _BidIt > &  _Right) const
inline
636  { // compare *this to _Right
637  return (str().compare(_Right.str()));
638  }
int compare(const sub_match &_Right) const
Definition: regex:635
string_type str() const
Definition: regex:628
template<class _BidIt>
int sub_match< _BidIt >::compare ( const string_type _Right) const
inline
641  { // compare *this to _Right
642  return (str().compare(_Right));
643  }
int compare(const sub_match &_Right) const
Definition: regex:635
string_type str() const
Definition: regex:628
const _Ty & _Right
Definition: algorithm:4087
template<class _BidIt>
int sub_match< _BidIt >::compare ( _In_z_ const value_type *  _Ptr) const
inline
646  { // compare *this to array pointed to by _Ptr
647  return (str().compare(_Ptr));
648  }
int compare(const sub_match &_Right) const
Definition: regex:635
string_type str() const
Definition: regex:628
template<class _BidIt>
difference_type sub_match< _BidIt >::length ( ) const
inline
619  { // return length of matched text
620  return (matched ? distance(this->first, this->second) : 0);
621  }
bool matched
Definition: regex:616
iterator_traits< _InIt >::difference_type distance(_InIt _First, _InIt _Last)
Definition: xutility:755
_BidIt first
Definition: utility:198
second
Definition: utility:167
template<class _BidIt>
sub_match< _BidIt >::operator string_type ( ) const
inline
624  { // convert matched text to string
625  return (str());
626  }
string_type str() const
Definition: regex:628
template<class _BidIt>
string_type sub_match< _BidIt >::str ( ) const
inline
629  { // convert matched text to string
630  return (matched ?
631  string_type(this->first, this->second)
632  : string_type());
633  }
bool matched
Definition: regex:616
_BidIt first
Definition: utility:198
basic_string< value_type > string_type
Definition: regex:609
second
Definition: utility:167

Member Data Documentation

template<class _BidIt>
bool sub_match< _BidIt >::matched

The documentation for this class was generated from the following file: