org.apache.poi.hssf.record.formula.functions
Class Replace

java.lang.Object
  extended by org.apache.poi.hssf.record.formula.functions.TextFunction
      extended by org.apache.poi.hssf.record.formula.functions.Replace
All Implemented Interfaces:
Function

public final class Replace
extends TextFunction

An implementation of the Excel REPLACE() function

: Replaces part of a text string based on the number of characters you specify, with another text string.
Syntax:
REPLACE(oldText, startNum, numChars, newText)

oldText The text string containing characters to replace
startNum The position of the first character to replace (1-based)
numChars The number of characters to replace
newText The new text value to replace the removed section

Author:
Manda Wilson < wilson at c bio dot msk cc dot org >

Field Summary
 
Fields inherited from class org.apache.poi.hssf.record.formula.functions.TextFunction
CONCATENATE, EMPTY_STRING, EXACT, LEFT, LEN, LOWER, MID, RIGHT, TRIM, UPPER
 
Constructor Summary
Replace()
           
 
Method Summary
protected  ValueEval evaluateFunc(Eval[] args, int srcCellRow, short srcCellCol)
           
 
Methods inherited from class org.apache.poi.hssf.record.formula.functions.TextFunction
evaluate, evaluateIntArg, evaluateStringArg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Replace

public Replace()
Method Detail

evaluateFunc

protected ValueEval evaluateFunc(Eval[] args,
                                 int srcCellRow,
                                 short srcCellCol)
                          throws EvaluationException
Specified by:
evaluateFunc in class TextFunction
Throws:
EvaluationException


Copyright 2008 The Apache Software Foundation or its licensors, as applicable.