Parses SMIL clock values from string representation. More...
#include "donner/svg/parser/ClockValueParser.h"
Static Public Member Functions | |
| static ParseResult< components::ClockValue > | Parse (std::string_view str) |
| Parse a clock value string. | |
Parses SMIL clock values from string representation.
Supported formats per the SVG Animations spec:
Clock components are decimal digits only; the seconds component may carry a . fraction with at least one digit on each side. For offsets, one optional + or - sign may precede the value, and XML whitespace (space, tab, CR, LF) is allowed around the value and between the sign and the value, e.g. - 01:00.
Beyond the strict SMIL grammar, a timecount may use an exponent (1e-3s) or a leading dot (.5s), the number forms of donner::parser::NumberParser.
|
static |
Parse a clock value string.
| str | The string to parse. |