public toCodeUnitArray() as CodeUnit[]:
Encodes this text as UTF-16 code units.
Supplementary Unicode scalars produce a high/low surrogate pair, so the returned array may contain more items than size.
UTF-16 representation of this string.
values = "A😀B".toCodeUnitArray() assert values.size == 4 assert values[1] == `\uD83D` assert values[2] == `\uDE00`