class EE::UI::Doc::TextRanges

#include <textrange.hpp>

class TextRanges: public std::vector< TextRange > {
public:
    // methods

    bool isSorted() const;
    bool isValid() const;
    bool exists(const TextRange& range) const;
    size_t findIndex(const TextRange& range) const;
    bool hasSelection() const;
    void sort();
    void setSorted();
    bool merge();
    std::string toString() const;
    static TextRanges fromString(const std::string& str);
};