MCPcopy
hub / github.com/kubernetes/client-go / next

Method next

util/jsonpath/parser.go:96–105  ·  view source on GitHub ↗

next returns the next rune in the input.

()

Source from the content-addressed store, hash-verified

94
95// next returns the next rune in the input.
96func (p *Parser) next() rune {
97 if p.pos >= len(p.input) {
98 p.width = 0
99 return eof
100 }
101 r, w := utf8.DecodeRuneInString(p.input[p.pos:])
102 p.width = w
103 p.pos += p.width
104 return r
105}
106
107// peek returns but does not consume the next rune in the input.
108func (p *Parser) peek() rune {

Callers 9

peekMethod · 0.95
parseTextMethod · 0.95
parseInsideActionMethod · 0.95
parseIdentifierMethod · 0.95
parseNumberMethod · 0.95
parseArrayMethod · 0.95
parseFilterMethod · 0.95
parseQuoteMethod · 0.95
advanceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected