remove Text module

This commit is contained in:
Josh Holtrop 2016-07-19 22:35:51 -04:00
parent 20a2786755
commit 500a6891d4
2 changed files with 0 additions and 37 deletions

View File

@ -1 +0,0 @@
#include "Text.h"

View File

@ -1,36 +0,0 @@
#ifndef TEXT_H
#define TEXT_H
#include <stdint.h>
#include <stdlib.h>
/**
* Class representing text. This implementation is temporary and currently
* only supports read-only, ASCII text. It needs to be reimplemented to
* support UTF-8 and editing.
*/
class Text
{
public:
Text(uint8_t const * ro_buffer, size_t ro_length) :
m_ro_buffer(ro_buffer),
m_ro_length(ro_length)
{
}
uint8_t operator[](int idx) const
{
return m_ro_buffer[idx];
}
size_t size() const
{
return m_ro_length;
}
protected:
uint8_t const * m_ro_buffer;
size_t m_ro_length;
};
#endif