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

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.

主站蜘蛛池模板: 依安县| 青浦区| 卓资县| 呈贡县| 兴业县| 贞丰县| 四平市| 镇原县| 沙田区| 杭锦后旗| 昌乐县| 东莞市| 聂荣县| 丘北县| 饶阳县| 宝坻区| 阿克苏市| 偏关县| 金堂县| 湄潭县| 株洲县| 枞阳县| 田林县| 西乡县| 罗江县| 浦县| 都匀市| 康马县| 六枝特区| 江源县| 昆山市| 平果县| 济阳县| 蓝田县| 华容县| 玉田县| 兴业县| 肇东市| 定襄县| 八宿县| 平遥县|