Initializerswift 6.0.3Foundation
init(coder:)
required convenience init?(coder aDecoder: NSCoder)
required convenience init?(coder aDecoder: NSCoder)
s10Foundation19NSRegularExpressionC5coderACSgAA7NSCoderC_tcfc
What are these?88H6E
import Foundation
class NSRegularExpression
class NSCoder
The NSCoder
abstract class declares the interface used by concrete subclasses to transfer objects and other values between memory and some other format. This capability provides the basis for archiving (where objects and data items are stored on disk) and distribution (where objects and data items are copied between different processes or threads). The concrete subclasses provided by Foundation for these purposes are NSKeyedArchiver
and NSKeyedUnarchiver
. Concrete subclasses of NSCoder
are referred to in general as coder classes, and instances of these classes as coder objects (or simply coders). A coder object that can only encode values is referred to as an encoder object, and one that can only decode values as a decoder object.
init(pattern: String, options: NSRegularExpression.Options = []) throws
class var supportsSecureCoding: Bool { get }
class func escapedPattern(for string: String) -> String
class func escapedTemplate(for string: String) -> String
var numberOfCaptureGroups: Int { get }
var options: NSRegularExpression.Options { get }
var pattern: String { get }
override func copy() -> Any
func copy(with zone: NSZone? = nil) -> Any
func encode(with aCoder: NSCoder)
func enumerateMatches(in string: String, options: NSRegularExpression.MatchingOptions = [], range: NSRange, using block: @escaping (NSTextCheckingResult?, NSRegularExpression.MatchingFlags, UnsafeMutablePointer<ObjCBool>) -> Void)
func firstMatch(in string: String, options: NSRegularExpression.MatchingOptions = [], range: NSRange) -> NSTextCheckingResult?
override func isEqual(_ object: Any?) -> Bool
func matches(in string: String, options: NSRegularExpression.MatchingOptions = [], range: NSRange) -> [NSTextCheckingResult]
func numberOfMatches(in string: String, options: NSRegularExpression.MatchingOptions = [], range: NSRange) -> Int
func rangeOfFirstMatch(in string: String, options: NSRegularExpression.MatchingOptions = [], range: NSRange) -> NSRange
func replaceMatches(in string: NSMutableString, options: NSRegularExpression.MatchingOptions = [], range: NSRange, withTemplate templ: String) -> Int
func replacementString(for result: NSTextCheckingResult, in string: String, offset: Int, template templ: String) -> String
func stringByReplacingMatches(in string: String, options: NSRegularExpression.MatchingOptions = [], range: NSRange, withTemplate templ: String) -> String
struct MatchingFlags
struct MatchingOptions
struct Options