IReplaceable.GetChars(Int32, Int32, Char[], Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將此物件的字元複製到目標字元陣列中。
[Android.Runtime.Register("getChars", "(II[CI)V", "GetGetChars_IIarrayCIHandler:Android.Icu.Text.IReplaceableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)]
public void GetChars(int srcStart, int srcLimit, char[]? dst, int dstStart);
[<Android.Runtime.Register("getChars", "(II[CI)V", "GetGetChars_IIarrayCIHandler:Android.Icu.Text.IReplaceableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)>]
abstract member GetChars : int * int * char[] * int -> unit
參數
- srcStart
- Int32
起始索引以供複製,包含; 0
<= start <= limit。
- srcLimit
- Int32
複製的尾部索引,排他性; start <= limit <= length()。
- dst
- Char[]
目的地陣列。
- dstStart
- Int32
目的陣列的起始偏移量。
- 屬性
備註
將此物件的字元複製到目標字元陣列中。 第一個要複製的字元位於索引 srcStart;最後一個要複製的字元位於索引 srcLimit-1 (因此要複製的字元總數為 srcLimit-srcStart)。 字元被複製到子 dst 陣列中,從索引 dstStart 開始,結束於索引 dstStart + (srcLimit-srcStart) - 1。
Java 文件 android.icu.text.Replaceable.getChars(int, int, char[], int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。