toChars
Converts the codepoint specified to a char array. If the codepoint is not supplementary, the method will return an array with one element otherwise it will return an array A with a high surrogate in A 0 and a low surrogate in A 1 .
Note that this function is unstable.
In the future it could be deprecated in favour of an overload that would accept a
CodePoint
type.