Last active
May 15, 2020 13:08
-
-
Save keehun/4a2b981168d2b592d7653de197b2eb87 to your computer and use it in GitHub Desktop.
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
let numbers: NSCharacterSet = NSCharacterSet.decimalDigits as NSCharacterSet | |
let character: UTF32Char = UTF32Char(48) /// U+0030 is "0" (48 Decimal = 0x30 Hex) | |
numbers.longCharacterIsMember(character) /// returns `true` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment