forked from pemistahl/lingua-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
isocode639_1_string.go
98 lines (92 loc) · 2.12 KB
/
isocode639_1_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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// Code generated by "stringer -type=IsoCode639_1"; DO NOT EDIT.
package lingua
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[AF-0]
_ = x[AR-1]
_ = x[AZ-2]
_ = x[BE-3]
_ = x[BG-4]
_ = x[BN-5]
_ = x[BS-6]
_ = x[CA-7]
_ = x[CS-8]
_ = x[CY-9]
_ = x[DA-10]
_ = x[DE-11]
_ = x[EL-12]
_ = x[EN-13]
_ = x[EO-14]
_ = x[ES-15]
_ = x[ET-16]
_ = x[EU-17]
_ = x[FA-18]
_ = x[FI-19]
_ = x[FR-20]
_ = x[GA-21]
_ = x[GU-22]
_ = x[HE-23]
_ = x[HI-24]
_ = x[HR-25]
_ = x[HU-26]
_ = x[HY-27]
_ = x[ID-28]
_ = x[IS-29]
_ = x[IT-30]
_ = x[JA-31]
_ = x[KA-32]
_ = x[KK-33]
_ = x[KO-34]
_ = x[LA-35]
_ = x[LG-36]
_ = x[LT-37]
_ = x[LV-38]
_ = x[MI-39]
_ = x[MK-40]
_ = x[MN-41]
_ = x[MR-42]
_ = x[MS-43]
_ = x[NB-44]
_ = x[NL-45]
_ = x[NN-46]
_ = x[PA-47]
_ = x[PL-48]
_ = x[PT-49]
_ = x[RO-50]
_ = x[RU-51]
_ = x[SK-52]
_ = x[SL-53]
_ = x[SN-54]
_ = x[SO-55]
_ = x[SQ-56]
_ = x[SR-57]
_ = x[ST-58]
_ = x[SV-59]
_ = x[SW-60]
_ = x[TA-61]
_ = x[TE-62]
_ = x[TH-63]
_ = x[TL-64]
_ = x[TN-65]
_ = x[TR-66]
_ = x[TS-67]
_ = x[UK-68]
_ = x[UR-69]
_ = x[VI-70]
_ = x[XH-71]
_ = x[YO-72]
_ = x[ZH-73]
_ = x[ZU-74]
_ = x[UnknownIsoCode639_1-75]
}
const _IsoCode639_1_name = "AFARAZBEBGBNBSCACSCYDADEELENEOESETEUFAFIFRGAGUHEHIHRHUHYIDISITJAKAKKKOLALGLTLVMIMKMNMRMSNBNLNNPAPLPTRORUSKSLSNSOSQSRSTSVSWTATETHTLTNTRTSUKURVIXHYOZHZUUnknownIsoCode639_1"
var _IsoCode639_1_index = [...]uint8{0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 169}
func (i IsoCode639_1) String() string {
if i < 0 || i >= IsoCode639_1(len(_IsoCode639_1_index)-1) {
return "IsoCode639_1(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _IsoCode639_1_name[_IsoCode639_1_index[i]:_IsoCode639_1_index[i+1]]
}