From a58c34864d438fffe91834510c147e8bcfe74f6e Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 13 Mar 2020 09:03:15 +1100 Subject: Using constexpr in UniConversion and CaseConvert. --- src/CaseConvert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/CaseConvert.h') 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. -- cgit v1.2.3