benilla-re systems structs docs

LineBreakClass

function · font · primitive

Address
0x5c7780 · 684 bytes, up to 0x5c7a2b
Signature
int __fastcall (uint32_t cur, uint32_t next)
Meaning
Returns whether a line may break between two characters
Confidence
verified, proof one
Finding
font/markup#break-opportunities
Test
font::line_break_class_ascii_difftest, font::line_break_class_cjk_difftest

Finding: Break opportunities in font: markup and line breaks

0x5c7780(cur, next) says whether a line may break between two characters (1 yes). It tests, in order: cur == 0 gives 0; cur of -, : or / gives 1; next == 0xffffffff (end) gives 1; a space in cur gives 0; a space in next gives 1; cur in the opener set gives 0; next in the closer set gives 0; next in the East Asian ranges gives 1; everything else 0.

The derivation is in the doc.

Callers 1

Callees 1

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