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:
parent
ab0b4f46f7
commit
a12385dc4b
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue