Inherits std::vector< sub_match< _Bi_iter >, _Alloc >.
template<typename _Out_iter > _Out_iter format (_Out_iter __out, const match_results< _Bi_iter, _Alloc >::char_type *__fmt_first, const match_results< _Bi_iter, _Alloc >::char_type *__fmt_last, match_flag_type __flags) const
bool ready () const
Indicates if the match_results is ready.
typedef _Alloc_traits::const_pointer const_pointer
typedef std::reverse_iterator< const_iterator > const_reverse_iterator
typedef _Base::pointer pointer
typedef std::reverse_iterator< iterator > reverse_iterator
pointer _M_allocate (size_t __n)
pointer _M_allocate (size_t __n)
pointer _M_allocate_and_copy (size_type __n, _ForwardIterator __first, _ForwardIterator __last)
void _M_assign_aux (_InputIterator __first, _InputIterator __last, std::input_iterator_tag)
void _M_assign_aux (_ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag)
void _M_assign_dispatch (_Integer __n, _Integer __val, __true_type)
void _M_assign_dispatch (_InputIterator __first, _InputIterator __last, __false_type)
size_type _M_check_len (size_type __n, const char *__s) const
void _M_deallocate (pointer __p, size_t __n)
void _M_deallocate (pointer __p, size_t __n)
void _M_default_append (size_type __n)
void _M_default_initialize (size_type __n)
auto _M_emplace_aux (const_iterator __position, _Args &&... __args) -> iterator
iterator _M_emplace_aux (const_iterator __position, _Args &&... __args)
iterator _M_emplace_aux (const_iterator __position, value_type &&__v)
iterator _M_erase (iterator __position)
iterator _M_erase (iterator __first, iterator __last)
void _M_erase_at_end (pointer __pos) noexcept
void _M_fill_assign (size_type __n, const value_type &__val)
void _M_fill_initialize (size_type __n, const value_type &__value)
void _M_fill_insert (iterator __pos, size_type __n, const value_type &__x)
_Tp_alloc_type & _M_get_Tp_allocator () noexcept
const _Tp_alloc_type & _M_get_Tp_allocator () const noexcept
_Tp_alloc_type & _M_get_Tp_allocator () noexcept
const _Tp_alloc_type & _M_get_Tp_allocator () const noexcept
void _M_initialize_dispatch (_Integer __n, _Integer __value, __true_type)
void _M_initialize_dispatch (_InputIterator __first, _InputIterator __last, __false_type)
void _M_insert_aux (iterator __position, _Arg &&__arg)
void _M_insert_dispatch (iterator __pos, _Integer __n, _Integer __val, __true_type)
void _M_insert_dispatch (iterator __pos, _InputIterator __first, _InputIterator __last, __false_type)
iterator _M_insert_rval (const_iterator __position, value_type &&__v)
void _M_range_check (size_type __n) const
Safety check used only from at().
void _M_range_initialize (_InputIterator __first, _InputIterator __last, std::input_iterator_tag)
void _M_range_initialize (_ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag)
void _M_range_insert (iterator __pos, _InputIterator __first, _InputIterator __last, std::input_iterator_tag)
void _M_range_insert (iterator __pos, _ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag)
void _M_realloc_insert (iterator __position, _Args &&... __args)
bool _M_shrink_to_fit ()
void assign (size_type __n, const value_type &__val)
Assigns a given value to a vector.
void assign (_InputIterator __first, _InputIterator __last)
Assigns a range to a vector.
void assign (initializer_list< value_type > __l)
Assigns an initializer list to a vector.
reference at (size_type __n)
Provides access to the data contained in the vector.
const_reference at (size_type __n) const
Provides access to the data contained in the vector.
reference back () noexcept
const_reference back () const noexcept
iterator begin () noexcept
size_type capacity () const noexcept
void clear () noexcept
const_reverse_iterator crbegin () const noexcept
const_reverse_iterator crend () const noexcept
sub_match< _Bi_iter > * data () noexcept
const sub_match< _Bi_iter > * data () const noexcept
iterator emplace (const_iterator __position, _Args &&... __args)
Inserts an object in vector before specified iterator.
void emplace_back (_Args &&... __args)
iterator end () noexcept
iterator erase (const_iterator __position)
Remove element at given position.
iterator erase (const_iterator __first, const_iterator __last)
Remove a range of elements.
reference front () noexcept
const_reference front () const noexcept
allocator_type get_allocator () const noexcept
Get a copy of the memory allocation object.
iterator insert (const_iterator __position, const value_type &__x)
Inserts given value into vector before specified iterator.
iterator insert (const_iterator __position, value_type &&__x)
Inserts given rvalue into vector before specified iterator.
iterator insert (const_iterator __position, initializer_list< value_type > __l)
Inserts an initializer_list into the vector.
iterator insert (const_iterator __position, size_type __n, const value_type &__x)
Inserts a number of copies of given data into the vector.
iterator insert (const_iterator __position, _InputIterator __first, _InputIterator __last)
Inserts a range into the vector.
reference operator[] (size_type __n) noexcept
Subscript access to the data contained in the vector.
const_reference operator[] (size_type __n) const noexcept
Subscript access to the data contained in the vector.
void pop_back () noexcept
Removes last element.
void push_back (const value_type &__x)
Add data to the end of the vector.
void push_back (value_type &&__x)
reverse_iterator rbegin () noexcept
const_reverse_iterator rbegin () const noexcept
reverse_iterator rend () noexcept
const_reverse_iterator rend () const noexcept
void reserve (size_type __n)
Attempt to preallocate enough memory for specified number of elements.
void resize (size_type __new_size)
Resizes the vector to the specified number of elements.
void resize (size_type __new_size, const value_type &__x)
Resizes the vector to the specified number of elements.
void shrink_to_fit ()
void swap (vector &__x) noexcept
Swaps data with another vector.
template<typename _Bp , typename _Ap , typename _Cp , typename _Rp , __detail::_RegexExecutorPolicy , bool > bool __detail::__regex_algo_impl (_Bp, _Bp, match_results< _Bp, _Ap > &, const basic_regex< _Cp, _Rp > &, regex_constants::match_flag_type)
template<typename , typename , typename , bool > class __detail::_Executor
template<typename , typename , typename > class regex_iterator
typedef sub_match< _Bi_iter > value_type
typedef const value_type & const_reference
typedef value_type & reference
typedef _Base_type::const_iterator const_iterator
typedef const_iterator iterator
typedef __iter_traits::difference_type difference_type
typedef allocator_traits< _Alloc >::size_type size_type
typedef _Alloc allocator_type
typedef __iter_traits::value_type char_type
typedef std::basic_string< char_type > string_type
match_results (const _Alloc &__a=_Alloc())
Constructs a default match_results container.
match_results (const match_results &__rhs)=default
Copy constructs a match_results.
match_results (match_results &&__rhs) noexcept=default
Move constructs a match_results.
match_results & operator= (const match_results &__rhs)=default
Assigns rhs to *this.
match_results & operator= (match_results &&__rhs)=default
Move-assigns rhs to *this.
~match_results ()
Destroys a match_results object.
size_type size () const
Gets the number of matches and submatches.
size_type max_size () const
Gets the number of matches and submatches.
bool empty () const
Indicates if the match_results contains no results.
difference_type length (size_type __sub=0) const
Gets the length of the indicated submatch.
difference_type position (size_type __sub=0) const
Gets the offset of the beginning of the indicated submatch.
string_type str (size_type __sub=0) const
Gets the match or submatch converted to a string type.
const_reference operator[] (size_type __sub) const
Gets a sub_match reference for the match or submatch.
const_reference prefix () const
Gets a sub_match representing the match prefix.
const_reference suffix () const
Gets a sub_match representing the match suffix.
const_iterator begin () const
Gets an iterator to the start of the sub_match collection.
const_iterator cbegin () const
Gets an iterator to the start of the sub_match collection.
const_iterator end () const
Gets an iterator to one-past-the-end of the collection.
const_iterator cend () const
Gets an iterator to one-past-the-end of the collection.
allocator_type get_allocator () const
Gets a copy of the allocator.
void swap (match_results &__that)
Swaps the contents of two match_results.
A collection of character sequences representing the result of a regular expression match. Storage for the collection is allocated and freed as necessary by the member functions of class template match_results.
This class satisfies the Sequence requirements, with the exception that only the operations defined for a const-qualified Sequence are supported.
The sub_match object stored at index 0 represents sub-expression 0, i.e. the whole match. In this case the sub_match member matched is always true. The sub_match object stored at index n denotes what matched the marked sub-expression n within the matched expression. If the sub-expression n participated in a regular expression match then the sub_match 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 point to the end of the sequence that was searched.
Definition at line 39 of file regex.h.
Constructs a default match_results container.
Postcondition:
Definition at line 1605 of file regex.h.
Copy constructs a match_results.
Move constructs a match_results.
Destroys a match_results object.
Definition at line 1634 of file regex.h.
Gets an iterator to the start of the sub_match collection.
Definition at line 1779 of file regex.h.
Referenced by std::match_results< _Bi_iter >::cbegin().
Gets an iterator to the start of the sub_match collection.
Definition at line 1786 of file regex.h.
Gets an iterator to one-past-the-end of the collection.
Definition at line 1800 of file regex.h.
Indicates if the match_results contains no results.
Return values:
Definition at line 1675 of file regex.h.
Referenced by std::match_results< _Bi_iter >::end().
Gets an iterator to one-past-the-end of the collection.
Definition at line 1793 of file regex.h.
Referenced by std::match_results< _Bi_iter >::cend().
Precondition:
Referenced by std::match_results< _Bi_iter >::format().
Precondition:
Definition at line 1829 of file regex.h.
Precondition:
Definition at line 1841 of file regex.h.
Precondition:
Definition at line 1853 of file regex.h.
Gets a copy of the allocator.
Definition at line 1875 of file regex.h.
Gets the length of the indicated submatch.
Parameters:
Precondition:
This function returns the length of the indicated submatch, or the length of the entire match if __sub is zero (the default).
Definition at line 1694 of file regex.h.
Gets the number of matches and submatches. The number of matches for a given regular expression will be either 0 if there was no match or mark_count() + 1 if a match was successful. Some matches may be empty.
Returns:
Definition at line 1666 of file regex.h.
Gets a sub_match reference for the match or submatch.
Parameters:
Precondition:
This function gets a reference to the indicated submatch, or the entire match if __sub is zero.
If __sub >= size() then this function returns a sub_match with a special value indicating no submatch.
Definition at line 1737 of file regex.h.
Gets the offset of the beginning of the indicated submatch.
Parameters:
Precondition:
This function returns the offset from the beginning of the target sequence to the beginning of the submatch, unless the value of __sub is zero (the default), in which case this function returns the offset from the beginning of the target sequence to the beginning of the match.
Definition at line 1709 of file regex.h.
Gets a sub_match representing the match prefix.
Precondition:
This function gets a reference to a sub_match object representing the part of the target range between the start of the target range and the start of the match.
Definition at line 1754 of file regex.h.
Indicates if the match_results is ready.
Return values:
Definition at line 1645 of file regex.h.
Gets the number of matches and submatches. The number of matches for a given regular expression will be either 0 if there was no match or mark_count() + 1 if a match was successful. Some matches may be empty.
Returns:
Definition at line 1662 of file regex.h.
Referenced by std::match_results< _Bi_iter >::empty().
Gets the match or submatch converted to a string type.
Parameters:
Precondition:
This function gets the submatch (or match, if __sub is zero) extracted from the target range and converted to the associated string type.
Definition at line 1722 of file regex.h.
Gets a sub_match representing the match suffix.
Precondition:
This function gets a reference to a sub_match object representing the part of the target range between the end of the match and the end of the target range.
Definition at line 1769 of file regex.h.
Swaps the contents of two match_results.
Definition at line 1889 of file regex.h.
Referenced by std::match_results< _Bi_iter >::swap().
Generated automatically by Doxygen for libstdc++ from the source code.