diff options
author | Neil <nyamatongwe@gmail.com> | 2020-07-16 19:55:15 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2020-07-16 19:55:15 +1000 |
commit | b3c9933350e5c6b9d06a72034e681cecae52dc4b (patch) | |
tree | a733fba3b608ba75f4c55ec27cc6026697fdd3b0 /lexlib/WordList.h | |
parent | 08b502cac1f88bc511c324ab7eb23d34c4318bd7 (diff) | |
download | scintilla-mirror-b3c9933350e5c6b9d06a72034e681cecae52dc4b.tar.gz |
Add constexpr, const, noexcept and make other small improvements to lexlib.
Diffstat (limited to 'lexlib/WordList.h')
-rw-r--r-- | lexlib/WordList.h | 16 |
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; }; } |