Commit c5c1880a authored by T.J. Corona's avatar T.J. Corona Committed by Kitware Robot

Merge topic 'unary-plus'

5bf6e902 vtkFunctionParser: added support for capital 'E' in scientific notation.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Utkarsh Ayachit's avatarUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Merge-request: !533
parents 874b1ddc 5bf6e902
......@@ -1563,7 +1563,8 @@ void vtkFunctionParser::BuildInternalSubstringStructure(int beginIndex,
!((this->Function[i] == '-' || this->Function[i] == '+') &&
(this->IsElementaryOperator(this->Function[i-1]) ||
this->Function[i-1] == '(' ||
(this->Function[i-1] == 'e' && i > 1 &&
((this->Function[i-1] == 'e' || this->Function[i-1] == 'E') &&
i > 1 &&
isdigit(this->Function[i-2])))) &&
!(this->Function[i] == '.' &&
(i+1 < this->FunctionLength) &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment