set

operator fun set(index: Int, value: Char)(source)

Replaces one UTF-16 code unit without changing the content length.

Parameters

index

zero-based position to replace.

value

replacement code unit; surrogate pairs are not validated.

Throws

if index is negative or is at least length.