AbstractStringBuilder.GetChars(Int32, Int32, Char[], Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
字元會從此序列複製到目標字元陣列 dst中。
[Android.Runtime.Register("getChars", "(II[CI)V", "GetGetChars_IIarrayCIHandler")]
public virtual void GetChars(int srcBegin, int srcEnd, char[]? dst, int dstBegin);
[<Android.Runtime.Register("getChars", "(II[CI)V", "GetGetChars_IIarrayCIHandler")>]
abstract member GetChars : int * int * char[] * int -> unit
override this.GetChars : int * int * char[] * int -> unit
參數
- srcBegin
- Int32
從這個偏移開始抄寫。
- srcEnd
- Int32
停止在這個偏移處抄襲。
- dst
- Char[]
將資料複製到的陣列。
- dstBegin
- Int32
偏移為 dst。
實作
- 屬性
備註
字元會從此序列複製到目標字元陣列 dst中。 第一個被複製的字元位於索引 srcBegin;最後一個被複製的字元位於索引 srcEnd-1。 要複製的字元總數為 srcEnd-srcBegin。 字元被複製到子 dst 陣列中,從索引 dstBegin 開始,結束於索引:
{@code
dstbegin + (srcEnd-srcBegin) - 1
}
Java 文件 java.lang.AbstractStringBuilder.getChars(int, int, char[], int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。