| 1 | // This file is part of the Unicode Character Database |
| 2 | // For documentation, see http://www.unicode.org/reports/tr44/ |
| 3 | // |
| 4 | // Based on the source file: https://unicode.org/Public/17.0.0/ucd/BidiBrackets.txt |
| 5 | // |
| 6 | // zig fmt: off |
| 7 | |
| 8 | pub const BracketPairing = struct { |
| 9 | codepoint: u21, |
| 10 | pair: u21, |
| 11 | type: Type, |
| 12 | |
| 13 | pub const Type = enum { |
| 14 | o, |
| 15 | c, |
| 16 | n, |
| 17 | }; |
| 18 | }; |
| 19 | |
| 20 | pub const data = [_]BracketPairing{ |
| 21 | .{ .codepoint = 0x0028, .pair = 0x0029, .type = .o }, |
| 22 | .{ .codepoint = 0x0029, .pair = 0x0028, .type = .c }, |
| 23 | .{ .codepoint = 0x005B, .pair = 0x005D, .type = .o }, |
| 24 | .{ .codepoint = 0x005D, .pair = 0x005B, .type = .c }, |
| 25 | .{ .codepoint = 0x007B, .pair = 0x007D, .type = .o }, |
| 26 | .{ .codepoint = 0x007D, .pair = 0x007B, .type = .c }, |
| 27 | .{ .codepoint = 0x0F3A, .pair = 0x0F3B, .type = .o }, |
| 28 | .{ .codepoint = 0x0F3B, .pair = 0x0F3A, .type = .c }, |
| 29 | .{ .codepoint = 0x0F3C, .pair = 0x0F3D, .type = .o }, |
| 30 | .{ .codepoint = 0x0F3D, .pair = 0x0F3C, .type = .c }, |
| 31 | .{ .codepoint = 0x169B, .pair = 0x169C, .type = .o }, |
| 32 | .{ .codepoint = 0x169C, .pair = 0x169B, .type = .c }, |
| 33 | .{ .codepoint = 0x2045, .pair = 0x2046, .type = .o }, |
| 34 | .{ .codepoint = 0x2046, .pair = 0x2045, .type = .c }, |
| 35 | .{ .codepoint = 0x207D, .pair = 0x207E, .type = .o }, |
| 36 | .{ .codepoint = 0x207E, .pair = 0x207D, .type = .c }, |
| 37 | .{ .codepoint = 0x208D, .pair = 0x208E, .type = .o }, |
| 38 | .{ .codepoint = 0x208E, .pair = 0x208D, .type = .c }, |
| 39 | .{ .codepoint = 0x2308, .pair = 0x2309, .type = .o }, |
| 40 | .{ .codepoint = 0x2309, .pair = 0x2308, .type = .c }, |
| 41 | .{ .codepoint = 0x230A, .pair = 0x230B, .type = .o }, |
| 42 | .{ .codepoint = 0x230B, .pair = 0x230A, .type = .c }, |
| 43 | .{ .codepoint = 0x2329, .pair = 0x232A, .type = .o }, |
| 44 | .{ .codepoint = 0x232A, .pair = 0x2329, .type = .c }, |
| 45 | .{ .codepoint = 0x2768, .pair = 0x2769, .type = .o }, |
| 46 | .{ .codepoint = 0x2769, .pair = 0x2768, .type = .c }, |
| 47 | .{ .codepoint = 0x276A, .pair = 0x276B, .type = .o }, |
| 48 | .{ .codepoint = 0x276B, .pair = 0x276A, .type = .c }, |
| 49 | .{ .codepoint = 0x276C, .pair = 0x276D, .type = .o }, |
| 50 | .{ .codepoint = 0x276D, .pair = 0x276C, .type = .c }, |
| 51 | .{ .codepoint = 0x276E, .pair = 0x276F, .type = .o }, |
| 52 | .{ .codepoint = 0x276F, .pair = 0x276E, .type = .c }, |
| 53 | .{ .codepoint = 0x2770, .pair = 0x2771, .type = .o }, |
| 54 | .{ .codepoint = 0x2771, .pair = 0x2770, .type = .c }, |
| 55 | .{ .codepoint = 0x2772, .pair = 0x2773, .type = .o }, |
| 56 | .{ .codepoint = 0x2773, .pair = 0x2772, .type = .c }, |
| 57 | .{ .codepoint = 0x2774, .pair = 0x2775, .type = .o }, |
| 58 | .{ .codepoint = 0x2775, .pair = 0x2774, .type = .c }, |
| 59 | .{ .codepoint = 0x27C5, .pair = 0x27C6, .type = .o }, |
| 60 | .{ .codepoint = 0x27C6, .pair = 0x27C5, .type = .c }, |
| 61 | .{ .codepoint = 0x27E6, .pair = 0x27E7, .type = .o }, |
| 62 | .{ .codepoint = 0x27E7, .pair = 0x27E6, .type = .c }, |
| 63 | .{ .codepoint = 0x27E8, .pair = 0x27E9, .type = .o }, |
| 64 | .{ .codepoint = 0x27E9, .pair = 0x27E8, .type = .c }, |
| 65 | .{ .codepoint = 0x27EA, .pair = 0x27EB, .type = .o }, |
| 66 | .{ .codepoint = 0x27EB, .pair = 0x27EA, .type = .c }, |
| 67 | .{ .codepoint = 0x27EC, .pair = 0x27ED, .type = .o }, |
| 68 | .{ .codepoint = 0x27ED, .pair = 0x27EC, .type = .c }, |
| 69 | .{ .codepoint = 0x27EE, .pair = 0x27EF, .type = .o }, |
| 70 | .{ .codepoint = 0x27EF, .pair = 0x27EE, .type = .c }, |
| 71 | .{ .codepoint = 0x2983, .pair = 0x2984, .type = .o }, |
| 72 | .{ .codepoint = 0x2984, .pair = 0x2983, .type = .c }, |
| 73 | .{ .codepoint = 0x2985, .pair = 0x2986, .type = .o }, |
| 74 | .{ .codepoint = 0x2986, .pair = 0x2985, .type = .c }, |
| 75 | .{ .codepoint = 0x2987, .pair = 0x2988, .type = .o }, |
| 76 | .{ .codepoint = 0x2988, .pair = 0x2987, .type = .c }, |
| 77 | .{ .codepoint = 0x2989, .pair = 0x298A, .type = .o }, |
| 78 | .{ .codepoint = 0x298A, .pair = 0x2989, .type = .c }, |
| 79 | .{ .codepoint = 0x298B, .pair = 0x298C, .type = .o }, |
| 80 | .{ .codepoint = 0x298C, .pair = 0x298B, .type = .c }, |
| 81 | .{ .codepoint = 0x298D, .pair = 0x2990, .type = .o }, |
| 82 | .{ .codepoint = 0x298E, .pair = 0x298F, .type = .c }, |
| 83 | .{ .codepoint = 0x298F, .pair = 0x298E, .type = .o }, |
| 84 | .{ .codepoint = 0x2990, .pair = 0x298D, .type = .c }, |
| 85 | .{ .codepoint = 0x2991, .pair = 0x2992, .type = .o }, |
| 86 | .{ .codepoint = 0x2992, .pair = 0x2991, .type = .c }, |
| 87 | .{ .codepoint = 0x2993, .pair = 0x2994, .type = .o }, |
| 88 | .{ .codepoint = 0x2994, .pair = 0x2993, .type = .c }, |
| 89 | .{ .codepoint = 0x2995, .pair = 0x2996, .type = .o }, |
| 90 | .{ .codepoint = 0x2996, .pair = 0x2995, .type = .c }, |
| 91 | .{ .codepoint = 0x2997, .pair = 0x2998, .type = .o }, |
| 92 | .{ .codepoint = 0x2998, .pair = 0x2997, .type = .c }, |
| 93 | .{ .codepoint = 0x29D8, .pair = 0x29D9, .type = .o }, |
| 94 | .{ .codepoint = 0x29D9, .pair = 0x29D8, .type = .c }, |
| 95 | .{ .codepoint = 0x29DA, .pair = 0x29DB, .type = .o }, |
| 96 | .{ .codepoint = 0x29DB, .pair = 0x29DA, .type = .c }, |
| 97 | .{ .codepoint = 0x29FC, .pair = 0x29FD, .type = .o }, |
| 98 | .{ .codepoint = 0x29FD, .pair = 0x29FC, .type = .c }, |
| 99 | .{ .codepoint = 0x2E22, .pair = 0x2E23, .type = .o }, |
| 100 | .{ .codepoint = 0x2E23, .pair = 0x2E22, .type = .c }, |
| 101 | .{ .codepoint = 0x2E24, .pair = 0x2E25, .type = .o }, |
| 102 | .{ .codepoint = 0x2E25, .pair = 0x2E24, .type = .c }, |
| 103 | .{ .codepoint = 0x2E26, .pair = 0x2E27, .type = .o }, |
| 104 | .{ .codepoint = 0x2E27, .pair = 0x2E26, .type = .c }, |
| 105 | .{ .codepoint = 0x2E28, .pair = 0x2E29, .type = .o }, |
| 106 | .{ .codepoint = 0x2E29, .pair = 0x2E28, .type = .c }, |
| 107 | .{ .codepoint = 0x2E55, .pair = 0x2E56, .type = .o }, |
| 108 | .{ .codepoint = 0x2E56, .pair = 0x2E55, .type = .c }, |
| 109 | .{ .codepoint = 0x2E57, .pair = 0x2E58, .type = .o }, |
| 110 | .{ .codepoint = 0x2E58, .pair = 0x2E57, .type = .c }, |
| 111 | .{ .codepoint = 0x2E59, .pair = 0x2E5A, .type = .o }, |
| 112 | .{ .codepoint = 0x2E5A, .pair = 0x2E59, .type = .c }, |
| 113 | .{ .codepoint = 0x2E5B, .pair = 0x2E5C, .type = .o }, |
| 114 | .{ .codepoint = 0x2E5C, .pair = 0x2E5B, .type = .c }, |
| 115 | .{ .codepoint = 0x3008, .pair = 0x3009, .type = .o }, |
| 116 | .{ .codepoint = 0x3009, .pair = 0x3008, .type = .c }, |
| 117 | .{ .codepoint = 0x300A, .pair = 0x300B, .type = .o }, |
| 118 | .{ .codepoint = 0x300B, .pair = 0x300A, .type = .c }, |
| 119 | .{ .codepoint = 0x300C, .pair = 0x300D, .type = .o }, |
| 120 | .{ .codepoint = 0x300D, .pair = 0x300C, .type = .c }, |
| 121 | .{ .codepoint = 0x300E, .pair = 0x300F, .type = .o }, |
| 122 | .{ .codepoint = 0x300F, .pair = 0x300E, .type = .c }, |
| 123 | .{ .codepoint = 0x3010, .pair = 0x3011, .type = .o }, |
| 124 | .{ .codepoint = 0x3011, .pair = 0x3010, .type = .c }, |
| 125 | .{ .codepoint = 0x3014, .pair = 0x3015, .type = .o }, |
| 126 | .{ .codepoint = 0x3015, .pair = 0x3014, .type = .c }, |
| 127 | .{ .codepoint = 0x3016, .pair = 0x3017, .type = .o }, |
| 128 | .{ .codepoint = 0x3017, .pair = 0x3016, .type = .c }, |
| 129 | .{ .codepoint = 0x3018, .pair = 0x3019, .type = .o }, |
| 130 | .{ .codepoint = 0x3019, .pair = 0x3018, .type = .c }, |
| 131 | .{ .codepoint = 0x301A, .pair = 0x301B, .type = .o }, |
| 132 | .{ .codepoint = 0x301B, .pair = 0x301A, .type = .c }, |
| 133 | .{ .codepoint = 0xFE59, .pair = 0xFE5A, .type = .o }, |
| 134 | .{ .codepoint = 0xFE5A, .pair = 0xFE59, .type = .c }, |
| 135 | .{ .codepoint = 0xFE5B, .pair = 0xFE5C, .type = .o }, |
| 136 | .{ .codepoint = 0xFE5C, .pair = 0xFE5B, .type = .c }, |
| 137 | .{ .codepoint = 0xFE5D, .pair = 0xFE5E, .type = .o }, |
| 138 | .{ .codepoint = 0xFE5E, .pair = 0xFE5D, .type = .c }, |
| 139 | .{ .codepoint = 0xFF08, .pair = 0xFF09, .type = .o }, |
| 140 | .{ .codepoint = 0xFF09, .pair = 0xFF08, .type = .c }, |
| 141 | .{ .codepoint = 0xFF3B, .pair = 0xFF3D, .type = .o }, |
| 142 | .{ .codepoint = 0xFF3D, .pair = 0xFF3B, .type = .c }, |
| 143 | .{ .codepoint = 0xFF5B, .pair = 0xFF5D, .type = .o }, |
| 144 | .{ .codepoint = 0xFF5D, .pair = 0xFF5B, .type = .c }, |
| 145 | .{ .codepoint = 0xFF5F, .pair = 0xFF60, .type = .o }, |
| 146 | .{ .codepoint = 0xFF60, .pair = 0xFF5F, .type = .c }, |
| 147 | .{ .codepoint = 0xFF62, .pair = 0xFF63, .type = .o }, |
| 148 | .{ .codepoint = 0xFF63, .pair = 0xFF62, .type = .c }, |
| 149 | }; |