-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes_string.go
More file actions
79 lines (64 loc) · 2.54 KB
/
types_string.go
File metadata and controls
79 lines (64 loc) · 2.54 KB
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
// Code generated by "stringer -type=Direction,TruncationStrategy,PaddingStrategy,OffsetsCharMode -output=types_string.go ."; DO NOT EDIT.
package tokenizers
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[Left-0]
_ = x[Right-1]
}
const _Direction_name = "LeftRight"
var _Direction_index = [...]uint8{0, 4, 9}
func (i Direction) String() string {
if i >= Direction(len(_Direction_index)-1) {
return "Direction(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Direction_name[_Direction_index[i]:_Direction_index[i+1]]
}
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[TruncateLongestFirst-0]
_ = x[TruncateOnlyFirst-1]
_ = x[TruncateOnlySecond-2]
}
const _TruncationStrategy_name = "TruncateLongestFirstTruncateOnlyFirstTruncateOnlySecond"
var _TruncationStrategy_index = [...]uint8{0, 20, 37, 55}
func (i TruncationStrategy) String() string {
if i >= TruncationStrategy(len(_TruncationStrategy_index)-1) {
return "TruncationStrategy(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _TruncationStrategy_name[_TruncationStrategy_index[i]:_TruncationStrategy_index[i+1]]
}
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[PadLongest-0]
_ = x[PadFixed-1]
}
const _PaddingStrategy_name = "PadLongestPadFixed"
var _PaddingStrategy_index = [...]uint8{0, 10, 18}
func (i PaddingStrategy) String() string {
if i >= PaddingStrategy(len(_PaddingStrategy_index)-1) {
return "PaddingStrategy(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _PaddingStrategy_name[_PaddingStrategy_index[i]:_PaddingStrategy_index[i+1]]
}
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[OffsetsCharModeByte-0]
_ = x[OffsetsCharModeUnicode-1]
}
const _OffsetsCharMode_name = "OffsetsCharModeByteOffsetsCharModeUnicode"
var _OffsetsCharMode_index = [...]uint8{0, 19, 41}
func (i OffsetsCharMode) String() string {
if i >= OffsetsCharMode(len(_OffsetsCharMode_index)-1) {
return "OffsetsCharMode(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _OffsetsCharMode_name[_OffsetsCharMode_index[i]:_OffsetsCharMode_index[i+1]]
}