|
|
Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
|
Parses XML attributes and sets applies them to SVGElements. More...
#include "donner/svg/parser/AttributeParser.h"
Static Public Member Functions | |
| static std::optional< ParseDiagnostic > | 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. | |
| static std::optional< ParseDiagnostic > | ApplyParsedAttribute (SVGElement &element, const xml::XMLQualifiedNameRef &name, std::string_view value) |
| Apply an XML attribute read by the SVG parser without writing back to source. | |
| static void | RemoveParsedAttribute (SVGElement &element, const xml::XMLQualifiedNameRef &name) |
| Remove an XML attribute from the SVG projection without writing back to source. | |
Parses XML attributes and sets applies them to SVGElements.
|
static |
Apply an XML attribute read by the SVG parser without writing back to source.
| 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. |
|
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. |
|
static |
Remove an XML attribute from the SVG projection without writing back to source.
| element | The element to remove the attribute from. |
| name | The name of the attribute, as specified in the document's XML. |