-
Notifications
You must be signed in to change notification settings - Fork 21
/
mmsmscdmateleserviceid_string.go
executable file
·41 lines (35 loc) · 1.23 KB
/
mmsmscdmateleserviceid_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 -type=MMSmsCdmaTeleserviceId -trimprefix=MmSmsCdmaTeleserviceId"; DO NOT EDIT.
package modemmanager
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[MmSmsCdmaTeleserviceIdUnknown-0]
_ = x[MmSmsCdmaTeleserviceIdCmt91-4096]
_ = x[MmSmsCdmaTeleserviceIdWpt-4097]
_ = x[MmSmsCdmaTeleserviceIdWmt-4098]
_ = x[MmSmsCdmaTeleserviceIdVmn-4099]
_ = x[MmSmsCdmaTeleserviceIdWap-4100]
_ = x[MmSmsCdmaTeleserviceIdWemt-4101]
_ = x[MmSmsCdmaTeleserviceIdScpt-4102]
_ = x[MmSmsCdmaTeleserviceIdCatpt-4103]
}
const (
_MMSmsCdmaTeleserviceId_name_0 = "Unknown"
_MMSmsCdmaTeleserviceId_name_1 = "Cmt91WptWmtVmnWapWemtScptCatpt"
)
var (
_MMSmsCdmaTeleserviceId_index_1 = [...]uint8{0, 5, 8, 11, 14, 17, 21, 25, 30}
)
func (i MMSmsCdmaTeleserviceId) String() string {
switch {
case i == 0:
return _MMSmsCdmaTeleserviceId_name_0
case 4096 <= i && i <= 4103:
i -= 4096
return _MMSmsCdmaTeleserviceId_name_1[_MMSmsCdmaTeleserviceId_index_1[i]:_MMSmsCdmaTeleserviceId_index_1[i+1]]
default:
return "MMSmsCdmaTeleserviceId(" + strconv.FormatInt(int64(i), 10) + ")"
}
}