toUTF16

fnwchar[] toUTF16(return scope wchar[] buf, dchar c) @safe pure nothrow @nogc
No documentation available for this declaration.
fnwstring toUTF16(const scope char[] s) @trusted pure

Encodes string s into UTF-16 and returns the encoded string. toUTF16z() is suitable for calling the 'W' functions in the Win32 API that take an LPWSTR or LPCWSTR argument.

fnwstring toUTF16(return scope wstring s) @safe pure nothrow

ditto

fnwstring toUTF16(const scope dchar[] s) @trusted pure nothrow

ditto