aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-04-05 15:48:13 +1000
committerNeil <nyamatongwe@gmail.com>2021-04-05 15:48:13 +1000
commit9f9b24ae9bc0ae771454732868cdb136fe995e42 (patch)
treedc423f9d6e8bf3265e67b5a1adfeabf576327604 /win32
parentf27b21cb797b856c9f8d2158ba00b6aeccb29680 (diff)
downloadscintilla-mirror-9f9b24ae9bc0ae771454732868cdb136fe995e42.tar.gz
Change CaseConversion to an enum class.
Diffstat (limited to 'win32')
-rw-r--r--win32/ScintillaWin.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 8779a3c20..19194a8bb 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -2357,7 +2357,7 @@ public:
for (size_t mixIndex=0; mixIndex < nUtf16Mixed; mixIndex++) {
if ((lenFlat + 20) > utf16Folded.size())
utf16Folded.resize(lenFlat + 60);
- const char *foldedUTF8 = CaseConvert(utf16Mixed[mixIndex], CaseConversionFold);
+ const char *foldedUTF8 = CaseConvert(utf16Mixed[mixIndex], CaseConversion::fold);
if (foldedUTF8) {
// Maximum length of a case conversion is 6 bytes, 3 characters
wchar_t wFolded[20];
@@ -2399,7 +2399,7 @@ std::unique_ptr<CaseFolder> ScintillaWin::CaseFolderForEncoding() {
const unsigned int lengthUTF16 = WideCharFromMultiByte(cpDest, sCharacter,
wCharacter, std::size(wCharacter));
if (lengthUTF16 == 1) {
- const char *caseFolded = CaseConvert(wCharacter[0], CaseConversionFold);
+ const char *caseFolded = CaseConvert(wCharacter[0], CaseConversion::fold);
if (caseFolded) {
wchar_t wLower[20];
const size_t charsConverted = UTF16FromUTF8(std::string_view(caseFolded),
@@ -2429,7 +2429,7 @@ std::string ScintillaWin::CaseMapString(const std::string &s, CaseMapping caseMa
const UINT cpDoc = CodePageOfDocument();
if (cpDoc == SC_CP_UTF8) {
- return CaseConvertString(s, (caseMapping == CaseMapping::upper) ? CaseConversionUpper : CaseConversionLower);
+ return CaseConvertString(s, (caseMapping == CaseMapping::upper) ? CaseConversion::upper : CaseConversion::lower);
}
// Change text to UTF-16