From b3c9933350e5c6b9d06a72034e681cecae52dc4b Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 16 Jul 2020 19:55:15 +1000 Subject: Add constexpr, const, noexcept and make other small improvements to lexlib. --- lexlib/WordList.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lexlib/WordList.h') 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; }; } -- cgit v1.2.3