Generator

class Generator

Surrogate generation support. Charset implementations may use instances of this class to handle the details of generating UTF-16 surrogate pairs.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

If the previous generation operation detected an error, return the object describing that error.

Link copied to clipboard
fun generate(uc: Int, len: Int, dst: CharBuffer): Int
fun generate(uc: Int, len: Int, da: CharArray, dp: Int, dl: Int): Int

Generates one or two UTF-16 characters to represent the given UCS-4 character.