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