Native code execution also requires a variety of supplementary data to describe how the code needs to be bound into a JVM and how to catch exceptions, for example, so that the code can be executed.
执行本地代码还需要各种补充数据,用以描述如何将代码绑定到JVM以及如何捕获异常(比如),从而执行代码。
Counting code units using either CODEUNITS16 or CODEUNITS32 gives the same answer, unless supplementary characters or a surrogate pair is involved.
使用CODEUNITS16或CODEUNITS32计算代码单元得到的结果是相同的,除非使用了增补字符和代理对。
When supplementary characters are involved, a supplementary is counted as two UTF-16 code units using CODEUNITS16, or one UTF-32 code unit using CODEUNITS32.
使用增补字符时,对于一个增补字符,使用 CODEUNITS16 计算是两个 UTF-16 代码单元,而使用 CODEUNITS32 计算则是一个 UTF-32 代码单元。
应用推荐