Perfect
- 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:
+5
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user