@@ -54,6 +54,7 @@ extension _BuiltinRegexComponent {
5454// Note: Quantifiers are currently gyb'd.
5555
5656/// Specifies how much to attempt to match when using a quantifier.
57+ @available ( SwiftStdlib 5 . 7 , * )
5758public struct QuantificationBehavior {
5859 internal enum Kind {
5960 case eagerly
@@ -121,6 +122,7 @@ extension QuantificationBehavior {
121122 }
122123}
123124
125+ @available ( SwiftStdlib 5 . 7 , * )
124126public struct OneOrMore < Output> : _BuiltinRegexComponent {
125127 public var regex : Regex < Output >
126128
@@ -132,6 +134,7 @@ public struct OneOrMore<Output>: _BuiltinRegexComponent {
132134 // Variadics.swift.
133135}
134136
137+ @available ( SwiftStdlib 5 . 7 , * )
135138public struct ZeroOrMore < Output> : _BuiltinRegexComponent {
136139 public var regex : Regex < Output >
137140
@@ -143,6 +146,7 @@ public struct ZeroOrMore<Output>: _BuiltinRegexComponent {
143146 // Variadics.swift.
144147}
145148
149+ @available ( SwiftStdlib 5 . 7 , * )
146150public struct Optionally < Output> : _BuiltinRegexComponent {
147151 public var regex : Regex < Output >
148152
@@ -154,6 +158,7 @@ public struct Optionally<Output>: _BuiltinRegexComponent {
154158 // Variadics.swift.
155159}
156160
161+ @available ( SwiftStdlib 5 . 7 , * )
157162public struct Repeat < Output> : _BuiltinRegexComponent {
158163 public var regex : Regex < Output >
159164
@@ -179,6 +184,7 @@ public struct Repeat<Output>: _BuiltinRegexComponent {
179184// ) -> R where R.Match == (W, C...)
180185// }
181186
187+ @available ( SwiftStdlib 5 . 7 , * )
182188@resultBuilder
183189public struct AlternationBuilder {
184190 @_disfavoredOverload
@@ -201,6 +207,7 @@ public struct AlternationBuilder {
201207 }
202208}
203209
210+ @available ( SwiftStdlib 5 . 7 , * )
204211public struct ChoiceOf < Output> : _BuiltinRegexComponent {
205212 public var regex : Regex < Output >
206213
@@ -215,6 +222,7 @@ public struct ChoiceOf<Output>: _BuiltinRegexComponent {
215222
216223// MARK: - Capture
217224
225+ @available ( SwiftStdlib 5 . 7 , * )
218226public struct Capture < Output> : _BuiltinRegexComponent {
219227 public var regex : Regex < Output >
220228
@@ -225,6 +233,7 @@ public struct Capture<Output>: _BuiltinRegexComponent {
225233 // Note: Public initializers are currently gyb'd. See Variadics.swift.
226234}
227235
236+ @available ( SwiftStdlib 5 . 7 , * )
228237public struct TryCapture < Output> : _BuiltinRegexComponent {
229238 public var regex : Regex < Output >
230239
@@ -239,6 +248,7 @@ public struct TryCapture<Output>: _BuiltinRegexComponent {
239248
240249/// An atomic group, i.e. opens a local backtracking scope which, upon successful exit,
241250/// discards any remaining backtracking points from within the scope
251+ @available ( SwiftStdlib 5 . 7 , * )
242252public struct Local < Output> : _BuiltinRegexComponent {
243253 public var regex : Regex < Output >
244254
@@ -249,6 +259,7 @@ public struct Local<Output>: _BuiltinRegexComponent {
249259
250260// MARK: - Backreference
251261
262+ @available ( SwiftStdlib 5 . 7 , * )
252263public struct Reference < Capture> : RegexComponent {
253264 let id = ReferenceID ( )
254265
0 commit comments