Skip to content

Commit 35d5d15

Browse files
1 parent da5848a commit 35d5d15

1 file changed

Lines changed: 16 additions & 17 deletions

File tree

stl/inc/regex

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2064,8 +2064,8 @@ public:
20642064
_Matcher3(_It _Pfirst, _It _Plast, const _RxTraits& _Tr, _Root_node* _Re, unsigned int _Nx,
20652065
regex_constants::syntax_option_type _Sf, regex_constants::match_flag_type _Mf,
20662066
unsigned char (&_Stack_storage)[_Stack_storage_size])
2067-
: _Begin(_Pfirst), _End(_Plast), _Sflags(_Sf), _Mflags(_Mf), _Ncap(_Nx),
2068-
_Longest((_Re->_Flags & _Fl_longest) && !(_Mf & regex_constants::match_any)), _Traits(_Tr) {
2067+
: _Traits(_Tr), _Begin(_Pfirst), _End(_Plast), _Sflags(_Sf), _Mflags(_Mf), _Ncap(_Nx),
2068+
_Longest((_Re->_Flags & _Fl_longest) && !(_Mf & regex_constants::match_any)) {
20692069
_Adl_verify_range(_Pfirst, _Plast);
20702070
if (_Re->_Flags & _Fl_begin_needs_w) {
20712071
_Char_class_w = _Lookup_char_class(static_cast<_Elem>('W'));
@@ -2193,13 +2193,26 @@ public:
21932193
_BidIt _Skip(_BidIt, _BidIt, _Node_base* = nullptr, unsigned int _Recursion_depth = 0U);
21942194

21952195
private:
2196+
long long _Complexity_limit;
21962197
_Tgt_state_type _Tgt_state;
21972198
_Tgt_state_type _Res;
21982199
_Rx_fixed_size_buffer<_Loop_vals_type> _Loop_vals;
21992200
_Rx_small_vector<_State_frame_type> _Frames;
22002201
size_t _Frames_count;
22012202
size_t _Frames_limit;
2202-
long long _Complexity_limit;
2203+
_Node_base* _Start;
2204+
const _RxTraits& _Traits;
2205+
_It _Begin;
2206+
_It _End;
2207+
regex_constants::syntax_option_type _Sflags;
2208+
regex_constants::match_flag_type _Mflags;
2209+
unsigned int _Ncap;
2210+
typename _RxTraits::char_class_type _Char_class_w{};
2211+
typename _RxTraits::char_class_type _Char_class_s{};
2212+
typename _RxTraits::char_class_type _Char_class_d{};
2213+
bool _Matched = false;
2214+
bool _Longest;
2215+
bool _Full;
22032216

22042217
size_t _Push_frame(_Rx_unwind_ops _Code, _Node_base* _Node);
22052218

@@ -2216,20 +2229,6 @@ private:
22162229
bool _Is_wbound() const;
22172230
typename _RxTraits::char_class_type _Lookup_char_class(_Elem) const;
22182231

2219-
_It _Begin;
2220-
_It _End;
2221-
_Node_base* _Start;
2222-
regex_constants::syntax_option_type _Sflags;
2223-
regex_constants::match_flag_type _Mflags;
2224-
bool _Matched = false;
2225-
unsigned int _Ncap;
2226-
bool _Longest;
2227-
const _RxTraits& _Traits;
2228-
bool _Full;
2229-
typename _RxTraits::char_class_type _Char_class_w{};
2230-
typename _RxTraits::char_class_type _Char_class_s{};
2231-
typename _RxTraits::char_class_type _Char_class_d{};
2232-
22332232
public:
22342233
_Matcher3(const _Matcher3&) = delete;
22352234
_Matcher3& operator=(const _Matcher3&) = delete;

0 commit comments

Comments
 (0)