GObject.Unichar

GObject.Unichar represents the gunichar type in the GObject type system. You can pass this class object to methods taking a GObject.Type.

A gunichar value is an integer numeric value between 0 and 4294967295, that is, an unsigned 32 bit value, which is taken to represent a single Unicode code point. In gjs, it is represented as a JS string.

Note that because JS strings are in the UTF-16 encoding, a single Unicode code point may require two JS characters, if it falls outside the Basic Multilingual Plane.

Creating a new object with new GObject.Unichar returns an empty String object.

Calling GObject.Unichar(arg) will coerce the argument to a string.