Donner 0.5.1
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::parser Namespace Reference

Parsers for shared data types such as NumberParser and LengthParser. More...

Classes

class  DataUrlParser
 Parse a URL, which can be an external resource or a data URL. More...
class  ParserBase
 Base class for parsers, containing common functionality such as maintaining the current parse location, skipping whitespace, and parsing numbers. More...
class  IntegerParser
 Parser for positive integers, either decimal or hexadecimal. More...
class  LengthParser
 Parser for CSS <length-percentage> strings, such as "10px", "30%", "10em", etc. More...
class  LineOffsets
 Helper class for finding newlines in a string, so that error messages can convert string-relative offsets into line numbers. More...
class  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...

Enumerations

enum class  DataUrlParserError : uint8_t { InvalidDataUrl }
 Enum of possible errors that can occur when loading an image. More...

Functions

std::string_view ToString (DataUrlParserError err)
 Returns a human-readable description of a DataUrlParserError.

Detailed Description

Parsers for shared data types such as NumberParser and LengthParser.

Enumeration Type Documentation

◆ DataUrlParserError

enum class donner::parser::DataUrlParserError : uint8_t
strong

Enum of possible errors that can occur when loading an image.

Enumerator
InvalidDataUrl 

The data URL is invalid.