Sdílet prostřednictvím


AbstractStringBuilder.GetChars(Int32, Int32, Char[], Int32) Method

Definition

Characters are copied from this sequence into the destination character array 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

Parameters

srcBegin
Int32

start copying at this offset.

srcEnd
Int32

stop copying at this offset.

dst
Char[]

the array to copy the data into.

dstBegin
Int32

offset into dst.

Attributes

Remarks

Characters are copied from this sequence into the destination character array dst. The first character to be copied is at index srcBegin; the last character to be copied is at index srcEnd-1. The total number of characters to be copied is srcEnd-srcBegin. The characters are copied into the subarray of dst starting at index dstBegin and ending at index:

{@code
            dstbegin + (srcEnd-srcBegin) - 1
            }

Java documentation for java.lang.AbstractStringBuilder.getChars(int, int, char[], int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to