MCPcopy Create free account
hub / github.com/Kitware/VTK / FindEndOfMathFunction

Method FindEndOfMathFunction

Common/Misc/vtkFunctionParser.cxx:1705–1720  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1703
1704//------------------------------------------------------------------------------
1705int vtkFunctionParser::FindEndOfMathFunction(int beginIndex)
1706{
1707 int i = beginIndex, parenthesisCount;
1708
1709 while (this->Function[i] != '(')
1710 {
1711 i++;
1712 }
1713 i++;
1714 for (parenthesisCount = 1; parenthesisCount > 0; ++i)
1715 {
1716 parenthesisCount += this->Function[i] == '(';
1717 parenthesisCount -= this->Function[i] == ')';
1718 }
1719 return i - 1;
1720}
1721
1722//------------------------------------------------------------------------------
1723int vtkFunctionParser::FindEndOfMathConstant(int beginIndex)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected