KSeExpr
4.0.4.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) |
double_t KSeExpr::Utils::atof | ( | const char * | num | ) |
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(), atof(), and parseRangeComment().
double_t KSeExpr::Utils::atof | ( | const std::string & | num | ) |
KSeExpr_DEFAULT double_t KSeExpr::Utils::floor | ( | double_t | val | ) |
Definition at line 168 of file Utils.cpp.
Referenced by KSeExpr::CellNoise(), KSeExpr::defineBuiltins(), KSeExpr::hslvalue(), main(), KSeExpr::noiseHelper(), KSeExpr::rgbtohsl(), KSeExpr::round(), KSeExpr::voronoi_f1_3d(), and KSeExpr::voronoi_f1f2_3d().
bool KSeExpr::Utils::parseLabelComment | ( | const std::string & | comment, |
std::string & | label | ||
) |
Definition at line 124 of file Utils.cpp.
References trim().
Referenced by ColorSwatchEditable::parseComment().
bool KSeExpr::Utils::parseRangeComment | ( | const std::string & | comment, |
double & | from, | ||
double & | to | ||
) |
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::parseRangeComment | ( | const std::string & | comment, |
float & | from, | ||
float & | to | ||
) |
bool KSeExpr::Utils::parseRangeComment | ( | const std::string & | comment, |
int32_t & | from, | ||
int32_t & | to | ||
) |
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 | ) |
int32_t KSeExpr::Utils::strtol | ( | const char * | num | ) |
Referenced by parseRangeComment(), and strtol().
int32_t KSeExpr::Utils::strtol | ( | const std::string & | num | ) |
|
inline |
Definition at line 19 of file Utils.h.
Referenced by parseLabelComment(), parseRangeComment(), and parseTypeNameComment().