create_formula_error_tokens
Defined in header: <ixion/formula.hpp>
-
formula_tokens_t ixion::create_formula_error_tokens(model_context &cxt, std::string_view src_formula, std::string_view error)
Create a set of tokens that represent an invalid formula.
This can be used for a cell containing an invalid formula expression, and the error information needs to be preserved.
- Parameters:
cxt – model context.
src_formula – original formula string.
error – error string.
- Returns:
a set of tokens, the first of which is a token of type fop_error, followed by two string tokens. The second token stores the original formula string, whereas the third one stores the error string. The first token stores the number of tokens that follows as its value of type std::size_t, which is always 2 in the current implementation.