pub fn unicode_script_from_iso15924(iso15924: u32) -> UnicodeScript
Expand description

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).

See Codes for the representation of names of scripts for details.


a Unicode script


the Unicode script for iso15924, or of UnicodeScript::InvalidCode if iso15924 is zero and UnicodeScript::Unknown if iso15924 is unknown.