26 #ifndef MU_PARSER_INT_H
27 #define MU_PARSER_INT_H
49 static int Round(
value_type v) {
return (
int)(v + ((v>=0) ? 0.5 : -0.5) ); };
88 class change_dec_sep :
public std::numpunct<TChar>
92 explicit change_dec_sep(
char_type cDecSep,
char_type cThousandsSep = 0,
int nGroup = 3)
93 :std::numpunct<TChar>()
95 ,m_cThousandsSep(cThousandsSep)
101 virtual char_type do_decimal_point()
const
106 virtual char_type do_thousands_sep()
const
108 return m_cThousandsSep;
111 virtual std::string do_grouping()
const
118 return std::string(1, (
char)(m_cThousandsSep > 0 ? m_nGroup : CHAR_MAX));
133 virtual void InitConst();
134 virtual void InitCharSets();
virtual void InitFun()
Initialize the default functions.
virtual void InitOprt()
Initialize operators.
This file contains the class definition of the muparser engine.
MUP_BASETYPE value_type
The numeric datatype used by the parser.
Mathematical expressions parser.
Namespace for mathematical applications.
string_type::value_type char_type
The character type used by the parser.
Mathematical expressions parser (base parser engine).