class EE::UI::Doc::TextRanges

#include <textrange.hpp>

class TextRanges: public EE::SmallVector {
public:
    // construction

    TextRanges();
    TextRanges(const std::vector<TextRange>& ranges);
    TextRanges(std::initializer_list<TextRange> ranges);
    TextRanges(const TextRange& range);

    // 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);
};

Inherited Members

public:
    // methods

    static constexpr size_t stack_size();
    bool is_small() const;