1
Fork 0
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:
Kyle Lanmon 2022-11-02 23:23:00 -05:00 committed by Andrew Kaster
parent 31290c8527
commit 9aa00a6d70
2 changed files with 14 additions and 0 deletions

View file

@ -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;