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

Function isValueByte

xmlparser/decoder.go:364–369  ·  view source on GitHub ↗

isValueByte checks if a byte is valid in an unquoted attribute value. See: https://www.w3.org/TR/REC-html40/intro/sgmltut.html#h-3.2.2

(c byte)

Source from the content-addressed store, hash-verified

362// isValueByte checks if a byte is valid in an unquoted attribute value.
363// See: https://www.w3.org/TR/REC-html40/intro/sgmltut.html#h-3.2.2
364func isValueByte(c byte) bool {
365 return 'A' <= c && c <= 'Z' ||
366 'a' <= c && c <= 'z' ||
367 '0' <= c && c <= '9' ||
368 c == '_' || c == ':' || c == '-'
369}
370
371// readEndTag reads an end tag.
372func (d *Decoder) readEndTag() (Name, bool) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected