MCPcopy Create free account
hub / github.com/ArashPartow/exprtk / process

Function process

exprtk_test.cpp:9871–9897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9869 using usr_t::process;
9870
9871 bool process(const std::string& unknown_symbol,
9872 usr_symbol_type& st,
9873 T& default_value,
9874 std::string& error_message) exprtk_test_override
9875 {
9876 if (unknown_symbol[0] == 'v')
9877 {
9878 st = usr_t::e_usr_variable_type;
9879 default_value = next_value();
9880 error_message.clear();
9881
9882 return true;
9883 }
9884 else if (unknown_symbol[0] == 'c')
9885 {
9886 st = usr_t::e_usr_constant_type;
9887 default_value = next_value();
9888 error_message.clear();
9889
9890 return true;
9891 }
9892 else
9893 {
9894 error_message = "Unknown symbol...";
9895 return false;
9896 }
9897 }
9898
9899 T next_value(const bool reset = false)
9900 {

Callers 1

operator()Method · 0.85

Calls 1

next_valueFunction · 0.85

Tested by

no test coverage detected