benilla-re systems structs docs

GxuDetermineQuotedCode

function · unassigned · primitive

Address
0x5c2810 · 737 bytes, up to 0x5c2af0
Signature
uint32_t __fastcall (void *arg1, uint32_t *length, int unused, uint32_t flags, uint32_t *value)
Meaning
Reads one markup token and returns its class
Confidence
verified, proof one
Name from
the community database (idb)
Finding
font/markup#markup-tokens
Test
font::decode_quoted_code_difftest

Finding: Markup tokens in font: markup and line breaks

0x5c2810 reads one token at the cursor (text in ecx, &length in edx, an unused stack argument, the flags and &value) and returns its class:

classtoken
0|cAARRGGBB colour
1|r restore
2newline: CR, LF, CRLF or |n
3||, an escaped pipe
4|H to the closing |h, a link
5|h alone, a link end
6a literal character, or a code that is malformed or gated off

Four flag bits switch codes off: 0x100 the colour and restore codes, 0x200 the |n newline, 0x400 the link codes, 0x800 every pipe code (a | then is a literal). The token's byte length is written to *length and its character to *value. A colour has length 10 and its value is the colour with 0xff forced into the top byte (the first hex pair is discarded).

The derivation is in the doc.

Callers 11

Callees 2

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