summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Libraries/LibGUI/TextDocument.cpp4
-rw-r--r--Userland/Libraries/LibGUI/TextDocument.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibGUI/TextDocument.cpp b/Userland/Libraries/LibGUI/TextDocument.cpp
index 9d595bf4de..8466107f80 100644
--- a/Userland/Libraries/LibGUI/TextDocument.cpp
+++ b/Userland/Libraries/LibGUI/TextDocument.cpp
@@ -580,13 +580,13 @@ TextRange TextDocument::find_previous(StringView needle, const TextPosition& sta
return {};
}
-Vector<TextRange> TextDocument::find_all(StringView needle, bool regmatch)
+Vector<TextRange> TextDocument::find_all(StringView needle, bool regmatch, bool match_case)
{
Vector<TextRange> ranges;
TextPosition position;
for (;;) {
- auto range = find_next(needle, position, SearchShouldWrap::No, regmatch);
+ auto range = find_next(needle, position, SearchShouldWrap::No, regmatch, match_case);
if (!range.is_valid())
break;
ranges.append(range);
diff --git a/Userland/Libraries/LibGUI/TextDocument.h b/Userland/Libraries/LibGUI/TextDocument.h
index ee43a0cf2b..c574d4b350 100644
--- a/Userland/Libraries/LibGUI/TextDocument.h
+++ b/Userland/Libraries/LibGUI/TextDocument.h
@@ -89,7 +89,7 @@ public:
String text() const;
String text_in_range(const TextRange&) const;
- Vector<TextRange> find_all(StringView needle, bool regmatch = false);
+ Vector<TextRange> find_all(StringView needle, bool regmatch = false, bool match_case = true);
void update_regex_matches(StringView);
TextRange find_next(StringView, const TextPosition& start = {}, SearchShouldWrap = SearchShouldWrap::Yes, bool regmatch = false, bool match_case = true);