|
|
Donner
C++20 SVG rendering library
|
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...
#include "donner/base/parser/NumberParser.h"
Classes | |
| struct | Result |
| Container for parse result, containing the parsed result and the number of characters that were consumed to parse it. More... | |
| struct | Options |
| Options to modify the parsing behavior. More... | |
Static Public Member Functions | |
| static ParseResult< Result > | Parse (std::string_view str, Options options=Options()) |
| Parse an SVG number. | |
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.
| struct donner::parser::NumberParser::Result |
|
static |
Parse an SVG number.
This corresponds from the CSS3 <number-token> production: https://www.w3.org/TR/css-syntax-3/#number-token-diagram
It contains:
| str | String to parse, not all characters may be consumed. |
| options | Parser options. |