Donner
C++20 SVG rendering library
|
Parses XML attributes and sets applies them to SVGElements. More...
#include "donner/svg/parser/AttributeParser.h"
Static Public Member Functions | |
static std::optional< ParseError > | ParseAndSetAttribute (SVGParserContext &context, SVGElement &element, const xml::XMLQualifiedNameRef &name, std::string_view value) noexcept |
Parse an XML attribute and set it on the given element . | |
Parses XML attributes and sets applies them to SVGElements.
|
staticnoexcept |
Parse an XML attribute and set it on the given element
.
context | The parser context, used to store XML document metadata and store warnings. |
element | The element to set the attribute on. |
name | The name of the attribute, as specified in the document's XML. |
value | The value of the attribute. |