mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +00:00
TextEditor: Add utility to keep a range of text within a line
This commit is contained in:
parent
31290c8527
commit
9aa00a6d70
2 changed files with 14 additions and 0 deletions
|
@ -179,6 +179,7 @@ public:
|
|||
void truncate(TextDocument&, size_t length);
|
||||
void clear(TextDocument&);
|
||||
void remove_range(TextDocument&, size_t start, size_t length);
|
||||
void keep_range(TextDocument&, size_t start_index, size_t end_index);
|
||||
|
||||
size_t first_non_whitespace_column() const;
|
||||
Optional<size_t> last_non_whitespace_column() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue