CSimpleEditBox::RebuildTokenClasses
function · ui · primitive
- Address
0x77ba90· 160 bytes, up to0x77bb2f- Signature
void __thiscall (CSimpleEditBox *this)- Meaning
- Rebuilds the per-byte token class array of the text with every escape enabled
- Confidence
- verified, proof one
- Finding
- ui/editboxmarkup#which-escapes-are-on
- Test
ui::editbox_markup_class_array,ui::editbox_markup_has_no_inline_texture_escape,ui::editbox_markup_insert_refusal_range,ui::editbox_markup_reachable_cursor_indices,ui::editbox_markup_step_consumes_whole_characters,ui::editbox_markup_step_law_hangs_on_a_trailing_skip_class
Finding: Which escapes are on in ui: EditBox markup
The decoder takes a flag word: 0x100 turns off |c and |r, 0x200 |n, 0x400 |H and |h, 0x800
all of them. A font string builds it from its own flags (0x2000, 0x4000, 0x8000, 0x0080 give those four),
and no code of the font string or the edit box sets the first, third or fourth, so every font string of this build parses |c, |r, |H, |h and
||. Only |n varies: the box sets it off for a single-line box (flag 0x4000) and on for a multi-line
one. The box's own class array is built with no flag, so it always reads |n as a line break.
The derivation is in the doc.
Callers 1
Callees 1
- GxuDetermineQuotedCode unassigned
Calls and jumps by a bare address, from tables/calls.tsv.