encodedLength

Returns the number of code units required to encode a single code point.

The input to this function MUST be a valid code point. This is enforced by the function's in-contract.

The type of the output cannot be deduced. Therefore, it is necessary to explicitly specify the encoding as a template parameter.

size_t
encodedLength
(
E
)
(
dchar c
)

Parameters

c dchar

the code point to be encoded

Meta

Standards

Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250, WINDOWS-1251, WINDOWS-1252