libstdc++: std::regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits (original) (raw)
#include <[regex](a00176%5Fsource.html)>
Public Types | |
---|---|
typedef std::ptrdiff_t | difference_type |
typedef std::forward_iterator_tag | iterator_category |
typedef std::input_iterator_tag | iterator_concept |
typedef const value_type * | pointer |
typedef const value_type & | reference |
typedef basic_regex< _Ch_type, _Rx_traits > | regex_type |
typedef sub_match< _Bi_iter > | value_type |
template<typename _Bi_iter, typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>>
class std::regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits >
Iterates over submatches in a range (or splits a text string).
The purpose of this iterator is to enumerate all, or all specified, matches of a regular expression within a text range. The dereferenced value of an iterator of this class is a std::sub_match object.
Since
C++11
Definition at line 2866 of file regex.h.
◆ difference_type
template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>>
◆ iterator_category
template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>>
◆ iterator_concept
template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>>
◆ pointer
template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>>
◆ reference
template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>>
◆ regex_type
template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>>
◆ value_type
template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>>
template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>>
Default constructs a regex_token_iterator.
A default-constructed regex_token_iterator is a singular iterator that will compare equal to the one-past-the-end value for any iterator of the same type.
Definition at line 2887 of file regex.h.
◆ regex_token_iterator() [2/6]
template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>>
Constructs a regex_token_iterator...
Parameters
__a | [IN] The start of the text to search. |
---|---|
__b | [IN] One-past-the-end of the text to search. |
__re | [IN] The regular expression to search for. |
__submatch | [IN] Which submatch to return. There are some special values for this parameter: -1 each enumerated subexpression does NOT match the regular expression (aka field splitting) 0 the entire string matching the subexpression is returned for each match within the text. >0 enumerates only the indicated subexpression from a match within the text. |
__m | [IN] Policy flags for match rules. |
Definition at line 2909 of file regex.h.
◆ regex_token_iterator() [3/6]
template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>>
Constructs a regex_token_iterator...
Parameters
__a | [IN] The start of the text to search. |
---|---|
__b | [IN] One-past-the-end of the text to search. |
__re | [IN] The regular expression to search for. |
__submatches | [IN] A list of subexpressions to return for each regular expression match within the text. |
__m | [IN] Policy flags for match rules. |
Definition at line 2925 of file regex.h.
◆ regex_token_iterator() [4/6]
template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>>
Constructs a regex_token_iterator...
Parameters
__a | [IN] The start of the text to search. |
---|---|
__b | [IN] One-past-the-end of the text to search. |
__re | [IN] The regular expression to search for. |
__submatches | [IN] A list of subexpressions to return for each regular expression match within the text. |
__m | [IN] Policy flags for match rules. |
Definition at line 2942 of file regex.h.
◆ regex_token_iterator() [5/6]
template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>>
template<std::size_t _Nm>
Constructs a regex_token_iterator...
Parameters
__a | [IN] The start of the text to search. |
---|---|
__b | [IN] One-past-the-end of the text to search. |
__re | [IN] The regular expression to search for. |
__submatches | [IN] A list of subexpressions to return for each regular expression match within the text. |
__m | [IN] Policy flags for match rules. |
Definition at line 2960 of file regex.h.
◆ regex_token_iterator() [6/6]
template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>>
Copy constructs a regex_token_iterator.
Parameters
__rhs | [IN] A regex_token_iterator to copy. |
---|
Definition at line 2992 of file regex.h.
◆ operator*()
template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>>
Dereferences a regex_token_iterator.
Definition at line 3030 of file regex.h.
◆ operator++() [1/2]
template<typename _Bi_iter , typename _Ch_type , typename _Rx_traits >
Increments a regex_token_iterator.
Definition at line 609 of file regex.tcc.
◆ operator++() [2/2]
template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>>
Postincrements a regex_token_iterator.
Definition at line 3050 of file regex.h.
◆ operator->()
template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>>
Selects a regex_token_iterator member.
Definition at line 3037 of file regex.h.
◆ operator=()
Assigns a regex_token_iterator to another.
Parameters
__rhs | [IN] A regex_token_iterator to copy. |
---|
Definition at line 573 of file regex.tcc.
◆ operator==() [1/2]
template<typename _Bi_iter , typename _Ch_type , typename _Rx_traits >
bool std::regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits >::operator== | ( | const regex_token_iterator< _Bi_iter, _Ch_type, _Rx_traits > & | __rhs | ) | const |
---|
Compares a regex_token_iterator to another for equality.
Definition at line 589 of file regex.tcc.
◆ operator==() [2/2]
template<typename _Bi_iter , typename _Ch_type = typename iterator_traits<_Bi_iter>::value_type, typename _Rx_traits = regex_traits<_Ch_type>>
The documentation for this class was generated from the following files: