aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CaseConvert.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/CaseConvert.h')
-rw-r--r--src/CaseConvert.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/CaseConvert.h b/src/CaseConvert.h
index e3057c841..c5f217d09 100644
--- a/src/CaseConvert.h
+++ b/src/CaseConvert.h
@@ -12,10 +12,10 @@
namespace Scintilla {
-enum CaseConversion {
- CaseConversionFold,
- CaseConversionUpper,
- CaseConversionLower
+enum class CaseConversion {
+ fold,
+ upper,
+ lower
};
class ICaseConverter {
@@ -23,10 +23,10 @@ public:
virtual size_t CaseConvertString(char *converted, size_t sizeConverted, const char *mixed, size_t lenMixed) = 0;
};
-ICaseConverter *ConverterFor(enum CaseConversion conversion);
+ICaseConverter *ConverterFor(CaseConversion conversion);
// Returns a UTF-8 string. Empty when no conversion
-const char *CaseConvert(int character, enum CaseConversion conversion);
+const char *CaseConvert(int character, 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:
@@ -36,10 +36,10 @@ 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.
// If there is not enough space then 0 is returned.
-size_t CaseConvertString(char *converted, size_t sizeConverted, const char *mixed, size_t lenMixed, enum CaseConversion conversion);
+size_t CaseConvertString(char *converted, size_t sizeConverted, const char *mixed, size_t lenMixed, CaseConversion conversion);
// Converts a mixed case string using a particular conversion.
-std::string CaseConvertString(const std::string &s, enum CaseConversion conversion);
+std::string CaseConvertString(const std::string &s, CaseConversion conversion);
}