|
|
Donner
C++20 SVG rendering library
|
Parse an SVG XML document. More...
#include "donner/svg/parser/SVGParser.h"
Classes | |
| struct | Options |
| Options to modify the parsing behavior. More... | |
Static Public Member Functions | |
| static ParseResult< SVGDocument > | ParseSVG (std::string_view source, std::vector< ParseError > *outWarnings=nullptr, Options options={}, std::unique_ptr< ResourceLoaderInterface > resourceLoader=nullptr) noexcept |
| Parses an SVG XML document from a string (typically the contents of a .svg file). | |
| static ParseResult< SVGDocument > | ParseXMLDocument (xml::XMLDocument &&xmlDocument, std::vector< ParseError > *outWarnings=nullptr, Options options={}, std::unique_ptr< ResourceLoaderInterface > resourceLoader=nullptr) noexcept |
| Parses an SVG XML document from an XML document tree. | |
Parse an SVG XML document.
|
staticnoexcept |
Parses an SVG XML document from a string (typically the contents of a .svg file).
The input buffer does not need to be null-terminated, but if there are embedded null characters parsing will stop.
| source | Input buffer containing the SVG XML document. Will not be modified. | |
| [out] | outWarnings | If non-null, append warnings encountered to this vector. |
| options | Options to modify the parsing behavior. | |
| resourceLoader | Resource loader to use for loading external resources. |
|
staticnoexcept |
Parses an SVG XML document from an XML document tree.
| xmlDocument | XML document to parse. | |
| [out] | outWarnings | If non-null, append warnings encountered to this vector. |
| options | Options to modify the parsing behavior. | |
| resourceLoader | Resource loader to use for loading external resources. |