本站源代码
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.

29 lines
787B

  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. }
上海开阖软件有限公司 沪ICP备12045867号-1