|
|
Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
|
Parse an SVG path "d"-string, see Path Data Syntax. More...
#include "donner/svg/parser/PathParser.h"
Static Public Member Functions | |
| static ParseResult< Path > | Parse (std::string_view d) |
| Parse an SVG path "d"-string, see Path Data Syntax. | |
Parse an SVG path "d"-string, see Path Data Syntax.
|
static |
Parse an SVG path "d"-string, see Path Data Syntax.
Note that this parser may return both an error and a partial path, since path parsing will return anything that it has parsed before it encountered the error. The caller should use both ParseResult::hasResult() and ParseResult::hasError() to determine what has been returned.
| d | String corresponding to the SVG <path d="..."> parameter. |