UI module

Unit

enumextensionexperimentalsince 0.31.0Source

What a movement or deletion covers.

Example↗
edit: Text_Edit;
defer free_text_edit(*edit);
set_contents(*edit, "one two");
assert(offset_by(*edit, 0, .WORD, 1) == 3);
assert(offset_by(*edit, 0, .DOCUMENT, 1) == 7);

Members

CHARACTER
one grapheme cluster
WORD
LINE
to the start or end of the line
DOCUMENT

See also