官术网_书友最值得收藏!

Directly access unicode scalars of characters

Swift 4 allows direct access to unicode scalars associated with characters:

let character: Character = “A”
let unicodeScalar = character.unicodeScalars

Done! Easy, isn’t it? Before you would have to convert the character to a String first and then try to access unicode scalar.

主站蜘蛛池模板: 黎城县| 陆河县| 长宁县| 聂拉木县| 德化县| 邮箱| 河源市| 耒阳市| 达拉特旗| 噶尔县| 无锡市| 宝鸡市| 鹤岗市| 泰安市| 墨江| 沾化县| 博乐市| 顺昌县| 宜君县| 吴堡县| 防城港市| 桃园市| 通辽市| 涞水县| 沈丘县| 武城县| 特克斯县| 宜城市| 甘肃省| 永昌县| 泾源县| 延川县| 河池市| 洞口县| 隆安县| 博爱县| 多伦县| 昌平区| 岳池县| 林口县| 通渭县|