GLib.unichar_to_utf8 (original) (raw)
Function
GLibunichar_to_utf8
Declaration [src]
gint
g_unichar_to_utf8 (
gunichar c,
gchar* outbuf
)
Description [src]
Converts a single character to UTF-8.
Parameters
c
Type: gunichar
A Unicode character code.
outbuf
Type: gchar*
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
.
The argument will be set by the function. |
---|
The argument can be NULL. |
The value is a NUL terminated UTF-8 string. |
Return value
Type: gint
Number of bytes written.