KSeExpr 6.0.0.0
|
Functions | |
KSeExpr_DEFAULT double_t | round (double_t val) |
KSeExpr_DEFAULT double_t | floor (double_t val) |
double_t | atof (const char *num) |
double_t | atof (const std::string &num) |
int32_t | strtol (const char *num) |
int32_t | strtol (const std::string &num) |
bool | parseRangeComment (const std::string &comment, double &from, double &to) |
bool | parseRangeComment (const std::string &comment, float &from, float &to) |
bool | parseRangeComment (const std::string &comment, int32_t &from, int32_t &to) |
bool | parseTypeNameComment (const std::string &comment, std::string &type, std::string &name) |
bool | parseLabelComment (const std::string &comment, std::string &label) |
std::string | trim (const std::string &s) |
Locale-independent atof() - amyspark Prevents SeExpr missing mantissas if LC_ALL is not "C" (like Qt)
Definition at line 51 of file Utils.cpp.
Referenced by ExprControlCollection::addControlDialog(), parseRangeComment(), and parseRangeComment().
KSeExpr_DEFAULT double_t KSeExpr::Utils::floor | ( | double_t | val | ) |
Definition at line 168 of file Utils.cpp.
Referenced by KSeExpr::CellNoise(), and KSeExpr::noiseHelper().
Definition at line 124 of file Utils.cpp.
References trim().
Referenced by ColorSwatchEditable::parseComment().
Definition at line 7 of file Utils.cpp.
References atof(), and trim().
Referenced by KSeExpr::ExprScalarAssignSpec::ExprScalarAssignSpec(), KSeExpr::ExprVectorAssignSpec::ExprVectorAssignSpec(), NumberEditable::parseComment(), and VectorEditable::parseComment().
bool KSeExpr::Utils::parseTypeNameComment | ( | const std::string & | comment, |
std::string & | type, | ||
std::string & | name | ||
) |
Definition at line 99 of file Utils.cpp.
References trim().
Referenced by KSeExpr::ExprStrSpec::match(), and StringEditable::parseComment().
KSeExpr_DEFAULT double_t KSeExpr::Utils::round | ( | double_t | val | ) |
Referenced by parseRangeComment().
|
inline |
Definition at line 19 of file Utils.h.
Referenced by parseLabelComment(), parseRangeComment(), parseRangeComment(), parseRangeComment(), and parseTypeNameComment().