Function
GLibucs4_to_utf16
Declaration
gunichar2*
g_ucs4_to_utf16 (
const gunichar* str,
glong len,
glong* items_read,
glong* items_written,
GError** error
)
Description
Convert a string from UCS-4 to UTF-16. A 0 character will be added to the result after the converted text.
Parameters
str |
const gunichar* |
A UCS-4 encoded string. |
|
The data is owned by the caller of the function. | |
len |
glong |
The maximum length (number of characters) of |
|
items_read |
glong* |
Location to store number of
bytes read, or |
|
The argument will be set by the function. | |
The argument can be NULL . | |
items_written |
glong* |
Location to store number
of #gunichar2 written, or |
|
The argument will be set by the function. | |
The argument can be NULL . | |
error |
GError ** |
The return location for a GError* , or NULL . |