MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / isNameByte

Function isNameByte

xmlparser/decoder.go:640–647  ·  view source on GitHub ↗
(c byte)

Source from the content-addressed store, hash-verified

638}
639
640func isNameByte(c byte) bool {
641 // We allow all non-ASCII bytes as names.
642 return c >= utf8.RuneSelf ||
643 'A' <= c && c <= 'Z' ||
644 'a' <= c && c <= 'z' ||
645 '0' <= c && c <= '9' ||
646 c == '_' || c == ':' || c == '.' || c == '-'
647}
648
649// skipSpaces skips whitespace characters.
650func (d *Decoder) skipSpaces() bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected