github.com/go-xe2/third@v1.0.3/golang.org/x/text/internal/number/gen_common.go (about)

     1  // Copyright 2016 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // +build ignore
     6  
     7  package main
     8  
     9  import "unicode/utf8"
    10  
    11  // A system identifies a CLDR numbering system.
    12  type system byte
    13  
    14  type systemData struct {
    15  	id        system
    16  	digitSize byte              // number of UTF-8 bytes per digit
    17  	zero      [utf8.UTFMax]byte // UTF-8 sequence of zero digit.
    18  }
    19  
    20  // A SymbolType identifies a symbol of a specific kind.
    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  type altSymData struct {
    41  	compactTag uint16
    42  	system     system
    43  	symIndex   byte
    44  }