MCPcopy Create free account
hub / github.com/ForestHubAI/edge-agents / safeCharAt

Method safeCharAt

go/engine/expr/parser.go:384–389  ·  view source on GitHub ↗
(pos int)

Source from the content-addressed store, hash-verified

382}
383
384func (p *parser) safeCharAt(pos int) byte {
385 if pos >= len(p.input) {
386 return 0
387 }
388 return p.input[pos]
389}
390
391func isIdentChar(ch byte) bool {
392 return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9') || ch == '_'

Callers 1

parseAtomMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected