tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

BidiClass.h (1383B)


      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_
      6 
      7 #include <cstdint>
      8 
      9 namespace mozilla::intl {
     10 
     11 /**
     12 *  Read ftp://ftp.unicode.org/Public/UNIDATA/ReadMe-Latest.txt
     13 *  section BIDIRECTIONAL PROPERTIES
     14 *  for the detailed definition of the following categories
     15 *
     16 *  The values here must match the equivalents in %bidicategorycode in
     17 *  mozilla/intl/unicharutil/tools/genUnicodePropertyData.pl,
     18 *  and must also match the values used by ICU's UCharDirection.
     19 */
     20 enum class BidiClass : uint8_t {
     21  LeftToRight = 0,
     22  RightToLeft = 1,
     23  EuropeanNumber = 2,
     24  EuropeanNumberSeparator = 3,
     25  EuropeanNumberTerminator = 4,
     26  ArabicNumber = 5,
     27  CommonNumberSeparator = 6,
     28  BlockSeparator = 7,
     29  SegmentSeparator = 8,
     30  WhiteSpaceNeutral = 9,
     31  OtherNeutral = 10,
     32  LeftToRightEmbedding = 11,
     33  LeftToRightOverride = 12,
     34  RightToLeftArabic = 13,
     35  RightToLeftEmbedding = 14,
     36  RightToLeftOverride = 15,
     37  PopDirectionalFormat = 16,
     38  DirNonSpacingMark = 17,
     39  BoundaryNeutral = 18,
     40  FirstStrongIsolate = 19,
     41  LeftToRightIsolate = 20,
     42  RightToLeftIsolate = 21,
     43  PopDirectionalIsolate = 22,
     44  BidiClassCount
     45 };
     46 
     47 }  // namespace mozilla::intl
     48 
     49 #endif