mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibGUI: Add number_of_words() to TextEditors
Returns the total number of words in a document.
This commit is contained in:
committed by
Andreas Kling
parent
aa06012249
commit
46043b71cb
@@ -126,6 +126,7 @@ public:
|
||||
bool write_to_file_and_close(int fd);
|
||||
bool has_selection() const { return m_selection.is_valid(); }
|
||||
String selected_text() const;
|
||||
size_t number_of_words() const;
|
||||
size_t number_of_selected_words() const;
|
||||
void set_selection(TextRange const&);
|
||||
void clear_selection();
|
||||
|
||||
Reference in New Issue
Block a user