- Make original buffer use a disk backed mapping to save memory.
- rearrange api function headers for search etc.
- fix bugs with iterators.
- support uint64_t for all byte and line offsets to allow for much larger files to be opened.
- and more minor bug fixes.
This commit is contained in:
2026-08-04 07:48:26 +01:00
parent 72d0ff85a3
commit 0bfa9300db
19 changed files with 612 additions and 396 deletions
+5 -1
View File
@@ -9,8 +9,12 @@ int main(int argc, char *argv[]) {
Vase vase = Vase(std::string(argv[1]));
auto matches = vase.regex_search("hello", {{0, 0}, {vase.root->lines, UINT64_MAX}}, "g");
std::cout << "\n"
<< vase.to_string()
<< (int)vase.length() << " bytes\n"
<< (int)vase.root->lines << " lines\n"
<< (int)matches.size() << " matches\n"
<< "\n";
return 0;