WINDOWS-1251, WINDOWS-1252
Parameters
c | the code point to be encoded |
CodeUnits!(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().
WINDOWS-1251, WINDOWS-1252
c | the code point to be encoded |