MatchIterator
public protocol MatchIterator: MatchBehavior
An iterator type to traverse the string fragments, both match and unmatched elements
-
iterate(over:using:)
Default implementationiterates over the given string using the given closure
Default Implementation
Declaration
Swift
@discardableResult func iterate(over: String, using: (RangeFragment) -> Bool) -> MatchCount
-
iterates over the given string using the given closure with a specific configuration
Declaration
Swift
@discardableResult func iterate(over: String, configuredBy: SearchConfig, using: (RangeFragment) -> Bool) -> MatchCount