@@ -54,6 +54,7 @@ extension _BuiltinRegexComponent {
54
54
// Note: Quantifiers are currently gyb'd.
55
55
56
56
/// Specifies how much to attempt to match when using a quantifier.
57
+ @available ( SwiftStdlib 5 . 7 , * )
57
58
public struct QuantificationBehavior {
58
59
internal enum Kind {
59
60
case eagerly
@@ -121,6 +122,7 @@ extension QuantificationBehavior {
121
122
}
122
123
}
123
124
125
+ @available ( SwiftStdlib 5 . 7 , * )
124
126
public struct OneOrMore < Output> : _BuiltinRegexComponent {
125
127
public var regex : Regex < Output >
126
128
@@ -132,6 +134,7 @@ public struct OneOrMore<Output>: _BuiltinRegexComponent {
132
134
// Variadics.swift.
133
135
}
134
136
137
+ @available ( SwiftStdlib 5 . 7 , * )
135
138
public struct ZeroOrMore < Output> : _BuiltinRegexComponent {
136
139
public var regex : Regex < Output >
137
140
@@ -143,6 +146,7 @@ public struct ZeroOrMore<Output>: _BuiltinRegexComponent {
143
146
// Variadics.swift.
144
147
}
145
148
149
+ @available ( SwiftStdlib 5 . 7 , * )
146
150
public struct Optionally < Output> : _BuiltinRegexComponent {
147
151
public var regex : Regex < Output >
148
152
@@ -154,6 +158,7 @@ public struct Optionally<Output>: _BuiltinRegexComponent {
154
158
// Variadics.swift.
155
159
}
156
160
161
+ @available ( SwiftStdlib 5 . 7 , * )
157
162
public struct Repeat < Output> : _BuiltinRegexComponent {
158
163
public var regex : Regex < Output >
159
164
@@ -179,6 +184,7 @@ public struct Repeat<Output>: _BuiltinRegexComponent {
179
184
// ) -> R where R.Match == (W, C...)
180
185
// }
181
186
187
+ @available ( SwiftStdlib 5 . 7 , * )
182
188
@resultBuilder
183
189
public struct AlternationBuilder {
184
190
@_disfavoredOverload
@@ -201,6 +207,7 @@ public struct AlternationBuilder {
201
207
}
202
208
}
203
209
210
+ @available ( SwiftStdlib 5 . 7 , * )
204
211
public struct ChoiceOf < Output> : _BuiltinRegexComponent {
205
212
public var regex : Regex < Output >
206
213
@@ -215,6 +222,7 @@ public struct ChoiceOf<Output>: _BuiltinRegexComponent {
215
222
216
223
// MARK: - Capture
217
224
225
+ @available ( SwiftStdlib 5 . 7 , * )
218
226
public struct Capture < Output> : _BuiltinRegexComponent {
219
227
public var regex : Regex < Output >
220
228
@@ -225,6 +233,7 @@ public struct Capture<Output>: _BuiltinRegexComponent {
225
233
// Note: Public initializers are currently gyb'd. See Variadics.swift.
226
234
}
227
235
236
+ @available ( SwiftStdlib 5 . 7 , * )
228
237
public struct TryCapture < Output> : _BuiltinRegexComponent {
229
238
public var regex : Regex < Output >
230
239
@@ -239,6 +248,7 @@ public struct TryCapture<Output>: _BuiltinRegexComponent {
239
248
240
249
/// An atomic group, i.e. opens a local backtracking scope which, upon successful exit,
241
250
/// discards any remaining backtracking points from within the scope
251
+ @available ( SwiftStdlib 5 . 7 , * )
242
252
public struct Local < Output> : _BuiltinRegexComponent {
243
253
public var regex : Regex < Output >
244
254
@@ -249,6 +259,7 @@ public struct Local<Output>: _BuiltinRegexComponent {
249
259
250
260
// MARK: - Backreference
251
261
262
+ @available ( SwiftStdlib 5 . 7 , * )
252
263
public struct Reference < Capture> : RegexComponent {
253
264
let id = ReferenceID ( )
254
265
0 commit comments