diff options
author | Rutger Broekhoff | 2023-12-29 21:31:53 +0100 |
---|---|---|
committer | Rutger Broekhoff | 2023-12-29 21:31:53 +0100 |
commit | 404aeae4545d2426c089a5f8d5e82dae56f5212b (patch) | |
tree | 2d84e00af272b39fc04f3795ae06bc48970e57b5 /vendor/golang.org/x/text/unicode/bidi/trieval.go | |
parent | 209d8b0187ed025dec9ac149ebcced3462877bff (diff) | |
download | gitolfs3-404aeae4545d2426c089a5f8d5e82dae56f5212b.tar.gz gitolfs3-404aeae4545d2426c089a5f8d5e82dae56f5212b.zip |
Make Nix builds work
Diffstat (limited to 'vendor/golang.org/x/text/unicode/bidi/trieval.go')
-rw-r--r-- | vendor/golang.org/x/text/unicode/bidi/trieval.go | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/vendor/golang.org/x/text/unicode/bidi/trieval.go b/vendor/golang.org/x/text/unicode/bidi/trieval.go new file mode 100644 index 0000000..6a796e2 --- /dev/null +++ b/vendor/golang.org/x/text/unicode/bidi/trieval.go | |||
@@ -0,0 +1,48 @@ | |||
1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. | ||
2 | |||
3 | package bidi | ||
4 | |||
5 | // Class is the Unicode BiDi class. Each rune has a single class. | ||
6 | type Class uint | ||
7 | |||
8 | const ( | ||
9 | L Class = iota // LeftToRight | ||
10 | R // RightToLeft | ||
11 | EN // EuropeanNumber | ||
12 | ES // EuropeanSeparator | ||
13 | ET // EuropeanTerminator | ||
14 | AN // ArabicNumber | ||
15 | CS // CommonSeparator | ||
16 | B // ParagraphSeparator | ||
17 | S // SegmentSeparator | ||
18 | WS // WhiteSpace | ||
19 | ON // OtherNeutral | ||
20 | BN // BoundaryNeutral | ||
21 | NSM // NonspacingMark | ||
22 | AL // ArabicLetter | ||
23 | Control // Control LRO - PDI | ||
24 | |||
25 | numClass | ||
26 | |||
27 | LRO // LeftToRightOverride | ||
28 | RLO // RightToLeftOverride | ||
29 | LRE // LeftToRightEmbedding | ||
30 | RLE // RightToLeftEmbedding | ||
31 | PDF // PopDirectionalFormat | ||
32 | LRI // LeftToRightIsolate | ||
33 | RLI // RightToLeftIsolate | ||
34 | FSI // FirstStrongIsolate | ||
35 | PDI // PopDirectionalIsolate | ||
36 | |||
37 | unknownClass = ^Class(0) | ||
38 | ) | ||
39 | |||
40 | // A trie entry has the following bits: | ||
41 | // 7..5 XOR mask for brackets | ||
42 | // 4 1: Bracket open, 0: Bracket close | ||
43 | // 3..0 Class type | ||
44 | |||
45 | const ( | ||
46 | openMask = 0x10 | ||
47 | xorMaskShift = 5 | ||
48 | ) | ||