MCPcopy Create free account
hub / github.com/segmentio/encoding / skipSpacesN

Function skipSpacesN

json/parse.go:44–53  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

42}
43
44func skipSpacesN(b []byte) ([]byte, int) {
45 for i := range b {
46 switch b[i] {
47 case sp, ht, nl, cr:
48 default:
49 return b[i:], i
50 }
51 }
52 return nil, 0
53}
54
55func trimTrailingSpaces(b []byte) []byte {
56 if len(b) > 0 && b[len(b)-1] <= 0x20 {

Callers 2

skipSpacesFunction · 0.85
readValueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…