KiCad PCB EDA Suite
Loading...
Searching...
No Matches
calc_parser::VALUE_UTILS Class Reference

#include <text_eval_parser.h>

Static Public Member Functions

static auto ToDouble (const Value &aVal) -> Result< double >
 
static auto ToString (const Value &aVal) -> std::string
 
static auto IsTruthy (const Value &aVal) -> bool
 
static auto ArithmeticOp (const Value &aLeft, const Value &aRight, char aOp) -> Result< Value >
 
static auto ConcatStrings (const Value &aLeft, const Value &aRight) -> Value
 

Detailed Description

Definition at line 91 of file text_eval_parser.h.

Member Function Documentation

◆ ArithmeticOp()

static auto calc_parser::VALUE_UTILS::ArithmeticOp ( const Value & aLeft,
const Value & aRight,
char aOp ) -> Result<Value>
inlinestatic

◆ ConcatStrings()

static auto calc_parser::VALUE_UTILS::ConcatStrings ( const Value & aLeft,
const Value & aRight ) -> Value
inlinestatic

Definition at line 183 of file text_eval_parser.h.

References ToString().

Referenced by BOOST_AUTO_TEST_CASE(), and calc_parser::EVAL_VISITOR::operator()().

◆ IsTruthy()

static auto calc_parser::VALUE_UTILS::IsTruthy ( const Value & aVal) -> bool
inlinestatic

Definition at line 137 of file text_eval_parser.h.

Referenced by BOOST_AUTO_TEST_CASE().

◆ ToDouble()

static auto calc_parser::VALUE_UTILS::ToDouble ( const Value & aVal) -> Result<double>
inlinestatic

◆ ToString()

static auto calc_parser::VALUE_UTILS::ToString ( const Value & aVal) -> std::string
inlinestatic

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