com.jaxfront.core.jep
Class Trim
java.lang.Object
org.nfunk.jep.function.PostfixMathCommand
com.jaxfront.core.jep.JaxfrontMathCommand
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. |
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 |
Trim
public Trim()
- Constructor.
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)