[][src]Type Definition irssi_sys::gunichar2

type gunichar2 = guint16;

gunichar2:

A type which can hold any UTF-16 code pointUTF-16 also has so called surrogate pairs to encode characters beyond the BMP as pairs of 16bit numbers. Surrogate pairs cannot be stored in a single gunichar2 field, but all GLib functions accepting gunichar2 arrays will correctly interpret surrogate pairs..

To print/scan values of this type to/from text you need to convert to/from UTF-8, using g_utf16_to_utf8()/g_utf8_to_utf16().

To print/scan values of this type as integer, use %G_GINT16_MODIFIER and/or %G_GUINT16_FORMAT.