MCPcopy
hub / github.com/buger/jsonparser / nextToken

Function nextToken

parser.go:139–150  ·  view source on GitHub ↗

SYS-REQ-001 Find position of next character which is not whitespace

(data []byte)

Source from the content-addressed store, hash-verified

137// SYS-REQ-001
138// Find position of next character which is not whitespace
139func nextToken(data []byte) int {
140 for i, c := range data {
141 switch c {
142 case ' ', '\n', '\r', '\t':
143 continue
144 default:
145 return i
146 }
147 }
148
149 return -1
150}
151
152// SYS-REQ-001
153// Find position of last character which is not whitespace

Callers 10

findKeyStartFunction · 0.85
searchKeysFunction · 0.85
EachKeyFunction · 0.85
DeleteFunction · 0.85
SetFunction · 0.85
internalGetFunction · 0.85
ArrayEachFunction · 0.85
ObjectEachFunction · 0.85

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…