You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

31 lines
698 B

  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. )