← Standard library

Utf8ByteWidth

public fn Utf8ByteWidth(uint32 cp) : int32
import Utf8ByteWidth from Wax;

Returns the UTF-8 byte width of a scalar. Invalid scalars use the replacement character width of three bytes.

String.wax:1153

This declaration has no public members of its own.