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_BidiClass_h_
5 #define intl_components_BidiClass_h_
7 namespace mozilla::intl
{
10 * Read ftp://ftp.unicode.org/Public/UNIDATA/ReadMe-Latest.txt
11 * section BIDIRECTIONAL PROPERTIES
12 * for the detailed definition of the following categories
14 * The values here must match the equivalents in %bidicategorycode in
15 * mozilla/intl/unicharutil/tools/genUnicodePropertyData.pl,
16 * and must also match the values used by ICU's UCharDirection.
18 enum class BidiClass
: uint8_t {
22 EuropeanNumberSeparator
= 3,
23 EuropeanNumberTerminator
= 4,
25 CommonNumberSeparator
= 6,
28 WhiteSpaceNeutral
= 9,
30 LeftToRightEmbedding
= 11,
31 LeftToRightOverride
= 12,
32 RightToLeftArabic
= 13,
33 RightToLeftEmbedding
= 14,
34 RightToLeftOverride
= 15,
35 PopDirectionalFormat
= 16,
36 DirNonSpacingMark
= 17,
38 FirstStrongIsolate
= 19,
39 LeftToRightIsolate
= 20,
40 RightToLeftIsolate
= 21,
41 PopDirectionalIsolate
= 22,
45 } // namespace mozilla::intl