gopkg.in/alecthomas/gometalinter.v3@v3.0.0/_linters/src/golang.org/x/text/width/trieval.go (about)

     1  // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
     2  
     3  package width
     4  
     5  // elem is an entry of the width trie. The high byte is used to encode the type
     6  // of the rune. The low byte is used to store the index to a mapping entry in
     7  // the inverseData array.
     8  type elem uint16
     9  
    10  const (
    11  	tagNeutral elem = iota << typeShift
    12  	tagAmbiguous
    13  	tagWide
    14  	tagNarrow
    15  	tagFullwidth
    16  	tagHalfwidth
    17  )
    18  
    19  const (
    20  	numTypeBits = 3
    21  	typeShift   = 16 - numTypeBits
    22  
    23  	// tagNeedsFold is true for all fullwidth and halfwidth runes except for
    24  	// the Won sign U+20A9.
    25  	tagNeedsFold = 0x1000
    26  
    27  	// The Korean Won sign is halfwidth, but SHOULD NOT be mapped to a wide
    28  	// variant.
    29  	wonSign rune = 0x20A9
    30  )