RSDRegExValidatorObject
public struct RSDRegExValidatorObject : RSDCodableRegExMatchValidator
Undocumented
-
A localized custom regular expression that can be used to validate a string.
Declaration
Swift
public let regExPattern: String -
Undocumented
Declaration
Swift
public init(regExPattern: String) throws
-
The
regExPatternis used to represent the regex.Declaration
Swift
public var rawValue: String -
Required initializer for conformance to
RawRepresentable. This will returnnilif the reg ex is not valid.Declaration
Swift
public init?(rawValue: String)
-
Declaration
Swift
public static func ==(lhs: RSDRegExValidatorObject, rhs: RSDRegExValidatorObject) -> Bool
-
Required initializer for conformance to
Decodable.Throws
DecodingErrorif the value is not aStringor if theregExPatternthrows an exception when creating anNSRegularExpressionusing this pattern.Declaration
Swift
public init(from decoder: Decoder) throwsParameters
decoderThe decoder to use to decode this value. This is expected to have a single value container.
View on GitHub
RSDRegExValidatorObject Structure Reference