StringBuffer.GetChars(Int32, Int32, Char[], Int32) 方法

定义

将请求的字符序列复制到 char[] 从以下位置 idx开始传递的字符序列。

[Android.Runtime.Register("getChars", "(II[CI)V", "")]
public override void GetChars(int srcBegin, int srcEnd, char[]? dst, int dstBegin);
[<Android.Runtime.Register("getChars", "(II[CI)V", "")>]
override this.GetChars : int * int * char[] * int -> unit

参数

srcBegin
Int32

非独占源开始索引。

srcEnd
Int32

独占源结束索引。

dst
Char[]

目标字符数组。

dstBegin
Int32

放置复制字符的目标索引。

属性

例外

如果start 、、end > length()start > endindex end - start > buffer.length - index

注解

适用于 . 的 java.lang.StringBuffer.getChars(int, int, char[], int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于