aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/WordList.h
diff options
context:
space:
mode:
authormitchell <unknown>2020-07-19 19:58:28 -0400
committermitchell <unknown>2020-07-19 19:58:28 -0400
commitcf3c77c09d71cd4b1ebf8e7fe05a9485d182387e (patch)
tree1e0ff0b323889d275fea6c1c79258fc4a2a39942 /lexlib/WordList.h
parent834c5671ca91a6fa80c945fa2fe0d750b6cc7dff (diff)
downloadscintilla-mirror-cf3c77c09d71cd4b1ebf8e7fe05a9485d182387e.tar.gz
Backport: Add constexpr, const, noexcept and make other small improvements to lexlib.
Backport of changeset 8416:06a43e06a8e0.
Diffstat (limited to 'lexlib/WordList.h')
-rw-r--r--lexlib/WordList.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/lexlib/WordList.h b/lexlib/WordList.h
index c1253cec6..127f00e68 100644
--- a/lexlib/WordList.h
+++ b/lexlib/WordList.h
@@ -22,15 +22,15 @@ class WordList {
public:
explicit WordList(bool onlyLineEnds_ = false);
~WordList();
- operator bool() const;
- bool operator!=(const WordList &other) const;
- int Length() const;
- void Clear();
+ operator bool() const noexcept;
+ bool operator!=(const WordList &other) const noexcept;
+ int Length() const noexcept;
+ void Clear() noexcept;
bool Set(const char *s);
- bool InList(const char *s) const;
- bool InListAbbreviated(const char *s, const char marker) const;
- bool InListAbridged(const char *s, const char marker) const;
- const char *WordAt(int n) const;
+ bool InList(const char *s) const noexcept;
+ bool InListAbbreviated(const char *s, const char marker) const noexcept;
+ bool InListAbridged(const char *s, const char marker) const noexcept;
+ const char *WordAt(int n) const noexcept;
};
}