Add pdfio

This commit is contained in:
Krzosa Karol
2024-07-08 10:38:35 +02:00
parent 22828c9d23
commit 37982e0448
3 changed files with 170 additions and 27 deletions

View File

@@ -17,9 +17,9 @@ WORK_FUNCTION(SearchForMatchesWork) {
int64_t index = 0;
while (Seek(buffer, find, &index, SeekFlag_IgnoreCase)) {
String found = {buffer.data + index, find.len};
if (search_thread_stop_searching != SearchThreadStopSearching) break;
Matches.bounded_add(found);
buffer = buffer.skip(index + find.len);
if (search_thread_stop_searching != SearchThreadStopSearching) break;
}
}