Protocol_StringProcessing5.9.0
CustomConsumingRegexComponent
- iOS
- 16.0+
- macOS
- 13.0+
- tvOS
- 16.0+
- watchOS
- 9.0+
protocol CustomConsumingRegexComponent : RegexComponent
Supertypes
protocol RegexComponent
A type that represents a regular expression.
Requirements
func consuming(String, startingAt: String.Index, in: Range<String.Index>
) throws -> (upperBound: String.Index, output: Self.RegexOutput)? Process the input string within the specified bounds, beginning at the given index, and return the end position (upper bound) of the match and the produced output.