Ord - 脚本和图表函数
Ord() 用于返回输入字符串第一个字符的 Unicode 代码点数。
语法:
Ord(text)
返回数据类型: 整数
示例: Chart expression
Ord('A') | Returns the integer 65. |
Ord('Ab') | Returns the integer 65. |
示例: Load script
//Guqin (Chinese: 古琴) – 7-stringed zithers T2: Load *, ord(Chinese) as OrdUnicode, ord(Western) as OrdASCII; Load * inline [ Chinese, Western 古琴, Guqin ];
Result:
Chinese | Western | OrdASCII | OrdUnicode |
---|
古琴 | Guqin | 71 | 21476 |