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

#include <text_eval_parser.h>

Static Public Member Functions

static RESULT< double > ToDouble (const VALUE &aVal)
 
static std::string ToString (const VALUE &aVal)
 
static char ToChar (const VALUE &aVal)
 
static bool IsTruthy (const VALUE &aVal)
 
static RESULT< VALUE > ArithmeticOp (const VALUE &aLeft, const VALUE &aRight, char aOp)
 
static VALUE ConcatStrings (const VALUE &aLeft, const VALUE &aRight)
 

Detailed Description

Definition at line 91 of file text_eval_parser.h.

Member Function Documentation

◆ ArithmeticOp()

static RESULT< VALUE > calc_parser::VALUE_UTILS::ArithmeticOp ( const VALUE & aLeft,
const VALUE & aRight,
char aOp )
inlinestatic

◆ ConcatStrings()

static VALUE calc_parser::VALUE_UTILS::ConcatStrings ( const VALUE & aLeft,
const VALUE & aRight )
inlinestatic

Definition at line 208 of file text_eval_parser.h.

References ToString().

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

◆ IsTruthy()

static bool calc_parser::VALUE_UTILS::IsTruthy ( const VALUE & aVal)
inlinestatic

Definition at line 148 of file text_eval_parser.h.

Referenced by BOOST_AUTO_TEST_CASE().

◆ ToChar()

static char calc_parser::VALUE_UTILS::ToChar ( const VALUE & aVal)
inlinestatic

Definition at line 137 of file text_eval_parser.h.

References ToString().

Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().

◆ ToDouble()

static RESULT< double > calc_parser::VALUE_UTILS::ToDouble ( const VALUE & aVal)
inlinestatic

◆ ToString()

static std::string calc_parser::VALUE_UTILS::ToString ( const VALUE & aVal)
inlinestatic

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