diff options
author | thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> | 2021-02-21 19:01:26 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-22 09:21:30 +0100 |
commit | 3e987eba2b39b137a78aafbfc6340eb375f219a6 (patch) | |
tree | 73a3c186e6df5e5c8ee8adba8e86cd264ed55936 /Userland/Libraries/LibGUI/TextDocument.h | |
parent | b4c0314f1dae98fa5d206a097e29a30950d2624f (diff) | |
download | serenity-3e987eba2b39b137a78aafbfc6340eb375f219a6.zip |
TextEditor+LibGUI: Add case matching and wrap around optionality
Adds simple ASCII case matching and wrap around toggles to
TextEditor's find/replace widget and reorganizes its layout
Diffstat (limited to 'Userland/Libraries/LibGUI/TextDocument.h')
-rw-r--r-- | Userland/Libraries/LibGUI/TextDocument.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/TextDocument.h b/Userland/Libraries/LibGUI/TextDocument.h index ba00d34e0d..d559373f9b 100644 --- a/Userland/Libraries/LibGUI/TextDocument.h +++ b/Userland/Libraries/LibGUI/TextDocument.h @@ -109,8 +109,8 @@ public: Vector<TextRange> find_all(const StringView& needle, bool regmatch = false); void update_regex_matches(const StringView&); - TextRange find_next(const StringView&, const TextPosition& start = {}, SearchShouldWrap = SearchShouldWrap::Yes, bool regmatch = false); - TextRange find_previous(const StringView&, const TextPosition& start = {}, SearchShouldWrap = SearchShouldWrap::Yes, bool regmatch = false); + TextRange find_next(const StringView&, const TextPosition& start = {}, SearchShouldWrap = SearchShouldWrap::Yes, bool regmatch = false, bool match_case = true); + TextRange find_previous(const StringView&, const TextPosition& start = {}, SearchShouldWrap = SearchShouldWrap::Yes, bool regmatch = false, bool match_case = true); TextPosition next_position_after(const TextPosition&, SearchShouldWrap = SearchShouldWrap::Yes) const; TextPosition previous_position_before(const TextPosition&, SearchShouldWrap = SearchShouldWrap::Yes) const; |