Fix bug in split and add line->byte lookup.

This commit is contained in:
2026-07-28 19:18:31 +01:00
parent 784d2736e2
commit d8a59a5f5c
4 changed files with 33 additions and 3 deletions
+3 -1
View File
@@ -26,10 +26,12 @@ int main() {
vase.type(7, '3');
vase.type(8, '4');
vase.erase(9, -2);
vase.erase(vase.offset_of(7, 3), -3);
print_shard(vase.root);
std::cout << (int)vase.offset_of(6, 0) << "\n\n";
LineIterator it(vase.root, 3);
std::string line;
while (it.next(line))