| Unit: |
SDL_math2 |
| Class: |
none |
| Declaration: |
function CheckParanthInExp (Expression: string): integer; |
The function CheckParanthInExp checks the correctness of parantheses in a mathematical expression. The parameter Expression contains the mathematical expression (which is typically either the left or the right side of an equation). The function returns the following status codes:
0 ... all parantheses are balanced
< 0 ... at least one closing paranthesis is inappropriate, the index of the offending paranthesis is returned as a negative number
> 0 ... the returned value equals the number of missing closing parantheses
|