33 _GLIBCXX_BEGIN_NAMESPACE_VERSION
35 template<
typename _BiIter>
38 template<
typename _Bi_iter,
typename _Allocator>
41 _GLIBCXX_END_NAMESPACE_VERSION
45 _GLIBCXX_BEGIN_NAMESPACE_VERSION
53 template<
typename _FwdIterT,
typename _Alloc>
55 class _SpecializedResults
59 _SpecializedResults(
const _Automaton::_SizeT
__size,
60 const _SpecializedCursor<_FwdIterT>& __cursor,
61 match_results<_FwdIterT, _Alloc>& __m);
64 _M_set_pos(
int __i,
int __j,
const _PatternCursor& __pc);
67 _M_set_matched(
int __i,
bool __is_matched)
68 { _M_results.at(__i).matched = __is_matched; }
71 match_results<_FwdIterT, _Alloc>& _M_results;
74 template<
typename _FwdIterT,
typename _Alloc>
75 _SpecializedResults<_FwdIterT, _Alloc>::
76 _SpecializedResults(
const _Automaton::_SizeT
__size,
77 const _SpecializedCursor<_FwdIterT>& __cursor,
78 match_results<_FwdIterT, _Alloc>& __m)
82 _M_results.reserve(__size + 2);
83 _M_results.resize(__size);
84 typename match_results<_FwdIterT, _Alloc>::value_type __sm;
85 __sm.first = __sm.second = __cursor._M_begin();
86 _M_results.push_back(__sm);
87 __sm.first = __sm.second = __cursor._M_end();
88 _M_results.push_back(__sm);
91 template<
typename _FwdIterT,
typename _Alloc>
93 _SpecializedResults<_FwdIterT, _Alloc>::
94 _M_set_pos(
int __i,
int __j,
const _PatternCursor& __pc)
96 typedef const _SpecializedCursor<_FwdIterT>& _CursorT;
97 _CursorT __c =
static_cast<_CursorT
>(__pc);
99 _M_results.at(__i).first = __c._M_pos();
101 _M_results.at(__i).second = __c._M_pos()+1;
105 typedef std::stack<_StateIdT, std::vector<_StateIdT> > _StateStack;
113 _Grep_matcher(_PatternCursor& __p,
115 const _AutomatonPtr& __automaton,
116 regex_constants::match_flag_type __flags);
120 _M_e_closure(_StateIdT __i);
123 _M_e_closure(
const _StateSet& __s);
126 _M_e_closure(_StateStack& __stack,
const _StateSet& __s);
128 const std::shared_ptr<_Nfa> _M_nfa;
129 _PatternCursor& _M_pattern;
130 _Results& _M_results;
134 _GLIBCXX_END_NAMESPACE_VERSION
std::size_t __size(__stack_t __stack)
Definition: profiler_node.h:68
namespace std _GLIBCXX_VISIBILITY(default)
Definition: auto_ptr.h:36