Companion

object Companion

Functions

Link copied to clipboard
fun fromIso15924(iso15924: <Error class: unknown class>): UnicodeScript

Looks up the Unicode script for @iso15924. ISO 15924 assigns four-letter codes to scripts. For example, the code for Arabic is 'Arab'. This function accepts four letter codes encoded as a @guint32 in a big-endian fashion. That is, the code expected for Arabic is 0x41726162 (0x41 is ASCII code for 'A', 0x72 is ASCII code for 'r', etc).

Link copied to clipboard
fun fromNativeValue(nativeValue: <Error class: unknown class>): UnicodeScript
Link copied to clipboard
fun toIso15924(script: UnicodeScript): <Error class: unknown class>

Looks up the ISO 15924 code for @script. ISO 15924 assigns four-letter codes to scripts. For example, the code for Arabic is 'Arab'. The four letter codes are encoded as a @guint32 by this function in a big-endian fashion. That is, the code returned for Arabic is 0x41726162 (0x41 is ASCII code for 'A', 0x72 is ASCII code for 'r', etc).