From 2f567cddc2afb58b36f73578508d99550c35d014 Mon Sep 17 00:00:00 2001 From: Lukhnos Liu Date: Mon, 31 Jan 2022 22:24:25 -0800 Subject: [PATCH] Use constexpr for Bopomofo Components --- Source/Engine/Mandarin/Mandarin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/Mandarin/Mandarin.h b/Source/Engine/Mandarin/Mandarin.h index f8e792d7..e9228f76 100644 --- a/Source/Engine/Mandarin/Mandarin.h +++ b/Source/Engine/Mandarin/Mandarin.h @@ -179,7 +179,7 @@ class BopomofoSyllable { friend std::ostream& operator<<(std::ostream& stream, const BopomofoSyllable& syllable); - static const Component + static constexpr Component ConsonantMask = 0x001f, // 0000 0000 0001 1111, 21 consonants MiddleVowelMask = 0x0060, // 0000 0000 0110 0000, 3 middle vowels VowelMask = 0x0780, // 0000 0111 1000 0000, 13 vowels