codeUnits

fnCodeUnits!(E) codeUnits(E)(dchar c)

Returns a foreachable struct which can bidirectionally iterate over all code units in a 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 type in the template parameter.

Supersedes: This function supersedes std.utf.encode().

Standards

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

WINDOWS-1251, WINDOWS-1252

Parameters

cthe code point to be encoded