mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibGUI: Add match_case parameter to TextDocument::find_all()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user