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.

kind_string.go 787B

12345678910111213141516171819202122232425262728
  1. // Code generated by "stringer -type=Kind"; DO NOT EDIT.
  2. package width
  3. import "strconv"
  4. func _() {
  5. // An "invalid array index" compiler error signifies that the constant values have changed.
  6. // Re-run the stringer command to generate them again.
  7. var x [1]struct{}
  8. _ = x[Neutral-0]
  9. _ = x[EastAsianAmbiguous-1]
  10. _ = x[EastAsianWide-2]
  11. _ = x[EastAsianNarrow-3]
  12. _ = x[EastAsianFullwidth-4]
  13. _ = x[EastAsianHalfwidth-5]
  14. }
  15. const _Kind_name = "NeutralEastAsianAmbiguousEastAsianWideEastAsianNarrowEastAsianFullwidthEastAsianHalfwidth"
  16. var _Kind_index = [...]uint8{0, 7, 25, 38, 53, 71, 89}
  17. func (i Kind) String() string {
  18. if i < 0 || i >= Kind(len(_Kind_index)-1) {
  19. return "Kind(" + strconv.FormatInt(int64(i), 10) + ")"
  20. }
  21. return _Kind_name[_Kind_index[i]:_Kind_index[i+1]]
  22. }