diff options
author | mitchell <unknown> | 2020-07-19 19:58:28 -0400 |
---|---|---|
committer | mitchell <unknown> | 2020-07-19 19:58:28 -0400 |
commit | cf3c77c09d71cd4b1ebf8e7fe05a9485d182387e (patch) | |
tree | 1e0ff0b323889d275fea6c1c79258fc4a2a39942 /lexlib/CharacterSet.cxx | |
parent | 834c5671ca91a6fa80c945fa2fe0d750b6cc7dff (diff) | |
download | scintilla-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/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); |