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/CharacterSet.cxx | |
parent | 08b502cac1f88bc511c324ab7eb23d34c4318bd7 (diff) | |
download | scintilla-mirror-b3c9933350e5c6b9d06a72034e681cecae52dc4b.tar.gz |
Add constexpr, const, noexcept and make other small improvements to lexlib.
Diffstat (limited to 'lexlib/CharacterSet.cxx')
-rw-r--r-- | lexlib/CharacterSet.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lexlib/CharacterSet.cxx b/lexlib/CharacterSet.cxx index 2a1dabc1c..b934c2dd4 100644 --- a/lexlib/CharacterSet.cxx +++ b/lexlib/CharacterSet.cxx @@ -15,7 +15,7 @@ using namespace Scintilla; namespace Scintilla { -int CompareCaseInsensitive(const char *a, const char *b) { +int CompareCaseInsensitive(const char *a, const char *b) noexcept { while (*a && *b) { if (*a != *b) { const char upperA = MakeUpperCase(*a); @@ -30,7 +30,7 @@ int CompareCaseInsensitive(const char *a, const char *b) { return *a - *b; } -int CompareNCaseInsensitive(const char *a, const char *b, size_t len) { +int CompareNCaseInsensitive(const char *a, const char *b, size_t len) noexcept { while (*a && *b && len) { if (*a != *b) { const char upperA = MakeUpperCase(*a); |