benilla-re systems structs docs

ExpandGenderToken

function · ui · primitive

Address
0x508180 · 277 bytes, up to 0x508294
Signature
uint32_t __fastcall (char *out, uint32_t size)
Meaning
Appends the male or female form of a dollar g token by the active player's gender
Confidence
verified, proof one
Finding
ui/spelltokens#gendered-text

Finding: Gendered text in ui: Spell description tokens

$gMale:Female; picks the first form for a male and the second otherwise, using the active player's gender (fields+0x7a), not the described unit's. With no active player the token fails and the output holds a literal $ followed by the text after the letter, spaces kept. Otherwise every space after the letter is skipped before anything is searched for, in every branch. Each form loses its leading and trailing spaces and keeps interior ones. A token without a colon, or without a ; after it, prints nothing and leaves the cursor after those spaces, so the text that follows is copied without them.

The derivation is in the doc.

Callers 1

Callees 5

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