utf8proc_encode_char

Encodes the codepoint as an UTF-8 string in the byte array pointed to by dst. This array must be at least 4 bytes long.

In case of success the number of bytes written is returned, and otherwise 0 is returned.

This function does not check whether codepoint is valid Unicode.

version(DerelictUTF8Proc_Static)extern
utf8proc_ssize_t
utf8proc_encode_char
(
utf8proc_int32_t codepoint
,
utf8proc_uint8_t* dst
)

Meta