...
1
2
3 package number
4
5 import (
6 "unicode/utf8"
7
8 "golang.org/x/text/internal/language/compact"
9 )
10
11
12 type system byte
13
14 type systemData struct {
15 id system
16 digitSize byte
17 zero [utf8.UTFMax]byte
18 }
19
20
21 type SymbolType int
22
23 const (
24 SymDecimal SymbolType = iota
25 SymGroup
26 SymList
27 SymPercentSign
28 SymPlusSign
29 SymMinusSign
30 SymExponential
31 SymSuperscriptingExponent
32 SymPerMille
33 SymInfinity
34 SymNan
35 SymTimeSeparator
36
37 NumSymbolTypes
38 )
39
40 const hasNonLatnMask = 0x8000
41
42
43
44
45
46
47
48
49 type symOffset uint16
50
51 type altSymData struct {
52 compactTag compact.ID
53 symIndex symOffset
54 system system
55 }
56
View as plain text