Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
Number2dParser.h File Reference
#include <string_view>
#include "donner/base/parser/ParseResult.h"
Include dependency graph for Number2dParser.h:

Classes

class  donner::svg::parser::Number2dParser
 Parser for floating point numbers in SVG or CSS, corresponding to the CSS3 <number-token> definition from https://www.w3.org/TR/css-syntax-3/#number-token-diagram. More...
 
struct  donner::svg::parser::Number2dParser::Result
 Container for parse result, containing the parsed result and the number of characters that were consumed to parse it. More...
 

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
 
namespace  donner::svg
 Donner SVG library, which can load, manipulate and render SVG files.
 
namespace  donner::svg::parser
 Parsers for the SVG XML format, XMLParser, as well as individual parsers for SVG components, such as PathParser and TransformParser.
 

Class Documentation

◆ donner::svg::parser::Number2dParser::Result

struct donner::svg::parser::Number2dParser::Result

Container for parse result, containing the parsed result and the number of characters that were consumed to parse it.

Class Members
size_t consumedChars = 0 The number of characters of the input string that were consumed to parse the number.
double numberX = 0.0 The first parsed number.
double numberY = 0.0 The second parsed number.