Donner
C++20 SVG rendering library
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  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  LengthParserImpl
 Implementation of the LengthParser. 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...
 
class  ParserBase
 Base class for parsers, containing common functionality such as maintaining the current parse location, skipping whitespace, and parsing numbers. 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)
 
int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size)
 Fuzzer entry point, see https://llvm.org/docs/LibFuzzer.html.
 

Detailed Description

Parsers for shared data types such as NumberParser and LengthParser.

Enumeration Type Documentation

◆ DataUrlParserError

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

Enumerator
InvalidDataUrl 

The data URL is invalid.