Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
donner::svg::parser::ClockValueParser Class Reference

Parses SMIL clock values from string representation. More...

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

Static Public Member Functions

static ParseResult< components::ClockValueParse (std::string_view str)
 Parse a clock value string.

Detailed Description

Parses SMIL clock values from string representation.

Supported formats per the SVG Animations spec:

  • Full clock: HH:MM:SS or HH:MM:SS.frac
  • Partial clock: MM:SS or MM:SS.frac
  • Timecount: <number>h, <number>min, <number>s, <number>ms
  • Bare number: interpreted as seconds
  • indefinite

Member Function Documentation

◆ Parse()

ParseResult< components::ClockValue > donner::svg::parser::ClockValueParser::Parse ( std::string_view str)
static

Parse a clock value string.

Parameters
strThe string to parse.
Returns
The parsed ClockValue, or an error.

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