1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:18:12 +00:00

LibGUI: Add match_case parameter to TextDocument::find_all()

This commit is contained in:
Itamar 2022-03-29 16:32:12 +03:00 committed by Andreas Kling
parent ab0b4f46f7
commit a12385dc4b
2 changed files with 3 additions and 3 deletions

View file

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