klyn.Char.utf16SequenceLength
property
public readonly property utf16SequenceLength as UInt:
Description

Returns the number of UTF-16 code units required for this Char.

Returns

1 for BMP values and 2 for supplementary values.

Example
assert 'K'.utf16SequenceLength == 1u
assert '😀'.utf16SequenceLength == 2u