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

Function nextTokenConfig

parser.go:240–251  ·  view source on GitHub ↗

SYS-REQ-115

(_ Config, data []byte)

Source from the content-addressed store, hash-verified

238
239// SYS-REQ-115
240func nextTokenConfig(_ Config, data []byte) int {
241 for i, c := range data {
242 // reqproof:invariant 0 <= i
243 // reqproof:invariant i <= len(data)
244 if c == ' ' || c == '\n' || c == '\r' || c == '\t' {
245 continue
246 }
247 return i
248 }
249
250 return -1
251}
252
253// SYS-REQ-001
254// 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