String.CodePointBefore(Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回指定索引前的字符(Unicode 码位)。
[Android.Runtime.Register("codePointBefore", "(I)I", "")]
public int CodePointBefore(int index);
[<Android.Runtime.Register("codePointBefore", "(I)I", "")>]
member this.CodePointBefore : int -> int
参数
- index
- Int32
应返回的代码点后面的索引
返回
给定索引前的 Unicode 代码点值。
- 属性
例外
如果 index length()
注解
返回指定索引前的字符(Unicode 码位)。 索引引用 char 值(Unicode 代码单位)和范围(从 1 / 到 CharSequence#length() length。
char如果位于(index - 1)低代理项范围(index - 2)中的值不是负值,并且char该值(index - 2)位于高代理项范围内,则返回代理项对的补充代码点值。
char如果值为index - 1未付的低代理项或高代理项,则返回代理项值。
在 1.5 中添加。
Java文档java.lang.String.codePointBefore(int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
另请参阅
- <xref:Java.Lang.Character.CodePointBefore(System.Char%5b%5d%2c+System.Int32%2c+System.Int32)>