add PieceTable::Cursor::operator*(), add unit test
This commit is contained in:
1 parent
abf853e1ba
commit
f6338da8d0
2 files changed
+14
No files matched your search
@@ -63,6 +63,12 @@ public:
|
||||
|
||||
/** Virtual column (0 based). */
|
||||
uint32_t column;
|
||||
|
||||
uint32_t operator*() const
|
||||
{
|
||||
/* TODO: Use Encoding */
|
||||
return piece->start[offset];
|
||||
}
|
||||
};
|
||||
|
||||
PieceTable(const uint8_t * file_buffer, unsigned long file_buffer_size);
|
||||
|
||||
Reference in new issue
Block a user