Debian Codegraph @

Headers/SheenBidi/SBBidiType.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2018-2025 Muhammad Tayyab Akram
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #ifndef _SB_PUBLIC_BIDI_TYPE_H
18 #define _SB_PUBLIC_BIDI_TYPE_Hcxx . . $ `Headers/SheenBidi/SBBidiType.h:18:9`!
19
20 #include <SheenBidi/SBBase.h>cxx . . $ `<file>/Headers/SheenBidi/SBBase.h`/
21
22 SB_EXTERN_C_BEGINcxx . . $ `Headers/SheenBidi/SBBase.h:26:9`!
23
24 /**
25 * Constants that specify the bidirectional types of a character.
26 */
27 enumcxx . . $ $anonymous_type_d067b316f08b7e1c_0# {
28 SBBidiTypeNilcxx . . $ SBBidiTypeNil. = 0x00,
29
30 SBBidiTypeLcxx . . $ SBBidiTypeL. = 0x01, /**< Strong: Left-to-Right */
31 SBBidiTypeRcxx . . $ SBBidiTypeR. = 0x02, /**< Strong: Right-to-Left */
32 SBBidiTypeALcxx . . $ SBBidiTypeAL. = 0x03, /**< Strong: Right-to-Left Arabic */
33
34 SBBidiTypeBNcxx . . $ SBBidiTypeBN. = 0x04, /**< Weak: Boundary Neutral */
35 SBBidiTypeNSMcxx . . $ SBBidiTypeNSM. = 0x05, /**< Weak: Non-Spacing Mark */
36 SBBidiTypeANcxx . . $ SBBidiTypeAN. = 0x06, /**< Weak: Arabic Number */
37 SBBidiTypeENcxx . . $ SBBidiTypeEN. = 0x07, /**< Weak: European Number */
38 SBBidiTypeETcxx . . $ SBBidiTypeET. = 0x08, /**< Weak: European Number Terminator */
39 SBBidiTypeEScxx . . $ SBBidiTypeES. = 0x09, /**< Weak: European Number Separator */
40 SBBidiTypeCScxx . . $ SBBidiTypeCS. = 0x0A, /**< Weak: Common Number Separator */
41
42 SBBidiTypeWScxx . . $ SBBidiTypeWS. = 0x0B, /**< Neutral: White Space */
43 SBBidiTypeScxx . . $ SBBidiTypeS. = 0x0C, /**< Neutral: Segment Separator */
44 SBBidiTypeBcxx . . $ SBBidiTypeB. = 0x0D, /**< Neutral: Paragraph Separator */
45 SBBidiTypeONcxx . . $ SBBidiTypeON. = 0x0E, /**< Neutral: Other Neutral */
46
47 SBBidiTypeLRIcxx . . $ SBBidiTypeLRI. = 0x0F, /**< Format: Left-to-Right Isolate */
48 SBBidiTypeRLIcxx . . $ SBBidiTypeRLI. = 0x10, /**< Format: Right-to-Left Isolate */
49 SBBidiTypeFSIcxx . . $ SBBidiTypeFSI. = 0x11, /**< Format: First Strong Isolate */
50 SBBidiTypePDIcxx . . $ SBBidiTypePDI. = 0x12, /**< Format: Pop Directional Isolate */
51 SBBidiTypeLREcxx . . $ SBBidiTypeLRE. = 0x13, /**< Format: Left-to-Right Embedding */
52 SBBidiTypeRLEcxx . . $ SBBidiTypeRLE. = 0x14, /**< Format: Right-to-Left Embedding */
53 SBBidiTypeLROcxx . . $ SBBidiTypeLRO. = 0x15, /**< Format: Left-to-Right Override */
54 SBBidiTypeRLOcxx . . $ SBBidiTypeRLO. = 0x16, /**< Format: Right-to-Left Override */
55 SBBidiTypePDFcxx . . $ SBBidiTypePDF. = 0x17 /**< Format: Pop Directional Formatting */
56 };
57
58 /**
59 * A type to represent the bidirectional type of a character.
60 */
61 typedef SBUInt8cxx . . $ SBUInt8# SBBidiTypecxx . . $ SBBidiType#;
62
63 /**
64 * Checks whether specified bidirectional type is strong.
65 */
66 #define SBBidiTypeIsStrongcxx . . $ `Headers/SheenBidi/SBBidiType.h:66:9`!(t) SBUInt8InRangecxx . . $ `Headers/SheenBidi/SBBase.h:118:9`!(t, SBBidiTypeL, SBBidiTypeAL)
67
68 /**
69 * Checks whether specified bidirectional type is weak.
70 */
71 #define SBBidiTypeIsWeakcxx . . $ `Headers/SheenBidi/SBBidiType.h:71:9`!(t) SBUInt8InRange(t, SBBidiTypeBN, SBBidiTypeCS)
72
73 /**
74 * Checks whether specified bidirectional type is neutral.
75 */
76 #define SBBidiTypeIsNeutralcxx . . $ `Headers/SheenBidi/SBBidiType.h:76:9`!(t) SBUInt8InRange(t, SBBidiTypeWS, SBBidiTypeON)
77
78 /**
79 * Checks whether specified bidirectional type is format.
80 */
81 #define SBBidiTypeIsFormatcxx . . $ `Headers/SheenBidi/SBBidiType.h:81:9`!(t) SBUInt8InRange(t, SBBidiTypeLRI, SBBidiTypePDF)
82
83 SB_EXTERN_C_ENDcxx . . $ `Headers/SheenBidi/SBBase.h:27:9`!
84
85 #endif