...
1
2
3
4
5
6
7 package main
8
9
10
11
12 type entry uint8
13
14 const (
15 propShift = 6
16 propMask = 0xc0
17 catMask = 0x3f
18 )
19
20 func (e entry) property() property { return property(e & propMask) }
21 func (e entry) category() category { return category(e & catMask) }
22
23 type property uint8
24
25
26
27 const (
28 unassigned property = iota << propShift
29 disallowed
30 idDisOrFreePVal
31 pValid
32 )
33
34
35 type category uint8
36
37 const (
38 other category = iota
39
40
41 joiningL
42 joiningD
43 joiningT
44 joiningR
45 viramaModifier
46 viramaJoinT
47 latinSmallL
48 greek
49 greekJoinT
50 hebrew
51 hebrewJoinT
52 japanese
53
54
55
56
57 zeroWidthNonJoiner
58 zeroWidthJoiner
59
60 middleDot
61 greekLowerNumeralSign
62 hebrewPreceding
63 katakanaMiddleDot
64 arabicIndicDigit
65 extendedArabicIndicDigit
66
67 numCategories
68 )
69
View as plain text