|
8 | 8 |
|
9 | 9 | namespace ctre { |
10 | 10 |
|
11 | | -template <typename Pattern> constexpr auto find_captures(Pattern) noexcept { |
| 11 | +CTRE_EXPORT template <typename Pattern> constexpr auto find_captures(Pattern) noexcept { |
12 | 12 | return find_captures(ctll::list<Pattern>(), ctll::list<>()); |
13 | 13 | } |
14 | 14 |
|
15 | | -template <typename... Output> constexpr auto find_captures(ctll::list<>, ctll::list<Output...> output) noexcept { |
| 15 | +CTRE_EXPORT template <typename... Output> constexpr auto find_captures(ctll::list<>, ctll::list<Output...> output) noexcept { |
16 | 16 | return output; |
17 | 17 | } |
18 | 18 |
|
19 | 19 |
|
20 | 20 |
|
21 | | -template <auto... String, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<string<String...>, Tail...>, Output output) noexcept { |
| 21 | +CTRE_EXPORT template <auto... String, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<string<String...>, Tail...>, Output output) noexcept { |
22 | 22 | return find_captures(ctll::list<Tail...>(), output); |
23 | 23 | } |
24 | 24 |
|
25 | | -template <typename... Options, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<select<Options...>, Tail...>, Output output) noexcept { |
| 25 | +CTRE_EXPORT template <typename... Options, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<select<Options...>, Tail...>, Output output) noexcept { |
26 | 26 | return find_captures(ctll::list<Options..., Tail...>(), output); |
27 | 27 | } |
28 | 28 |
|
29 | | -template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<optional<Content...>, Tail...>, Output output) noexcept { |
| 29 | +CTRE_EXPORT template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<optional<Content...>, Tail...>, Output output) noexcept { |
30 | 30 | return find_captures(ctll::list<Content..., Tail...>(), output); |
31 | 31 | } |
32 | 32 |
|
33 | | -template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<lazy_optional<Content...>, Tail...>, Output output) noexcept { |
| 33 | +CTRE_EXPORT template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<lazy_optional<Content...>, Tail...>, Output output) noexcept { |
34 | 34 | return find_captures(ctll::list<Content..., Tail...>(), output); |
35 | 35 | } |
36 | 36 |
|
37 | | -template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<sequence<Content...>, Tail...>, Output output) noexcept { |
| 37 | +CTRE_EXPORT template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<sequence<Content...>, Tail...>, Output output) noexcept { |
38 | 38 | return find_captures(ctll::list<Content..., Tail...>(), output); |
39 | 39 | } |
40 | 40 |
|
41 | | -template <typename... Tail, typename Output> constexpr auto find_captures(ctll::list<empty, Tail...>, Output output) noexcept { |
| 41 | +CTRE_EXPORT template <typename... Tail, typename Output> constexpr auto find_captures(ctll::list<empty, Tail...>, Output output) noexcept { |
42 | 42 | return find_captures(ctll::list<Tail...>(), output); |
43 | 43 | } |
44 | 44 |
|
45 | 45 |
|
46 | | -template <typename... Tail, typename Output> constexpr auto find_captures(ctll::list<assert_subject_begin, Tail...>, Output output) noexcept { |
| 46 | +CTRE_EXPORT template <typename... Tail, typename Output> constexpr auto find_captures(ctll::list<assert_subject_begin, Tail...>, Output output) noexcept { |
47 | 47 | return find_captures(ctll::list<Tail...>(), output); |
48 | 48 | } |
49 | 49 |
|
50 | 50 |
|
51 | | -template <typename... Tail, typename Output> constexpr auto find_captures(ctll::list<assert_subject_end, Tail...>, Output output) noexcept { |
| 51 | +CTRE_EXPORT template <typename... Tail, typename Output> constexpr auto find_captures(ctll::list<assert_subject_end, Tail...>, Output output) noexcept { |
52 | 52 | return find_captures(ctll::list<Tail...>(), output); |
53 | 53 | } |
54 | 54 |
|
55 | 55 |
|
56 | 56 | // , typename = std::enable_if_t<(MatchesCharacter<CharacterLike>::template value<char>) |
57 | | -template <typename CharacterLike, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<CharacterLike, Tail...>, Output output) noexcept { |
| 57 | +CTRE_EXPORT template <typename CharacterLike, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<CharacterLike, Tail...>, Output output) noexcept { |
58 | 58 | return find_captures(ctll::list<Tail...>(), output); |
59 | 59 | } |
60 | 60 |
|
61 | 61 |
|
62 | | -template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<plus<Content...>, Tail...>, Output output) noexcept { |
| 62 | +CTRE_EXPORT template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<plus<Content...>, Tail...>, Output output) noexcept { |
63 | 63 | return find_captures(ctll::list<Content..., Tail...>(), output); |
64 | 64 | } |
65 | 65 |
|
66 | | -template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<star<Content...>, Tail...>, Output output) noexcept { |
| 66 | +CTRE_EXPORT template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<star<Content...>, Tail...>, Output output) noexcept { |
67 | 67 | return find_captures(ctll::list<Content..., Tail...>(), output); |
68 | 68 | } |
69 | 69 |
|
70 | | -template <size_t A, size_t B, typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<repeat<A,B,Content...>, Tail...>, Output output) noexcept { |
| 70 | +CTRE_EXPORT template <size_t A, size_t B, typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<repeat<A,B,Content...>, Tail...>, Output output) noexcept { |
71 | 71 | return find_captures(ctll::list<Content..., Tail...>(), output); |
72 | 72 | } |
73 | 73 |
|
74 | 74 |
|
75 | | -template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<lazy_plus<Content...>, Tail...>, Output output) noexcept { |
| 75 | +CTRE_EXPORT template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<lazy_plus<Content...>, Tail...>, Output output) noexcept { |
76 | 76 | return find_captures(ctll::list<Content..., Tail...>(), output); |
77 | 77 | } |
78 | 78 |
|
79 | | -template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<lazy_star<Content...>, Tail...>, Output output) noexcept { |
| 79 | +CTRE_EXPORT template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<lazy_star<Content...>, Tail...>, Output output) noexcept { |
80 | 80 | return find_captures(ctll::list<Content..., Tail...>(), output); |
81 | 81 | } |
82 | 82 |
|
83 | | -template <size_t A, size_t B, typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<lazy_repeat<A,B,Content...>, Tail...>, Output output) noexcept { |
| 83 | +CTRE_EXPORT template <size_t A, size_t B, typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<lazy_repeat<A,B,Content...>, Tail...>, Output output) noexcept { |
84 | 84 | return find_captures(ctll::list<Content..., Tail...>(), output); |
85 | 85 | } |
86 | 86 |
|
87 | 87 |
|
88 | | -template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<possessive_plus<Content...>, Tail...>, Output output) noexcept { |
| 88 | +CTRE_EXPORT template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<possessive_plus<Content...>, Tail...>, Output output) noexcept { |
89 | 89 | return find_captures(ctll::list<Content..., Tail...>(), output); |
90 | 90 | } |
91 | 91 |
|
92 | | -template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<possessive_star<Content...>, Tail...>, Output output) noexcept { |
| 92 | +CTRE_EXPORT template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<possessive_star<Content...>, Tail...>, Output output) noexcept { |
93 | 93 | return find_captures(ctll::list<Content..., Tail...>(), output); |
94 | 94 | } |
95 | 95 |
|
96 | | -template <size_t A, size_t B, typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<possessive_repeat<A,B,Content...>, Tail...>, Output output) noexcept { |
| 96 | +CTRE_EXPORT template <size_t A, size_t B, typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<possessive_repeat<A,B,Content...>, Tail...>, Output output) noexcept { |
97 | 97 | return find_captures(ctll::list<Content..., Tail...>(), output); |
98 | 98 | } |
99 | 99 |
|
100 | 100 |
|
101 | 101 |
|
102 | | -template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<lookahead_positive<Content...>, Tail...>, Output output) noexcept { |
| 102 | +CTRE_EXPORT template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<lookahead_positive<Content...>, Tail...>, Output output) noexcept { |
103 | 103 | return find_captures(ctll::list<Content..., Tail...>(), output); |
104 | 104 | } |
105 | 105 |
|
106 | 106 |
|
107 | | -template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<lookahead_negative<Content...>, Tail...>, Output output) noexcept { |
| 107 | +CTRE_EXPORT template <typename... Content, typename... Tail, typename Output> constexpr auto find_captures(ctll::list<lookahead_negative<Content...>, Tail...>, Output output) noexcept { |
108 | 108 | return find_captures(ctll::list<Content..., Tail...>(), output); |
109 | 109 | } |
110 | 110 |
|
111 | 111 |
|
112 | 112 |
|
113 | 113 |
|
114 | | -template <size_t Id, typename... Content, typename... Tail, typename... Output> constexpr auto find_captures(ctll::list<capture<Id,Content...>, Tail...>, ctll::list<Output...>) noexcept { |
| 114 | +CTRE_EXPORT template <size_t Id, typename... Content, typename... Tail, typename... Output> constexpr auto find_captures(ctll::list<capture<Id,Content...>, Tail...>, ctll::list<Output...>) noexcept { |
115 | 115 | return find_captures(ctll::list<Content..., Tail...>(), ctll::list<Output..., captured_content<Id>>()); |
116 | 116 | } |
117 | 117 |
|
118 | 118 |
|
119 | | -template <size_t Id, typename Name, typename... Content, typename... Tail, typename... Output> constexpr auto find_captures(ctll::list<capture_with_name<Id,Name,Content...>, Tail...>, ctll::list<Output...>) noexcept { |
| 119 | +CTRE_EXPORT template <size_t Id, typename Name, typename... Content, typename... Tail, typename... Output> constexpr auto find_captures(ctll::list<capture_with_name<Id,Name,Content...>, Tail...>, ctll::list<Output...>) noexcept { |
120 | 120 | return find_captures(ctll::list<Content..., Tail...>(), ctll::list<Output..., captured_content<Id, Name>>()); |
121 | 121 | } |
122 | 122 |
|
123 | | - |
124 | | - |
125 | 123 | } |
126 | 124 |
|
127 | 125 | #endif |
0 commit comments