public static String extractFunctionName(String sig){
  int at=sig.indexOf('(');
  if (at > -1)   sig=sig.substring(0,at);
  if (sig != null && (at=sig.indexOf("::")) > -1)   sig=sig.substring(at + 2);
  return sig;
}

public static String extractFunctionName ( String sig ) { int at = sig . indexOf ( '(' ) ; if ( at > - 1 ) sig = sig . substring ( 0 , at ) ; if ( sig != null && ( at = sig . indexOf ( "::" ) ) > - 1 ) sig = sig . substring ( at + 2 ) ; return sig ; }
extract the function name from a signature
