diff options
Diffstat (limited to 'src/Document.h')
-rw-r--r-- | src/Document.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Document.h b/src/Document.h index 8212db674..a59f192a9 100644 --- a/src/Document.h +++ b/src/Document.h @@ -39,6 +39,10 @@ public: start(start_), end(end_) { } + bool operator==(const Range &other) const { + return (start == other.start) && (end == other.end); + } + bool Valid() const { return (start != invalidPosition) && (end != invalidPosition); } |