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. | |
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).
|
inlineexplicit |
Create a tokenizer over caller-owned XML source bytes.
| source | Source text that must outlive this tokenizer. |