forked from mefistotelis/psx_mnd_sym
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclass_string.go
41 lines (36 loc) · 1020 Bytes
/
class_string.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Code generated by "stringer -linecomment -type Class"; DO NOT EDIT.
package sym
import "strconv"
const (
_Class_name_0 = "AUTOEXTSTATREG"
_Class_name_1 = "LABEL"
_Class_name_2 = "MOSARGSTRTAGMOUUNTAGTPDEF"
_Class_name_3 = "ENTAGMOEREGPARMFIELD"
_Class_name_4 = "EOS103"
)
var (
_Class_index_0 = [...]uint8{0, 4, 7, 11, 14}
_Class_index_2 = [...]uint8{0, 3, 6, 12, 15, 20, 25}
_Class_index_3 = [...]uint8{0, 5, 8, 15, 20}
_Class_index_4 = [...]uint8{0, 3, 6}
)
func (i Class) String() string {
switch {
case 1 <= i && i <= 4:
i -= 1
return _Class_name_0[_Class_index_0[i]:_Class_index_0[i+1]]
case i == 6:
return _Class_name_1
case 8 <= i && i <= 13:
i -= 8
return _Class_name_2[_Class_index_2[i]:_Class_index_2[i+1]]
case 15 <= i && i <= 18:
i -= 15
return _Class_name_3[_Class_index_3[i]:_Class_index_3[i+1]]
case 102 <= i && i <= 103:
i -= 102
return _Class_name_4[_Class_index_4[i]:_Class_index_4[i+1]]
default:
return "Class(" + strconv.FormatInt(int64(i), 10) + ")"
}
}