<< Click to Display Table of Contents >> Navigation: Reference Manual > Global functions |
DSL_errorStringHandler& DSL_errorH();
Returns a reference to the global error handler.
bool DSL_isFinite(double x);
Returns true if x is a finite number.
double DSL_nan();
Returns a value representing not-a-number.
double DSL_inf();
Returns double-precision positive infinity value. For negative infinity, use -DSL_inf().
bool DSL_isPermutation(const int* permutation, int size);
Returns true if the buffer pointed to by the permutation parameter with the specified size is a permutation (contains each number from the 0..size-1 range).
bool DSL_isCharValidForIdentifier(char c, bool start);
Returns true if character c can be used in a valid SMILE identifier. If start is true, the check is performed for the first character in the SMILE identifier (which cannot be a number or an underscore).
bool DSL_isValidIdentifier(const char *idToCheck);
Returns true if idToCheck is a valid SMILE identifier.
void DSL_appendInt(std::string &s, int x);
void DSL_appendDouble(std::string &s, double x);
Append the string representation of x to s.