Unicode.unicharToUtf8

Converts a single character to UTF-8.

struct Unicode
static
int
unicharToUtf8
(
dchar c
,
string outbuf
)

Parameters

c dchar

a Unicode character code

outbuf string

output buffer, must have at least 6 bytes of space. If %NULL, the length will be computed and returned and nothing will be written to @outbuf.

Return: number of bytes written

Meta