teditor
1.8.0@@fee5e94
Terminal based editor written in C++
|
Go to the documentation of this file.
15 virtual bool isEof()
const = 0;
17 virtual std::string
at(
const Point& begin,
const Point& end) = 0;
25 bool isEof()
const override {
return currPos >= str.size(); }
27 std::string
at(
const Point& begin,
const Point& end)
override;
42 std::string
at(
const Point& begin,
const Point& end)
override;
virtual ~Scanner()
Definition: scanner.h:13
BufferScanner(Buffer &b)
Definition: scanner.cpp:30
std::string at(const Point &begin, const Point &end) override
Definition: scanner.cpp:24
bool isEof() const override
Definition: scanner.h:25
bool isEof() const override
Definition: scanner.h:40
virtual bool isEof() const =0
void left()
Definition: buffer.cpp:670
StringScanner(const std::string &s)
Definition: scanner.h:23
char next(Point &pt) override
Definition: scanner.cpp:36
int length() const
Definition: buffer.h:92
const Point & getPoint() const
Definition: buffer.h:165
T y
Definition: pos2d.h:16
const std::string & get() const
Definition: line.h:51
virtual char next(Point &pt)=0
Line & at(int idx)
Definition: buffer.h:98
int lengthOf(int i) const
Definition: buffer.h:187
int DataT
Definition: pos2d.h:14
char next(Point &pt) override
Definition: scanner.cpp:8
#define ASSERT(check, fmt,...)
Macro to assert with runtime_error exception if the check fails.
Definition: utils.h:35
std::string at(const Point &begin, const Point &end) override
Definition: scanner.cpp:45
void right()
Definition: buffer.cpp:686
void rewind() override
Definition: scanner.h:41
std::string regionAsStr() const
Definition: buffer.cpp:307
virtual std::string at(const Point &begin, const Point &end)=0
T x
Definition: pos2d.h:16
void rewind() override
Definition: scanner.cpp:17