Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::svg::parser::PathParser Class Reference

Parse an SVG path "d"-string, see Path data syntax. More...

#include "donner/svg/parser/PathParser.h"

Static Public Member Functions

static ParseResult< PathSplineParse (std::string_view d)
 Parse an SVG path "d"-string, see Path data syntax.
 

Detailed Description

Parse an SVG path "d"-string, see Path data syntax.

Member Function Documentation

◆ Parse()

ParseResult< PathSpline > donner::svg::parser::PathParser::Parse ( std::string_view d)
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.

Parameters
dString corresponding to the SVG <path d="..."> parameter.
Returns
Parsed PathSpline and/or an error.

The documentation for this class was generated from the following files: