GeneralCategory.h (1298B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 #ifndef intl_components_GeneralCategory_h_ 5 #define intl_components_GeneralCategory_h_ 6 7 #include <cstdint> 8 9 namespace mozilla::intl { 10 11 // See https://www.unicode.org/reports/tr44/#General_Category_Values 12 // for details of these values. 13 14 // The values here must match the values used by ICU's UCharCategory. 15 16 enum class GeneralCategory : uint8_t { 17 Unassigned = 0, 18 Uppercase_Letter = 1, 19 Lowercase_Letter = 2, 20 Titlecase_Letter = 3, 21 Modifier_Letter = 4, 22 Other_Letter = 5, 23 Nonspacing_Mark = 6, 24 Enclosing_Mark = 7, 25 Spacing_Mark = 8, 26 Decimal_Number = 9, 27 Letter_Number = 10, 28 Other_Number = 11, 29 Space_Separator = 12, 30 Line_Separator = 13, 31 Paragraph_Separator = 14, 32 Control = 15, 33 Format = 16, 34 Private_Use = 17, 35 Surrogate = 18, 36 Dash_Punctuation = 19, 37 Open_Punctuation = 20, 38 Close_Punctuation = 21, 39 Connector_Punctuation = 22, 40 Other_Punctuation = 23, 41 Math_Symbol = 24, 42 Currency_Symbol = 25, 43 Modifier_Symbol = 26, 44 Other_Symbol = 27, 45 Initial_Punctuation = 28, 46 Final_Punctuation = 29, 47 GeneralCategoryCount 48 }; 49 50 } // namespace mozilla::intl 51 52 #endif