How do I check to see if a Character is in a Character Set?
In Objective-C, I could write:
[[NSCharacterSet lowercaseLetterCharacterSet] characterIsMember:c]
Where “c” is a variable of type char.
In Swift, I tried to write:
Where “c” is of type Character, but I received an error saying that the function was expecting a parameter of type “Unicode.Scalar”.
Powered by WPeMatico