MCPcopy Create free account
hub / github.com/buger/jsonparser / nextTokenConfig

Function nextTokenConfig

parser.go:241–252  ·  view source on GitHub ↗

SYS-REQ-115

(_ Config, data []byte)

Source from the content-addressed store, hash-verified

239
240// SYS-REQ-115
241func nextTokenConfig(_ Config, data []byte) int {
242 for i, c := range data {
243 // reqproof:invariant 0 <= i
244 // reqproof:invariant i <= len(data)
245 if c == ' ' || c == '\n' || c == '\r' || c == '\t' {
246 continue
247 }
248 return i
249 }
250
251 return -1
252}
253
254// SYS-REQ-001
255// Find position of last character which is not whitespace

Callers 8

findKeyStartConfigFunction · 0.85
nextTokenFunction · 0.85
searchKeysConfigFunction · 0.85
deleteFoundConfigFunction · 0.85
setConfigFunction · 0.85
internalGetConfigFunction · 0.85
arrayEachConfigFunction · 0.85
objectEachConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected