MCPcopy Create free account
hub / github.com/cogentcore/core / ReadString

Method ReadString

core/svg.go:100–102  ·  view source on GitHub ↗

ReadString reads an XML-formatted SVG file from the given string.

(s string)

Source from the content-addressed store, hash-verified

98
99// ReadString reads an XML-formatted SVG file from the given string.
100func (sv *SVG) ReadString(s string) error {
101 return sv.SVG.ReadXML(strings.NewReader(s))
102}
103
104// SaveSVG saves the current SVG to an XML-encoded standard SVG file.
105func (sv *SVG) SaveSVG(filename Filename) error { //types:add

Callers 5

standardOverflowMenuMethod · 0.80
TestSVGStringFunction · 0.80
parseMethod · 0.80
homePageFunction · 0.80
homeFunction · 0.80

Calls 1

ReadXMLMethod · 0.45

Tested by 1

TestSVGStringFunction · 0.64