appendCodePoint

Appends the specified code point value to this Appendable and returns this instance.

For basic (BMP) code points, appends a single Char value. For supplementary code points, appends two Char values representing the surrogate pair.

Since Kotlin

2.5

Parameters

value

The code point to append.

See also

Samples

import kotlin.text.unicode.*
import kotlin.test.*

fun main() { 
   //sampleStart 
   val builder: Appendable = StringBuilder()
builder.appendCodePoint('K'.toCodePoint()).appendCodePoint(CodePoint(0x1F60B))
println(builder.toString()) // K😋 
   //sampleEnd
}