Fix bug in split and add line->byte lookup.
This commit is contained in:
+3
-1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user