add PieceTable::Cursor::operator*(), add unit test

This commit is contained in:
josh committed 2016-08-04 22:38:18 -04:00
1 parent abf853e1ba
commit f6338da8d0
2 files changed
+14

No files matched your search

+6
View File
@@ -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);