klyn.String.size
property
public readonly native property size as ULong
Description

Returns the number of Unicode scalar values in the string.

Supplementary characters count once although their UTF-16 storage uses two code units.

Returns

The number of values returned by scalar indexing.

Example
assert "A😀B".size == 3u