Fragmenter
public protocol Fragmenter: MatchBehavior
A pattern type that can breakdown a string into matches, sub-matches, and unmatched fragments
-
fragments(of:)
Default implementationbreakdown the input string into an array of fragments
Default Implementation
Declaration
Swift
func fragments(of: String) -> [SubstringFragment]
-
fragments(of:configuredBy:)
Default implementationbreakdown the input string to a specific configuration
Default Implementation
Declaration
Swift
func fragments(of: String, configuredBy: SearchConfig) -> [SubstringFragment]