klyn.String.fromCodePoint
method
public static fromCodePoint(value as UInt) as String
Description

Builds an immutable string containing an unsigned Unicode scalar value.

Parameters
ParameterDescription
valueUnsigned Unicode code point.
Returns

A one-character String, including U+0000 and supplementary values.

Throws
  • ValueException if the value exceeds 0x10FFFF or is an isolated UTF-16 surrogate in 0xD800..0xDFFF.
Example
assert String.fromCodePoint(0x03C0u) == "\u03C0"