Added in API level 1
GetChars
interface GetChars : CharSequence
| android.text.GetChars |
Please implement this interface if your CharSequence has a getChars() method like the one in String that is faster than calling charAt() multiple times.
Summary
| Public methods | |
|---|---|
| abstract Unit |
Exactly like String. |
Public methods
getChars
Added in API level 1
abstract fun getChars(
start: Int,
end: Int,
dest: CharArray,
destoff: Int
): Unit
Exactly like String.getChars(): copy chars start through end - 1 from this CharSequence into dest beginning at offset destoff.
| Parameters | |
|---|---|
srcBegin |
start copying at this offset. |
srcEnd |
stop copying at this offset. |
dst |
the array to copy the data into. |
dstBegin |
offset into dst. |
| Exceptions | |
|---|---|
java.lang.IndexOutOfBoundsException |
if any of the following is true:
|
java.lang.NullPointerException |
if dst is null |