@@ -240,12 +240,20 @@ template<typename Iter> class match_group {
240
240
public: Iter end {};
241
241
242
242
public: bool matched {false };
243
+ public: explicit match_group (auto const & start_, auto const & end_, auto const & matched_);
244
+ public: explicit match_group ();
245
+
246
+ #line 55 "regex.h2"
243
247
};
244
248
245
249
#line 59 "regex.h2"
246
250
template <typename Iter> class match_return {
247
251
public: bool matched {false };
248
252
public: Iter pos {};
253
+ public: explicit match_return (auto const & matched_, auto const & pos_);
254
+ public: explicit match_return ();
255
+
256
+ #line 62 "regex.h2"
249
257
};
250
258
251
259
#line 66 "regex.h2"
@@ -586,6 +594,9 @@ class parse_context_group_state {
586
594
#line 412 "regex.h2"
587
595
// Apply optimizations to the matcher list.
588
596
public: static auto post_process_list (token_vec& list) -> void;
597
+ public: explicit parse_context_group_state (auto const & cur_match_list_, auto const & alternate_match_lists_, auto const & modifiers_);
598
+ public: explicit parse_context_group_state ();
599
+
589
600
590
601
#line 426 "regex.h2"
591
602
};
@@ -612,6 +623,9 @@ class parse_context_branch_reset_state {
612
623
#line 458 "regex.h2"
613
624
// Initialize for a branch reset group.
614
625
public: auto set_active_reset (cpp2::impl::in<int > restart) & -> void;
626
+ public: explicit parse_context_branch_reset_state (auto const & is_active_, auto const & cur_group_, auto const & max_group_, auto const & from_);
627
+ public: explicit parse_context_branch_reset_state ();
628
+
615
629
616
630
#line 465 "regex.h2"
617
631
};
@@ -774,6 +788,9 @@ class generation_function_context {
774
788
775
789
#line 864 "regex.h2"
776
790
public: auto remove_tabs (cpp2::impl::in<int > c) & -> void;
791
+ public: explicit generation_function_context (auto const & code_, auto const & tabs_);
792
+ public: explicit generation_function_context ();
793
+
777
794
778
795
#line 867 "regex.h2"
779
796
};
@@ -1508,6 +1525,16 @@ if (((*this) & perl_code_syntax) == perl_code_syntax) {_ret += _comma + "perl_co
1508
1525
if (((*this ) & perl_code_syntax_in_classes) == perl_code_syntax_in_classes) {_ret += _comma + " perl_code_syntax_in_classes" ;_comma = " , " ;}
1509
1526
return cpp2::move (_ret) + " )" ;
1510
1527
}
1528
+
1529
+ template <typename Iter> match_group<Iter>::match_group(auto const & start_, auto const & end_, auto const & matched_)
1530
+ : start{ start_ }
1531
+ , end{ end_ }
1532
+ , matched{ matched_ }{}
1533
+ template <typename Iter> match_group<Iter>::match_group(){}
1534
+ template <typename Iter> match_return<Iter>::match_return(auto const & matched_, auto const & pos_)
1535
+ : matched{ matched_ }
1536
+ , pos{ pos_ }{}
1537
+ template <typename Iter> match_return<Iter>::match_return(){}
1511
1538
#line 30 "regex.h2"
1512
1539
// -----------------------------------------------------------------------
1513
1540
//
@@ -1903,6 +1930,12 @@ template<typename Func> [[nodiscard]] auto make_on_return(Func const& func) -> a
1903
1930
}
1904
1931
}
1905
1932
1933
+ parse_context_group_state::parse_context_group_state (auto const & cur_match_list_, auto const & alternate_match_lists_, auto const & modifiers_)
1934
+ : cur_match_list{ cur_match_list_ }
1935
+ , alternate_match_lists{ alternate_match_lists_ }
1936
+ , modifiers{ modifiers_ }{}
1937
+ parse_context_group_state::parse_context_group_state (){}
1938
+
1906
1939
#line 437 "regex.h2"
1907
1940
[[nodiscard]] auto parse_context_branch_reset_state::next () & -> int{
1908
1941
auto g {cur_group};
@@ -1933,6 +1966,13 @@ template<typename Func> [[nodiscard]] auto make_on_return(Func const& func) -> a
1933
1966
max_group = restart;
1934
1967
}
1935
1968
1969
+ parse_context_branch_reset_state::parse_context_branch_reset_state (auto const & is_active_, auto const & cur_group_, auto const & max_group_, auto const & from_)
1970
+ : is_active{ is_active_ }
1971
+ , cur_group{ cur_group_ }
1972
+ , max_group{ max_group_ }
1973
+ , from{ from_ }{}
1974
+ parse_context_branch_reset_state::parse_context_branch_reset_state (){}
1975
+
1936
1976
#line 485 "regex.h2"
1937
1977
parse_context::parse_context (cpp2::impl::in<std::string_view> r, auto const & e)
1938
1978
: regex{ r }
@@ -2328,6 +2368,11 @@ template<typename Func> [[nodiscard]] auto make_on_return(Func const& func) -> a
2328
2368
tabs = tabs.substr (0 , c * 2 );
2329
2369
}
2330
2370
2371
+ generation_function_context::generation_function_context (auto const & code_, auto const & tabs_)
2372
+ : code{ code_ }
2373
+ , tabs{ tabs_ }{}
2374
+ generation_function_context::generation_function_context (){}
2375
+
2331
2376
#line 882 "regex.h2"
2332
2377
[[nodiscard]] auto generation_context::match_parameters () const & -> std::string{return " r.pos, ctx" ; }
2333
2378
0 commit comments