Character.CodePointAt 方法

定义

重载

名称 说明
CodePointAt(ICharSequence, Int32)

返回位于给定索引处的代码 CharSequence点。

CodePointAt(Char[], Int32)

返回数组给定索引处的代码 char 点。

CodePointAt(String, Int32)

返回位于给定索引处的代码 CharSequence点。

CodePointAt(Char[], Int32, Int32)

返回数组的给定索引处的代码char点,其中只能使用小于limit的数组元素index

CodePointAt(ICharSequence, Int32)

返回位于给定索引处的代码 CharSequence点。

[Android.Runtime.Register("codePointAt", "(Ljava/lang/CharSequence;I)I", "")]
public static int CodePointAt(Java.Lang.ICharSequence seq, int index);
[<Android.Runtime.Register("codePointAt", "(Ljava/lang/CharSequence;I)I", "")>]
static member CodePointAt : Java.Lang.ICharSequence * int -> int

参数

seq
ICharSequence

值序列 char (Unicode 代码单元)

index
Int32

要转换的值(Unicode 代码单位)seq的索引char

返回

给定索引处的 Unicode 代码点

属性

例外

如果为 .,则为seqnull

如果为index负数或大于或等于长度,seq

注解

返回位于给定索引处的代码 CharSequence点。 char如果给定索引处CharSequence的值位于高代理项范围内,则以下索引小于CharSequence长度,并且char以下索引处的值位于低代理项范围内,则返回与此代理项对对应的补充代码点。 否则, char 返回给定索引处的值。

在 1.5 中添加。

Java文档java.lang.Character.codePointAt(java.lang.CharSequence, int)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

CodePointAt(Char[], Int32)

返回数组给定索引处的代码 char 点。

[Android.Runtime.Register("codePointAt", "([CI)I", "")]
public static int CodePointAt(char[]? a, int index);
[<Android.Runtime.Register("codePointAt", "([CI)I", "")>]
static member CodePointAt : char[] * int -> int

参数

a
Char[]

数组char

index
Int32

要转换的数组中的值(Unicode 代码单位)的char索引char

返回

给定索引处的 Unicode 代码点

属性

例外

如果为 .,则为seqnull

如果为index负数或大于或等于长度,seq

注解

返回数组给定索引处的代码 char 点。 char如果数组中char给定索引处的值位于高代理项范围内,则以下索引小于数组的char长度,并且char以下索引处的值位于低代理项范围内,则返回与此代理项对对应的补充代码点。 否则, char 返回给定索引处的值。

在 1.5 中添加。

Java文档java.lang.Character.codePointAt(char[], int)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

CodePointAt(String, Int32)

返回位于给定索引处的代码 CharSequence点。

public static int CodePointAt(string seq, int index);
static member CodePointAt : string * int -> int

参数

seq
String

值序列 char (Unicode 代码单元)

index
Int32

要转换的值(Unicode 代码单位)seq的索引char

返回

给定索引处的 Unicode 代码点

注解

返回位于给定索引处的代码 CharSequence点。 char如果给定索引处CharSequence的值位于高代理项范围内,则以下索引小于CharSequence长度,并且char以下索引处的值位于低代理项范围内,则返回与此代理项对对应的补充代码点。 否则, char 返回给定索引处的值。

在 1.5 中添加。

Java文档java.lang.Character.codePointAt(java.lang.CharSequence, int)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

CodePointAt(Char[], Int32, Int32)

返回数组的给定索引处的代码char点,其中只能使用小于limit的数组元素index

[Android.Runtime.Register("codePointAt", "([CII)I", "")]
public static int CodePointAt(char[]? a, int index, int limit);
[<Android.Runtime.Register("codePointAt", "([CII)I", "")>]
static member CodePointAt : char[] * int * int -> int

参数

a
Char[]

数组char

index
Int32

要转换的数组中的值(Unicode 代码单位)的char索引char

limit
Int32

可在数组中使用的最后一个数组元素之后的 char 索引

返回

给定索引处的 Unicode 代码点

属性

例外

如果为 .,则为seqnull

如果index index >= limitlimit 或大于limit长度seq

注解

返回数组的给定索引处的代码char点,其中只能使用小于limit的数组元素indexchar如果数组中char给定索引处的值位于高代理项范围内,则以下索引小于limitchar该索引,并且以下索引处的值位于低代理项范围内,则返回与此代理项对对应的补充代码点。 否则, char 返回给定索引处的值。

在 1.5 中添加。

Java文档java.lang.Character.codePointAt(char[], int, int)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于