benilla-re systems structs docs

IsInNameCharset

function · unassigned · primitive

Address
0x6c9dd0 · 43 bytes, up to 0x6c9dfa
Signature
bool __fastcall (uint16_t unit, uint32_t set)
Meaning
Returns whether a UTF-16 unit is in name charset 1 to 4; any other set takes none
Confidence
verified, proof one
Finding
glue/enterworld#name-charsets
Test
glue::name_charset_units_difftest

Finding: Name charsets in glue: entering and leaving the world

A name is held to the charset of its first unit, the primary or secondary of 0x6c9a70(locale). A region 0x86c9e0 of 1 to 5 picks its pair at 0x86c9e4: (1, 1), (2, 4), (1, 1), (3, 1), (3, 1). Otherwise the primary is the locale's entry at 0x86ca0c, 1, 2, 1, 1, 3, 3, 1, 0, with entry 0 for a zero entry or an index outside 0 to 7, and the secondary is 4 for koKR (index 1), else 1. 0x6c9dd0(unit, set) tests a UTF-16 unit against a set; a set not listed takes none:

setunits
1IsLatin1Letter (0x6c9c60)
2the 2,350 syllables at 0x86ca30 (0x6c9d50)
3U+4E00 to U+9FFF, U+3400 to U+4DFF, U+F900 to U+FAFF (0x6c9d80)
4A to Z, a to z (0x6c9ce0)

The derivation is in the doc.

Callers 1

Callees 4

Calls and jumps by a bare address, from tables/calls.tsv.