Created
June 30, 2016 01:33
-
-
Save jasdev/0dd7fa02b28e9128bb1e90dfdf4a1e20 to your computer and use it in GitHub Desktop.
CharacterSet StringLiteralConvertible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension CharacterSet: StringLiteralConvertible, ExtendedGraphemeClusterLiteralConvertible { | |
public init(stringLiteral value: String) { | |
self.init(charactersIn: value) | |
} | |
public init(extendedGraphemeClusterLiteral value: ExtendedGraphemeClusterType) { | |
self.init(charactersIn: value) | |
} | |
public init(unicodeScalarLiteral value: UnicodeScalarType) { | |
self.init(charactersIn: value) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment