public static fromCodePoint(value as Int) as String:
Builds a string from one Unicode scalar value.
Values in the Basic Multilingual Plane produce one UTF-16 code unit. Supplementary values produce the required high and low surrogate pair. Surrogate code points are rejected because they are not Unicode scalar values on their own.
| Parameter | Description |
|---|---|
value | Unicode scalar value in 0x0001..0x10FFFF. |
A string containing the represented Unicode character.
assert String.fromCodePoint(0x03C0) == "\u03C0" assert String.fromCodePoint(0x1F600) == "\U0001F600"