to_utf8


Description:

public int to_utf8 (string? outbuf)

Converts a single character to UTF-8.

Parameters:

outbuf

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.

c

a Unicode character code

Returns:

number of bytes written