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

Classes

class  donner::base::parser::NumberParser
 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::base::parser::NumberParser::Result
 Container for parse result, containing the parsed result and the number of characters that were consumed to parse it. More...
 
struct  donner::base::parser::NumberParser::Options
 Options to modify the parsing behavior. More...
 

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
 
namespace  donner::base::parser
 Parsers for shared data types such as NumberParser and LengthParser.
 

Class Documentation

◆ donner::base::parser::NumberParser::Result

struct donner::base::parser::NumberParser::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 number = 0.0 The parsed result.