File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -38,17 +38,17 @@ func (*recognizerUtf16le) Match(input *recognizerInput) (output recognizerOutput
38
38
}
39
39
40
40
type recognizerUtf32 struct {
41
- name string
42
- bom []byte
41
+ name string
42
+ bom []byte
43
43
decodeChar func (input []byte ) rune
44
44
}
45
45
46
46
func decodeUtf32be (input []byte ) rune {
47
- return rune (input [0 ] << 24 | input [1 ] << 16 | input [2 ] << 8 | input [3 ])
47
+ return rune (input [0 ]<< 24 | input [1 ]<< 16 | input [2 ]<< 8 | input [3 ])
48
48
}
49
49
50
50
func decodeUtf32le (input []byte ) rune {
51
- return rune (input [3 ] << 24 | input [2 ] << 16 | input [1 ] << 8 | input [0 ])
51
+ return rune (input [3 ]<< 24 | input [2 ]<< 16 | input [1 ]<< 8 | input [0 ])
52
52
}
53
53
54
54
func newRecognizerUtf32be () * recognizerUtf32 {
@@ -68,7 +68,7 @@ func newRecognizerUtf32le() *recognizerUtf32 {
68
68
}
69
69
70
70
func (r * recognizerUtf32 ) Match (input * recognizerInput ) (output recognizerOutput ) {
71
- output = recognizerOutput {
71
+ output = recognizerOutput {
72
72
Charset : r .name ,
73
73
}
74
74
hasBom := bytes .HasPrefix (input .raw , r .bom )
You can’t perform that action at this time.
0 commit comments