public static String parseFunction(String functionCall) throws FBSQLParseException {
  functionCall=functionCall.trim();
  checkSyntax(functionCall);
  int parenthesisStart=functionCall.indexOf('(');
  return parenthesisStart != -1 ? functionCall.substring(0,parenthesisStart) : functionCall;
}

public static String parseFunction ( String functionCall ) throws FBSQLParseException { functionCall = functionCall . trim ( ) ; checkSyntax ( functionCall ) ; int parenthesisStart = functionCall . indexOf ( '(' ) ; return parenthesisStart != - 1 ? functionCall . substring ( 0 , parenthesisStart ) : functionCall ; }
extract function name from the function call .
