aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Selection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Selection.h')
-rw-r--r--src/Selection.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/Selection.h b/src/Selection.h
index 741b75277..c5c7993cf 100644
--- a/src/Selection.h
+++ b/src/Selection.h
@@ -147,10 +147,10 @@ public:
Selection();
~Selection();
bool IsRectangular() const noexcept;
- Sci::Position MainCaret() const;
- Sci::Position MainAnchor() const;
+ Sci::Position MainCaret() const noexcept;
+ Sci::Position MainAnchor() const noexcept;
SelectionRange &Rectangular() noexcept;
- SelectionSegment Limits() const;
+ SelectionSegment Limits() const noexcept;
// This is for when you want to move the caret in response to a
// user direction command - for rectangular selections, use the range
// that covers all selected text otherwise return the main selection.
@@ -158,19 +158,19 @@ public:
size_t Count() const noexcept;
size_t Main() const noexcept;
void SetMain(size_t r) noexcept;
- SelectionRange &Range(size_t r);
- const SelectionRange &Range(size_t r) const;
- SelectionRange &RangeMain();
- const SelectionRange &RangeMain() const;
- SelectionPosition Start() const;
+ SelectionRange &Range(size_t r) noexcept;
+ const SelectionRange &Range(size_t r) const noexcept;
+ SelectionRange &RangeMain() noexcept;
+ const SelectionRange &RangeMain() const noexcept;
+ SelectionPosition Start() const noexcept;
bool MoveExtends() const noexcept;
void SetMoveExtends(bool moveExtends_) noexcept;
bool Empty() const noexcept;
SelectionPosition Last() const noexcept;
Sci::Position Length() const noexcept;
void MovePositions(bool insertion, Sci::Position startChange, Sci::Position length) noexcept;
- void TrimSelection(SelectionRange range);
- void TrimOtherSelections(size_t r, SelectionRange range);
+ void TrimSelection(SelectionRange range) noexcept;
+ void TrimOtherSelections(size_t r, SelectionRange range) noexcept;
void SetSelection(SelectionRange range);
void AddSelection(SelectionRange range);
void AddSelectionWithoutTrim(SelectionRange range);
@@ -178,8 +178,8 @@ public:
void DropAdditionalRanges();
void TentativeSelection(SelectionRange range);
void CommitTentative() noexcept;
- int CharacterInSelection(Sci::Position posCharacter) const;
- int InSelectionForEOL(Sci::Position pos) const;
+ int CharacterInSelection(Sci::Position posCharacter) const noexcept;
+ int InSelectionForEOL(Sci::Position pos) const noexcept;
Sci::Position VirtualSpaceFor(Sci::Position pos) const noexcept;
void Clear();
void RemoveDuplicates();