class

CMiriNumericExpression

Module
Miri
Header
#include "Miri/Core/CMiriNumericExpression.h"
Namespace
Miri

Constructors

SignatureNameDescription
CMiriNumericExpression() = deleteCMiriNumericExpression

Public functions

ReturnsNameDescription
boolEvaluateEvaluates text.
boolIsKnownUnitTrue when the unit name is one Evaluate understands.

Function details

CMiriNumericExpression

C++
CMiriNumericExpression() = delete

Evaluate

C++
static bool Evaluate(const std::string& text, double currentValue, const std::string& fieldUnit, double& outValue)

Evaluates text. fieldUnit is the field's own unit ("" for none). Returns false — and leaves outValue alone — for anything that is not a complete, valid expression: a half-typed "1e" or "2*" never produces a number.

IsKnownUnit

C++
static bool IsKnownUnit(const std::string& unit)

True when the unit name is one Evaluate understands.

Generated from Miri/Core/CMiriNumericExpression.h via miri.json · Dec 5, 2026Version 1.1.0