|
_Tp_alloc_type::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 (typename _Tp_alloc_type::pointer __p, size_t __n) |
|
void | _M_default_append (size_type __n) |
|
void | _M_default_initialize (size_type __n) |
|
void | _M_erase_at_end (pointer __pos) |
|
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 () |
|
const _Tp_alloc_type & | _M_get_Tp_allocator () const |
|
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, _Args &&...__args) |
|
void | _M_insert_dispatch (iterator __pos, _Integer __n, _Integer __val, __true_type) |
|
void | _M_insert_dispatch (iterator __pos, _InputIterator __first, _InputIterator __last, __false_type) |
|
void | _M_range_check (size_type __n) const |
|
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 | assign (size_type __n, const value_type &__val) |
|
void | assign (_InputIterator __first, _InputIterator __last) |
|
void | assign (initializer_list< value_type > __l) |
|
reference | at (size_type __n) |
|
const_reference | at (size_type __n) const |
|
reference | back () |
|
const_reference | back () const |
|
iterator | begin () |
|
size_type | capacity () const |
|
void | clear () |
|
const_reverse_iterator | crbegin () const |
|
const_reverse_iterator | crend () const |
|
sub_match< _Bi_iter > * | data () |
|
const sub_match< _Bi_iter > * | data () const |
|
iterator | emplace (iterator __position, _Args &&...__args) |
|
void | emplace_back (_Args &&...__args) |
|
iterator | end () |
|
iterator | erase (iterator __position) |
|
iterator | erase (iterator __first, iterator __last) |
|
reference | front () |
|
const_reference | front () const |
|
iterator | insert (iterator __position, const value_type &__x) |
|
iterator | insert (iterator __position, value_type &&__x) |
|
void | insert (iterator __position, initializer_list< value_type > __l) |
|
void | insert (iterator __position, size_type __n, const value_type &__x) |
|
void | insert (iterator __position, _InputIterator __first, _InputIterator __last) |
|
reference | operator[] (size_type __n) |
|
const_reference | operator[] (size_type __n) const |
|
void | pop_back () |
|
void | push_back (const value_type &__x) |
|
void | push_back (value_type &&__x) |
|
reverse_iterator | rbegin () |
|
const_reverse_iterator | rbegin () const |
|
reverse_iterator | rend () |
|
const_reverse_iterator | rend () const |
|
void | reserve (size_type __n) |
|
void | resize (size_type __new_size) |
|
void | resize (size_type __new_size, const value_type &__x) |
|
void | shrink_to_fit () |
|
void | swap (vector &__x) |
|
|
These functions perform formatted substitution of the matched character sequences into their target. The format specifiers and escape sequences accepted by these functions are determined by their flags parameter as documented above.
|
template<typename _Out_iter > |
_Out_iter | format (_Out_iter __out, const char_type *__fmt_first, const char_type *__fmt_last, regex_constants::match_flag_type __flags=regex_constants::format_default) const |
|
template<typename _Out_iter , typename _St , typename _Sa > |
_Out_iter | format (_Out_iter __out, const basic_string< char_type, _St, _Sa > &__fmt, regex_constants::match_flag_type __flags=regex_constants::format_default) const |
|
template<typename _Out_iter , typename _St , typename _Sa > |
basic_string< char_type, _St, _Sa > | format (const basic_string< char_type, _St, _Sa > &__fmt, regex_constants::match_flag_type __flags=regex_constants::format_default) const |
|
string_type | format (const char_type *__fmt, regex_constants::match_flag_type __flags=regex_constants::format_default) const |
|
template<typename _Bi_iter, typename _Allocator = allocator<sub_match<_Bi_iter> >>
class std::match_results< _Bi_iter, _Allocator >
The results of a match or search operation.
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 1461 of file regex.h.
template<typename _Bi_iter, typename _Allocator = allocator<sub_match<_Bi_iter> >>
difference_type std::match_results< _Bi_iter, _Allocator >::position |
( |
size_type |
__sub = 0 | ) |
const |
|
inline |
Gets the offset of the beginning of the indicated submatch.
- Parameters
-
sub | indicates the submatch. |
- Precondition
- ready() == true
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.
Returns -1 if sub
is out of range.
Definition at line 1630 of file regex.h.