Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::svg::parser::ParserOrigin Struct Reference

Contains the start location within a string where a subparser was invoked, used for remapping errors back to their original text. More...

#include "donner/svg/parser/details/SVGParserContext.h"

Static Public Member Functions

static ParserOrigin StartOffset (size_t offset)
 Create a ParserOrigin with the given start offset.
 

Public Attributes

size_t startOffset
 0-based offset into the string where the subparser started.
 

Detailed Description

Contains the start location within a string where a subparser was invoked, used for remapping errors back to their original text.

Member Function Documentation

◆ StartOffset()

static ParserOrigin donner::svg::parser::ParserOrigin::StartOffset ( size_t offset)
inlinestatic

Create a ParserOrigin with the given start offset.

Parameters
offset0-based offset into the string where the subparser started.

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