File tree 2 files changed +3
-0
lines changed
Sources/_StringProcessing
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ extension BidirectionalCollection where SubSequence == Substring {
19
19
/// - Returns: The first match of `regex` in the collection, or `nil` if
20
20
/// there isn't a match.
21
21
@available ( SwiftStdlib 5 . 7 , * )
22
+ @inlinable
22
23
public func firstMatch< Output> (
23
24
of r: some RegexComponent < Output >
24
25
) -> Regex < Output > . Match ? {
Original file line number Diff line number Diff line change @@ -303,6 +303,7 @@ extension BidirectionalCollection where SubSequence == Substring {
303
303
/// - Parameter regex: The regular expression to match.
304
304
/// - Returns: The match, if one is found. If there is no match, or a
305
305
/// transformation in `regex` throws an error, this method returns `nil`.
306
+ @inlinable
306
307
public func wholeMatch< R: RegexComponent > (
307
308
of regex: R
308
309
) -> Regex < R . RegexOutput > . Match ? {
@@ -314,6 +315,7 @@ extension BidirectionalCollection where SubSequence == Substring {
314
315
/// - Parameter regex: The regular expression to match.
315
316
/// - Returns: The match, if one is found. If there is no match, or a
316
317
/// transformation in `regex` throws an error, this method returns `nil`.
318
+ @inlinable
317
319
public func prefixMatch< R: RegexComponent > (
318
320
of regex: R
319
321
) -> Regex < R . RegexOutput > . Match ? {
You can’t perform that action at this time.
0 commit comments