.. index:: pair: class; EE::UI::Doc::TextRange .. _doxid-class_e_e_1_1_u_i_1_1_doc_1_1_text_range: class EE::UI::Doc::TextRange ============================ .. toctree:: :hidden: .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class TextRange { public: // construction :target:`TextRange`(); :target:`TextRange`(const :ref:`TextPosition`& start, const :ref:`TextPosition`& end); // methods bool :target:`isValid`() const; void :target:`clear`(); :ref:`TextPosition`& :target:`start`(); :ref:`TextPosition`& :target:`end`(); const :ref:`TextPosition`& :target:`start`() const; const :ref:`TextPosition`& :target:`end`() const; TextRange :target:`normalized`() const; TextRange& :target:`normalize`(); void :target:`reverse`(); TextRange :target:`reversed`() const; void :target:`setStart`(const :ref:`TextPosition`& position); void :target:`setEnd`(const :ref:`TextPosition`& position); void :target:`set`(const :ref:`TextPosition`& start, const :ref:`TextPosition`& end); bool :target:`operator==`(const TextRange& other) const; bool :target:`operator!=`(const TextRange& other) const; bool :target:`operator<`(const TextRange& other) const; bool :target:`operator>`(const TextRange& other) const; bool :target:`operator<=`(const TextRange& other) const; bool :target:`operator>=`(const TextRange& other) const; TextRange :target:`operator+`(const TextRange& other) const; TextRange :target:`operator+=`(const TextRange& other) const; TextRange :target:`operator-`(const TextRange& other) const; TextRange :target:`operator-=`(const TextRange& other) const; bool :target:`contains`(const :ref:`TextPosition`& position) const; bool :target:`containsLine`(const :ref:`Int64`& line) const; bool :target:`contains`(const TextRange& range) const; bool :target:`hasSelection`() const; bool :target:`inSameLine`() const; std::string :target:`toString`() const; static TextRange :target:`fromString`(const std::string& range); };