共用方式為


StringBuilder.CodePointCount(Int32, Int32) 方法

定義

計算和end之間的 start Unicode 字碼點數目。

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

參數

beginIndex
Int32
endIndex
Int32

傳回

屬性

例外狀況

如果 start 是負數或大於 endend 大於 ,則為 Length()

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

另請參閱

  • Character
  • <xref:Java.Lang.Character.CodePointCount(System.Char%5b%5d%2c+System.Int32%2c+System.Int32)>