語言

AbstractStringBuilder.CodePointCount(Int32, Int32) 方法

定義

回傳該序列指定文字範圍內的 Unicode 碼點數。

[Android.Runtime.Register("codePointCount", "(II)I", "GetCodePointCount_IIHandler")]
public virtual int CodePointCount(int beginIndex, int endIndex);
[<Android.Runtime.Register("codePointCount", "(II)I", "GetCodePointCount_IIHandler")>]
abstract member CodePointCount : int * int -> int
override this.CodePointCount : int * int -> int

參數

beginIndex
Int32

索引指向文本範圍的第一個 char

endIndex
Int32

索引位於文字範圍的最後一個 char 之後。

傳回

指定文字範圍內的 Unicode 碼點數

屬性

備註

回傳該序列指定文字範圍內的 Unicode 碼點數。 文字範圍從指定的beginIndex開始,延伸至char索引 。endIndex - 1 因此,文字範圍的長度(以 s 為 char單位)為 endIndex-beginIndex。 此序列中的未配對代理各算一個編碼點。

Java 文件 java.lang.AbstractStringBuilder.codePointCount(int, int)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於