com.jaxfront.core.jep
Class Trim

java.lang.Object
  extended by org.nfunk.jep.function.PostfixMathCommand
      extended by com.jaxfront.core.jep.JaxfrontMathCommand
          extended by com.jaxfront.core.jep.Trim
All Implemented Interfaces:
org.nfunk.jep.function.PostfixMathCommandI

public class Trim
extends JaxfrontMathCommand

Removes the second string from the first string. e.q.: trim("Hello","o") = "Hell"

Version:
1.60

Constructor Summary
Trim()
          Constructor.
 
Method Summary
 void run(MathEvaluator.MathCommunicator communicator, java.util.Stack stack)
           
 java.lang.String trim(java.lang.String source, java.lang.String toSearchFor)
           
 
Methods inherited from class com.jaxfront.core.jep.JaxfrontMathCommand
run
 
Methods inherited from class org.nfunk.jep.function.PostfixMathCommand
getNumberOfParameters, getRootNode, run, setCurNumberOfParameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Trim

public Trim()
Constructor.

Method Detail

run

public void run(MathEvaluator.MathCommunicator communicator,
                java.util.Stack stack)
         throws org.nfunk.jep.ParseException
Specified by:
run in class JaxfrontMathCommand
Throws:
org.nfunk.jep.ParseException
See Also:
org.nfunk.jep.function.PostfixMathCommandI#run(Stack)

trim

public java.lang.String trim(java.lang.String source,
                             java.lang.String toSearchFor)