OpenXLSX 1.9.1
Loading...
Searching...
No Matches
OpenXLSX::XLFormulaLexer Class Reference

Tokenises a raw Excel formula string (with or without leading '='). More...

#include <XLFormulaEngine.hpp>

Static Public Member Functions

static std::vector< XLTokentokenize (std::string_view formula)
 Tokenise the given formula.
 

Detailed Description

Tokenises a raw Excel formula string (with or without leading '=').

Hand-written character scanner; zero heap allocations during scanning. Range references like A1:B10 are emitted as a single CellRef token whose text is "A1:B10".

Member Function Documentation

◆ tokenize()

std::vector< XLToken > OpenXLSX::XLFormulaLexer::tokenize ( std::string_view  formula)
static

Tokenise the given formula.

Parameters
formulaThe formula string (may start with '=').
Returns
Ordered vector of tokens, last element always XLTokenKind::End.

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