aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CaseConvert.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2020-03-13 09:03:15 +1100
committerNeil <nyamatongwe@gmail.com>2020-03-13 09:03:15 +1100
commita58c34864d438fffe91834510c147e8bcfe74f6e (patch)
tree57f14537cca8e35198167281769adffc869de334 /src/CaseConvert.h
parent87e9e3d3ebfa7ad6ba1b8e3cab2e5fd0293d664e (diff)
downloadscintilla-mirror-a58c34864d438fffe91834510c147e8bcfe74f6e.tar.gz
Using constexpr in UniConversion and CaseConvert.
Diffstat (limited to 'src/CaseConvert.h')
-rw-r--r--src/CaseConvert.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CaseConvert.h b/src/CaseConvert.h
index cdd089710..e3057c841 100644
--- a/src/CaseConvert.h
+++ b/src/CaseConvert.h
@@ -31,7 +31,7 @@ const char *CaseConvert(int character, enum CaseConversion conversion);
// When performing CaseConvertString, the converted value may be up to 3 times longer than the input.
// Ligatures are often decomposed into multiple characters and long cases include:
// ΐ "\xce\x90" folds to ΐ "\xce\xb9\xcc\x88\xcc\x81"
-const int maxExpansionCaseConversion=3;
+constexpr size_t maxExpansionCaseConversion = 3;
// Converts a mixed case string using a particular conversion.
// Result may be a different length to input and the length is the return value.