![]() |
das2C
das core C utilities (v3)
|
Functions | |
| DAS_API int | das_op_unary (const char *sOp) |
| Convert a string into a unary operator token. | |
| DAS_API int | das_op_binary (const char *sOp) |
| Convert a string into a binary operator token. | |
| DAS_API const char * | das_op_toStr (int nOp, int *pos) |
| Provide a string representation of an operator token and an indication of where the operator normally appears. | |
| DAS_API bool | das_op_isBinary (int nOp) |
| Return true if this is a binary operation, false otherwise. | |
| DAS_API bool | das_op_isUnary (int nOp) |
| Return true if op is a unary operation, false otherwise. | |
| DAS_API int das_op_unary | ( | const char * | sOp | ) |
Convert a string into a unary operator token.
| sOp | a string such as "-", "sqrt", etc. |
| DAS_API int das_op_binary | ( | const char * | sOp | ) |
Convert a string into a binary operator token.
| sOp | a string such as "+", "-", "*", "/", "**", "^" etc. |
| DAS_API const char * das_op_toStr | ( | int | nOp, |
| int * | pos | ||
| ) |
Provide a string representation of an operator token and an indication of where the operator normally appears.
| nOp | The operator token value |
| pos | a pointer to an integer to receive one of the values D2OP_BEFORE, D2OP_BETWEEN or D2OP_AFTER. If pos is NULL the operator position is not set. |