Function

Camelutf8_ucs2

Declaration [src]

gchar*
camel_utf8_ucs2 (
  const gchar* ptr
)

Description [src]

Convert a UTF-8 string into a ucs2 one. The ucs string will be in network byte order, and terminated with a 16-bit NULL.

Parameters

ptr

Type: const gchar*

A UTF-8 string to convert.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: gchar*

The converted string. Free it with g_free(), when no longer needed.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.