UCharacter.OffsetByCodePoints 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| OffsetByCodePoints(ICharSequence, Int32, Int32) |
等效于 |
| OffsetByCodePoints(String, Int32, Int32) |
等效于 |
| OffsetByCodePoints(Char[], Int32, Int32, Int32, Int32) |
等效于
|
OffsetByCodePoints(ICharSequence, Int32, Int32)
等效于 Character#offsetByCodePoints(CharSequence, int, int) 该方法,为方便起见。
[Android.Runtime.Register("offsetByCodePoints", "(Ljava/lang/CharSequence;II)I", "", ApiSince=24)]
public static int OffsetByCodePoints(Java.Lang.ICharSequence? text, int index, int codePointOffset);
[<Android.Runtime.Register("offsetByCodePoints", "(Ljava/lang/CharSequence;II)I", "", ApiSince=24)>]
static member OffsetByCodePoints : Java.Lang.ICharSequence * int * int -> int
参数
- text
- ICharSequence
要检查的字符
- index
- Int32
要调整的索引
- codePointOffset
- Int32
要偏移索引的代码点数
返回
调整后的索引
- 特性
注解
等效于 Character#offsetByCodePoints(CharSequence, int, int) 该方法,为方便起见。 按代码点偏移量调整字符索引。
Java文档android.icu.lang.UCharacter.offsetByCodePoints(java.lang.CharSequence, int, int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
OffsetByCodePoints(String, Int32, Int32)
等效于 Character#offsetByCodePoints(CharSequence, int, int) 该方法,为方便起见。
public static int OffsetByCodePoints(string? text, int index, int codePointOffset);
static member OffsetByCodePoints : string * int * int -> int
参数
- text
- String
要检查的字符
- index
- Int32
要调整的索引
- codePointOffset
- Int32
要偏移索引的代码点数
返回
调整后的索引
注解
等效于 Character#offsetByCodePoints(CharSequence, int, int) 该方法,为方便起见。 按代码点偏移量调整字符索引。
Java文档android.icu.lang.UCharacter.offsetByCodePoints(java.lang.CharSequence, int, int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
OffsetByCodePoints(Char[], Int32, Int32, Int32, Int32)
等效于
Character#offsetByCodePoints(char[], int, int, int, int) 方法,为方便起见。
[Android.Runtime.Register("offsetByCodePoints", "([CIIII)I", "", ApiSince=24)]
public static int OffsetByCodePoints(char[]? text, int start, int count, int index, int codePointOffset);
[<Android.Runtime.Register("offsetByCodePoints", "([CIIII)I", "", ApiSince=24)>]
static member OffsetByCodePoints : char[] * int * int * int * int -> int
参数
- text
- Char[]
要检查的字符
- start
- Int32
要检查的范围的开始
- count
- Int32
要检查的范围的长度
- index
- Int32
要调整的索引
- codePointOffset
- Int32
要偏移索引的代码点数
返回
调整后的索引
- 特性
注解
等效于 Character#offsetByCodePoints(char[], int, int, int, int) 该方法,为方便起见。 按代码点偏移量调整字符索引。
Java文档android.icu.lang.UCharacter.offsetByCodePoints(char[], int, int, int, int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。