MCPcopy Index your code
hub / github.com/buger/jsonparser / tokenEnd

Function tokenEnd

parser.go:29–38  ·  view source on GitHub ↗

SYS-REQ-044

(data []byte)

Source from the content-addressed store, hash-verified

27
28// SYS-REQ-044
29func tokenEnd(data []byte) int {
30 for i, c := range data {
31 switch c {
32 case ' ', '\n', '\r', '\t', ',', '}', ']':
33 return i
34 }
35 }
36
37 return len(data)
38}
39
40// SYS-REQ-001
41func findTokenStart(data []byte, token byte) int {

Callers 6

DeleteFunction · 0.85
getTypeFunction · 0.85
TestTokenEndSentinelFunction · 0.85

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…