Function

GLibutf8_get_char

Declaration [src]

gunichar
g_utf8_get_char (
  const gchar* p
)

Description [src]

Converts a sequence of bytes encoded as UTF-8 to a Unicode character.

If p does not point to a valid UTF-8 encoded character, results are undefined. If you are not sure that the bytes are complete valid Unicode characters, you should use g_utf8_get_char_validated() instead.

Parameters

p const gchar*
 

A pointer to Unicode character encoded as UTF-8

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

Return value

Returns: gunichar
 

The resulting character.