aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/text/unicode/bidi/trieval.go
diff options
context:
space:
mode:
authorLibravatar Rutger Broekhoff2023-12-29 21:31:53 +0100
committerLibravatar Rutger Broekhoff2023-12-29 21:31:53 +0100
commit404aeae4545d2426c089a5f8d5e82dae56f5212b (patch)
tree2d84e00af272b39fc04f3795ae06bc48970e57b5 /vendor/golang.org/x/text/unicode/bidi/trieval.go
parent209d8b0187ed025dec9ac149ebcced3462877bff (diff)
downloadgitolfs3-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.go48
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
3package bidi
4
5// Class is the Unicode BiDi class. Each rune has a single class.
6type Class uint
7
8const (
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
45const (
46 openMask = 0x10
47 xorMaskShift = 5
48)