NSRegularExpression
extension NSRegularExpression
Use extensions to run NSDataDetector
on the observations.
-
Undocumented
Declaration
Swift
open func numberOfMatches(in observations: [SAPMLTextObservation], options: NSRegularExpression.MatchingOptions = []) -> Int
-
Undocumented
Declaration
Swift
open func matches(in observations: [SAPMLTextObservation], options: NSRegularExpression.MatchingOptions = []) -> [NSTextCheckingResult]
-
Undocumented
Declaration
Swift
open func firstMatch(in observations: [SAPMLTextObservation], options: NSRegularExpression.MatchingOptions = []) -> NSTextCheckingResult?
-
Undocumented
Declaration
Swift
open func rangeOfFirstMatch(in observations: [SAPMLTextObservation], options: NSRegularExpression.MatchingOptions = []) -> NSRange
-
Undocumented
Declaration
Swift
open func enumerateMatches(in observations: [SAPMLTextObservation], options: NSRegularExpression.MatchingOptions = [], using block: (NSTextCheckingResult?, NSRegularExpression.MatchingFlags, UnsafeMutablePointer<ObjCBool>) -> Void)