Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::xml::detail::XMLTokenizerImpl Class Reference

Internal tokenizer state, factored out of the template so the header doesn't carry lambdas across translation units (which would cause the goto_into_protected_scope issue with goto + lambdas in the same scope). More...

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

Public Member Functions

 XMLTokenizerImpl (std::string_view source)
 Create a tokenizer over caller-owned XML source bytes.
template<typename EmitFn>
void run (EmitFn &&emitFn)
 Run the tokenizer, calling emitFn(XMLToken) for each token.

Detailed Description

Internal tokenizer state, factored out of the template so the header doesn't carry lambdas across translation units (which would cause the goto_into_protected_scope issue with goto + lambdas in the same scope).

Constructor & Destructor Documentation

◆ XMLTokenizerImpl()

donner::xml::detail::XMLTokenizerImpl::XMLTokenizerImpl ( std::string_view source)
inlineexplicit

Create a tokenizer over caller-owned XML source bytes.

Parameters
sourceSource text that must outlive this tokenizer.

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