Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::xml::XMLToken Struct Reference

A single token emitted by the XML tokenizer. More...

#include "donner/base/xml/XMLTokenType.h"

Public Member Functions

std::string_view text (std::string_view source UTILS_LIFETIME_BOUND) const
 Convenience: extract the token's text from the original source.
bool operator== (const XMLToken &other) const =default
 Equality operator (for tests).

Public Attributes

XMLTokenType type
 Token type.
SourceRange range
 Source byte range [start, end).

Detailed Description

A single token emitted by the XML tokenizer.


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