Unicode.unicharToUtf8

Converts a single character to UTF-8.

struct Unicode
static
int
unicharToUtf8
(
dchar c
,
out char[] outbuf
)

Parameters

c dchar

a Unicode character code

outbuf char[]

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 Value

Type: int

number of bytes written