@@ -2265,7 +2265,7 @@ extension AlternationBuilder {
2265
2265
}
2266
2266
// MARK: - Non-builder capture arity 0
2267
2267
2268
- public func capture< R: RegexProtocol , W> ( _ component: R ) -> Regex < ( W , Substring ) > where R. Match == W {
2268
+ public func capture< R: RegexProtocol , W> ( _ component: R ) -> Regex < ( W , W ) > where R. Match == W {
2269
2269
. init( node: . group( . capture, component. regex. root) )
2270
2270
}
2271
2271
@@ -2306,7 +2306,7 @@ public func tryCapture<R: RegexProtocol, W, NewCapture>(
2306
2306
2307
2307
public func capture< R: RegexProtocol , W> (
2308
2308
@RegexBuilder _ component: ( ) -> R
2309
- ) -> Regex < ( W , Substring ) > where R. Match == W {
2309
+ ) -> Regex < ( W , W ) > where R. Match == W {
2310
2310
. init( node: . group( . capture, component ( ) . regex. root) )
2311
2311
}
2312
2312
@@ -2347,7 +2347,7 @@ public func tryCapture<R: RegexProtocol, W, NewCapture>(
2347
2347
}
2348
2348
// MARK: - Non-builder capture arity 1
2349
2349
2350
- public func capture< R: RegexProtocol , W, C0> ( _ component: R ) -> Regex < ( W , Substring , C0 ) > where R. Match == ( W , C0 ) {
2350
+ public func capture< R: RegexProtocol , W, C0> ( _ component: R ) -> Regex < ( W , W , C0 ) > where R. Match == ( W , C0 ) {
2351
2351
. init( node: . group( . capture, component. regex. root) )
2352
2352
}
2353
2353
@@ -2388,7 +2388,7 @@ public func tryCapture<R: RegexProtocol, W, C0, NewCapture>(
2388
2388
2389
2389
public func capture< R: RegexProtocol , W, C0> (
2390
2390
@RegexBuilder _ component: ( ) -> R
2391
- ) -> Regex < ( W , Substring , C0 ) > where R. Match == ( W , C0 ) {
2391
+ ) -> Regex < ( W , W , C0 ) > where R. Match == ( W , C0 ) {
2392
2392
. init( node: . group( . capture, component ( ) . regex. root) )
2393
2393
}
2394
2394
@@ -2429,7 +2429,7 @@ public func tryCapture<R: RegexProtocol, W, C0, NewCapture>(
2429
2429
}
2430
2430
// MARK: - Non-builder capture arity 2
2431
2431
2432
- public func capture< R: RegexProtocol , W, C0, C1> ( _ component: R ) -> Regex < ( W , Substring , C0 , C1 ) > where R. Match == ( W , C0 , C1 ) {
2432
+ public func capture< R: RegexProtocol , W, C0, C1> ( _ component: R ) -> Regex < ( W , W , C0 , C1 ) > where R. Match == ( W , C0 , C1 ) {
2433
2433
. init( node: . group( . capture, component. regex. root) )
2434
2434
}
2435
2435
@@ -2470,7 +2470,7 @@ public func tryCapture<R: RegexProtocol, W, C0, C1, NewCapture>(
2470
2470
2471
2471
public func capture< R: RegexProtocol , W, C0, C1> (
2472
2472
@RegexBuilder _ component: ( ) -> R
2473
- ) -> Regex < ( W , Substring , C0 , C1 ) > where R. Match == ( W , C0 , C1 ) {
2473
+ ) -> Regex < ( W , W , C0 , C1 ) > where R. Match == ( W , C0 , C1 ) {
2474
2474
. init( node: . group( . capture, component ( ) . regex. root) )
2475
2475
}
2476
2476
@@ -2511,7 +2511,7 @@ public func tryCapture<R: RegexProtocol, W, C0, C1, NewCapture>(
2511
2511
}
2512
2512
// MARK: - Non-builder capture arity 3
2513
2513
2514
- public func capture< R: RegexProtocol , W, C0, C1, C2> ( _ component: R ) -> Regex < ( W , Substring , C0 , C1 , C2 ) > where R. Match == ( W , C0 , C1 , C2 ) {
2514
+ public func capture< R: RegexProtocol , W, C0, C1, C2> ( _ component: R ) -> Regex < ( W , W , C0 , C1 , C2 ) > where R. Match == ( W , C0 , C1 , C2 ) {
2515
2515
. init( node: . group( . capture, component. regex. root) )
2516
2516
}
2517
2517
@@ -2552,7 +2552,7 @@ public func tryCapture<R: RegexProtocol, W, C0, C1, C2, NewCapture>(
2552
2552
2553
2553
public func capture< R: RegexProtocol , W, C0, C1, C2> (
2554
2554
@RegexBuilder _ component: ( ) -> R
2555
- ) -> Regex < ( W , Substring , C0 , C1 , C2 ) > where R. Match == ( W , C0 , C1 , C2 ) {
2555
+ ) -> Regex < ( W , W , C0 , C1 , C2 ) > where R. Match == ( W , C0 , C1 , C2 ) {
2556
2556
. init( node: . group( . capture, component ( ) . regex. root) )
2557
2557
}
2558
2558
@@ -2593,7 +2593,7 @@ public func tryCapture<R: RegexProtocol, W, C0, C1, C2, NewCapture>(
2593
2593
}
2594
2594
// MARK: - Non-builder capture arity 4
2595
2595
2596
- public func capture< R: RegexProtocol , W, C0, C1, C2, C3> ( _ component: R ) -> Regex < ( W , Substring , C0 , C1 , C2 , C3 ) > where R. Match == ( W , C0 , C1 , C2 , C3 ) {
2596
+ public func capture< R: RegexProtocol , W, C0, C1, C2, C3> ( _ component: R ) -> Regex < ( W , W , C0 , C1 , C2 , C3 ) > where R. Match == ( W , C0 , C1 , C2 , C3 ) {
2597
2597
. init( node: . group( . capture, component. regex. root) )
2598
2598
}
2599
2599
@@ -2634,7 +2634,7 @@ public func tryCapture<R: RegexProtocol, W, C0, C1, C2, C3, NewCapture>(
2634
2634
2635
2635
public func capture< R: RegexProtocol , W, C0, C1, C2, C3> (
2636
2636
@RegexBuilder _ component: ( ) -> R
2637
- ) -> Regex < ( W , Substring , C0 , C1 , C2 , C3 ) > where R. Match == ( W , C0 , C1 , C2 , C3 ) {
2637
+ ) -> Regex < ( W , W , C0 , C1 , C2 , C3 ) > where R. Match == ( W , C0 , C1 , C2 , C3 ) {
2638
2638
. init( node: . group( . capture, component ( ) . regex. root) )
2639
2639
}
2640
2640
@@ -2675,7 +2675,7 @@ public func tryCapture<R: RegexProtocol, W, C0, C1, C2, C3, NewCapture>(
2675
2675
}
2676
2676
// MARK: - Non-builder capture arity 5
2677
2677
2678
- public func capture< R: RegexProtocol , W, C0, C1, C2, C3, C4> ( _ component: R ) -> Regex < ( W , Substring , C0 , C1 , C2 , C3 , C4 ) > where R. Match == ( W , C0 , C1 , C2 , C3 , C4 ) {
2678
+ public func capture< R: RegexProtocol , W, C0, C1, C2, C3, C4> ( _ component: R ) -> Regex < ( W , W , C0 , C1 , C2 , C3 , C4 ) > where R. Match == ( W , C0 , C1 , C2 , C3 , C4 ) {
2679
2679
. init( node: . group( . capture, component. regex. root) )
2680
2680
}
2681
2681
@@ -2716,7 +2716,7 @@ public func tryCapture<R: RegexProtocol, W, C0, C1, C2, C3, C4, NewCapture>(
2716
2716
2717
2717
public func capture< R: RegexProtocol , W, C0, C1, C2, C3, C4> (
2718
2718
@RegexBuilder _ component: ( ) -> R
2719
- ) -> Regex < ( W , Substring , C0 , C1 , C2 , C3 , C4 ) > where R. Match == ( W , C0 , C1 , C2 , C3 , C4 ) {
2719
+ ) -> Regex < ( W , W , C0 , C1 , C2 , C3 , C4 ) > where R. Match == ( W , C0 , C1 , C2 , C3 , C4 ) {
2720
2720
. init( node: . group( . capture, component ( ) . regex. root) )
2721
2721
}
2722
2722
@@ -2757,7 +2757,7 @@ public func tryCapture<R: RegexProtocol, W, C0, C1, C2, C3, C4, NewCapture>(
2757
2757
}
2758
2758
// MARK: - Non-builder capture arity 6
2759
2759
2760
- public func capture< R: RegexProtocol , W, C0, C1, C2, C3, C4, C5> ( _ component: R ) -> Regex < ( W , Substring , C0 , C1 , C2 , C3 , C4 , C5 ) > where R. Match == ( W , C0 , C1 , C2 , C3 , C4 , C5 ) {
2760
+ public func capture< R: RegexProtocol , W, C0, C1, C2, C3, C4, C5> ( _ component: R ) -> Regex < ( W , W , C0 , C1 , C2 , C3 , C4 , C5 ) > where R. Match == ( W , C0 , C1 , C2 , C3 , C4 , C5 ) {
2761
2761
. init( node: . group( . capture, component. regex. root) )
2762
2762
}
2763
2763
@@ -2798,7 +2798,7 @@ public func tryCapture<R: RegexProtocol, W, C0, C1, C2, C3, C4, C5, NewCapture>(
2798
2798
2799
2799
public func capture< R: RegexProtocol , W, C0, C1, C2, C3, C4, C5> (
2800
2800
@RegexBuilder _ component: ( ) -> R
2801
- ) -> Regex < ( W , Substring , C0 , C1 , C2 , C3 , C4 , C5 ) > where R. Match == ( W , C0 , C1 , C2 , C3 , C4 , C5 ) {
2801
+ ) -> Regex < ( W , W , C0 , C1 , C2 , C3 , C4 , C5 ) > where R. Match == ( W , C0 , C1 , C2 , C3 , C4 , C5 ) {
2802
2802
. init( node: . group( . capture, component ( ) . regex. root) )
2803
2803
}
2804
2804
@@ -2839,7 +2839,7 @@ public func tryCapture<R: RegexProtocol, W, C0, C1, C2, C3, C4, C5, NewCapture>(
2839
2839
}
2840
2840
// MARK: - Non-builder capture arity 7
2841
2841
2842
- public func capture< R: RegexProtocol , W, C0, C1, C2, C3, C4, C5, C6> ( _ component: R ) -> Regex < ( W , Substring , C0 , C1 , C2 , C3 , C4 , C5 , C6 ) > where R. Match == ( W , C0 , C1 , C2 , C3 , C4 , C5 , C6 ) {
2842
+ public func capture< R: RegexProtocol , W, C0, C1, C2, C3, C4, C5, C6> ( _ component: R ) -> Regex < ( W , W , C0 , C1 , C2 , C3 , C4 , C5 , C6 ) > where R. Match == ( W , C0 , C1 , C2 , C3 , C4 , C5 , C6 ) {
2843
2843
. init( node: . group( . capture, component. regex. root) )
2844
2844
}
2845
2845
@@ -2880,7 +2880,7 @@ public func tryCapture<R: RegexProtocol, W, C0, C1, C2, C3, C4, C5, C6, NewCaptu
2880
2880
2881
2881
public func capture< R: RegexProtocol , W, C0, C1, C2, C3, C4, C5, C6> (
2882
2882
@RegexBuilder _ component: ( ) -> R
2883
- ) -> Regex < ( W , Substring , C0 , C1 , C2 , C3 , C4 , C5 , C6 ) > where R. Match == ( W , C0 , C1 , C2 , C3 , C4 , C5 , C6 ) {
2883
+ ) -> Regex < ( W , W , C0 , C1 , C2 , C3 , C4 , C5 , C6 ) > where R. Match == ( W , C0 , C1 , C2 , C3 , C4 , C5 , C6 ) {
2884
2884
. init( node: . group( . capture, component ( ) . regex. root) )
2885
2885
}
2886
2886
@@ -2921,7 +2921,7 @@ public func tryCapture<R: RegexProtocol, W, C0, C1, C2, C3, C4, C5, C6, NewCaptu
2921
2921
}
2922
2922
// MARK: - Non-builder capture arity 8
2923
2923
2924
- public func capture< R: RegexProtocol , W, C0, C1, C2, C3, C4, C5, C6, C7> ( _ component: R ) -> Regex < ( W , Substring , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 ) > where R. Match == ( W , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 ) {
2924
+ public func capture< R: RegexProtocol , W, C0, C1, C2, C3, C4, C5, C6, C7> ( _ component: R ) -> Regex < ( W , W , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 ) > where R. Match == ( W , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 ) {
2925
2925
. init( node: . group( . capture, component. regex. root) )
2926
2926
}
2927
2927
@@ -2962,7 +2962,7 @@ public func tryCapture<R: RegexProtocol, W, C0, C1, C2, C3, C4, C5, C6, C7, NewC
2962
2962
2963
2963
public func capture< R: RegexProtocol , W, C0, C1, C2, C3, C4, C5, C6, C7> (
2964
2964
@RegexBuilder _ component: ( ) -> R
2965
- ) -> Regex < ( W , Substring , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 ) > where R. Match == ( W , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 ) {
2965
+ ) -> Regex < ( W , W , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 ) > where R. Match == ( W , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 ) {
2966
2966
. init( node: . group( . capture, component ( ) . regex. root) )
2967
2967
}
2968
2968
@@ -3003,7 +3003,7 @@ public func tryCapture<R: RegexProtocol, W, C0, C1, C2, C3, C4, C5, C6, C7, NewC
3003
3003
}
3004
3004
// MARK: - Non-builder capture arity 9
3005
3005
3006
- public func capture< R: RegexProtocol , W, C0, C1, C2, C3, C4, C5, C6, C7, C8> ( _ component: R ) -> Regex < ( W , Substring , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 ) > where R. Match == ( W , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 ) {
3006
+ public func capture< R: RegexProtocol , W, C0, C1, C2, C3, C4, C5, C6, C7, C8> ( _ component: R ) -> Regex < ( W , W , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 ) > where R. Match == ( W , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 ) {
3007
3007
. init( node: . group( . capture, component. regex. root) )
3008
3008
}
3009
3009
@@ -3044,7 +3044,7 @@ public func tryCapture<R: RegexProtocol, W, C0, C1, C2, C3, C4, C5, C6, C7, C8,
3044
3044
3045
3045
public func capture< R: RegexProtocol , W, C0, C1, C2, C3, C4, C5, C6, C7, C8> (
3046
3046
@RegexBuilder _ component: ( ) -> R
3047
- ) -> Regex < ( W , Substring , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 ) > where R. Match == ( W , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 ) {
3047
+ ) -> Regex < ( W , W , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 ) > where R. Match == ( W , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 ) {
3048
3048
. init( node: . group( . capture, component ( ) . regex. root) )
3049
3049
}
3050
3050
0 commit comments