benilla-re systems structs docs

CSimpleEditBox::ByteSpanForChars

function · ui · primitive

Address
0x77bb30 · 335 bytes, up to 0x77bc7e
Meaning
Counts the bytes a cursor moves over for a count of characters, skipping escapes
Confidence
verified, proof one
Finding
ui/editbox#a-negative-letter-limit-hangs
Test
ui::editbox_markup_has_no_inline_texture_escape, 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: A negative letter limit hangs in ui: EditBox

A negative letter limit is never met: the trim loop deletes backward from the end until the text is empty, and an empty text still has more letters than the limit, so the next insertion of any text never returns. That includes SetText("") on a box with text; on an empty box SetText returns early, since the texts are equal.

The derivation is in the doc.

Callers 7

Callees 0

None by a direct call or jump.

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