返回输入字符串的 Unicode 码位的动态数组。 此函数是 unicode_codepoints_to_string() 函数的反运算。
弃用的别名:to_utf8()
语法
unicode_codepoints_from_string(value)
详细了解语法约定。
参数
| 客户 | 类型 | 必需 | Description |
|---|---|---|---|
| value | string |
✔️ | 要转换的源字符串。 |
返回
返回由字符的 Unicode 码位组成的动态数组,这些字符组成提供给此函数的字符串。
请参阅 unicode_codepoints_to_string()。
示例
print arr = unicode_codepoints_from_string("קוסטו - Kusto")
输出
| arr |
|---|
| [9382, 9392, 9390, 9391, 9386] |
print arr = unicode_codepoints_from_string("קוסטו - Kusto")
输出
| arr |
|---|
| [1511, 1493, 1505, 1496, 1493, 32, 45, 32, 75, 117, 115, 116, 111] |
print str = unicode_codepoints_to_string(unicode_codepoints_from_string("Kusto"))
输出
| str |
|---|
| Kusto |