如何使用Unicode十六进制值(UTF-16)在Swift中表达字符串 [英] How to express Strings in Swift using Unicode hexadecimal values (UTF-16)

查看:623
本文介绍了如何使用Unicode十六进制值(UTF-16)在Swift中表达字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用十六进制值在Swift中编写一个Unicode字符串。我阅读了关于String和Character的文档,我知道我可以直接在字符串中使用特殊的Unicode字符,如下所示:

I want to write a Unicode string using hexadecimal values in Swift. I have read the documentation for String and Character so I know that I can use special Unicode characters directly in strings like the following:

这篇关于如何使用Unicode十六进制值(UTF-16)在Swift中表达字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆