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

Method readNSName

xmlparser/decoder.go:621–627  ·  view source on GitHub ↗

readNSName reads a name with optional namespace prefix (e.g., "svg:svg").

()

Source from the content-addressed store, hash-verified

619
620// readNSName reads a name with optional namespace prefix (e.g., "svg:svg").
621func (d *Decoder) readNSName() (Name, bool) {
622 if !d.readName() {
623 return Name(""), false
624 }
625
626 return Name(d.buf.Bytes()), true
627}
628
629// readName reads a name (tag or attribute) to the buffer until a non-name byte is encountered.
630func (d *Decoder) readName() bool {

Callers 2

readStartTagMethod · 0.95
readEndTagMethod · 0.95

Calls 3

readNameMethod · 0.95
NameTypeAlias · 0.85
BytesMethod · 0.80

Tested by

no test coverage detected