class EE::UI::Doc::TextPosition

#include <textposition.hpp>

class TextPosition {
public:
    // construction

    TextPosition();
    TextPosition(Int64 line, Int64 column);

    // methods

    bool isValid() const;
    Int64 line() const;
    Int64 column() const;
    void setLine(Int64 line);
    void setColumn(Int64 column);
    bool operator==(const TextPosition& other) const;
    bool operator!=(const TextPosition& other) const;
    bool operator<(const TextPosition& other) const;
    bool operator>(const TextPosition& other) const;
    bool operator<=(const TextPosition& other) const;
    bool operator>=(const TextPosition& other) const;
    TextPosition operator+(const TextPosition& other) const;
    TextPosition operator+=(const TextPosition& other) const;
    TextPosition operator-(const TextPosition& other) const;
    TextPosition operator-=(const TextPosition& other) const;
    std::string toPositionString() const;
    std::string toString() const;
    static TextPosition fromString(const std::string& pos);
};