public native Char(value as CodeUnit)
Converts one UTF-16 code unit to a Char.
Klyn applies this conversion implicitly where a Char is expected. A surrogate code unit is rejected with ValueException, because it does not represent a complete Unicode scalar on its own.
| Parameter | Description |
|---|---|
value | UTF-16 code unit to convert. |
assert Char(`K`) == 'K'