trieval.go 698 B

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