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

Function isSpace

xmlparser/decoder.go:681–683  ·  view source on GitHub ↗

isSpace checks if a byte is a whitespace character.

(b byte)

Source from the content-addressed store, hash-verified

679
680// isSpace checks if a byte is a whitespace character.
681func isSpace(b byte) bool {
682 return b == ' ' || b == '\r' || b == '\n' || b == '\t'
683}
684
685func (d *Decoder) checkAndDiscardPrefix(prefix []byte) bool {
686 prefixLen := len(prefix)

Callers 2

skipSpacesMethod · 0.85
WriteToMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected