------------------------------------------------------------------------------
| 894 | |
| 895 | //------------------------------------------------------------------------------ |
| 896 | int vtkFunctionParser::IsVariableName(int currentIndex) |
| 897 | { |
| 898 | for (int i = 0, max = this->GetNumberOfScalarVariables(); i < max; i++) |
| 899 | { |
| 900 | if (strncmp(this->ScalarVariableNames[i].c_str(), &this->Function[currentIndex], |
| 901 | this->ScalarVariableNames[i].size()) == 0) |
| 902 | { |
| 903 | return 1; |
| 904 | } |
| 905 | } |
| 906 | for (int i = 0, max = this->GetNumberOfVectorVariables(); i < max; i++) |
| 907 | { |
| 908 | if (strncmp(this->VectorVariableNames[i].c_str(), &this->Function[currentIndex], |
| 909 | this->VectorVariableNames[i].size()) == 0) |
| 910 | { |
| 911 | return 1; |
| 912 | } |
| 913 | } |
| 914 | |
| 915 | return 0; |
| 916 | } |
| 917 | |
| 918 | //------------------------------------------------------------------------------ |
| 919 | int vtkFunctionParser::IsElementaryOperator(int op) |
no test coverage detected