remove Text module
This commit is contained in:
parent
20a2786755
commit
500a6891d4
@ -1 +0,0 @@
|
||||
#include "Text.h"
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user