Top Description Constructors Methods
org.apache.poi.ss.formula.functions

public final Class Replace

extends Fixed4ArgFunction
Class Inheritance
Imports
org.apache.poi.ss.formula.eval.ErrorEval, .EvaluationException, .StringEval, .ValueEval

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ValueEval
Inherited from org.apache.poi.ss.formula.functions.Fixed4ArgFunction:
evaluate

Constructor Detail

Replaceback to summary
public Replace()

Method Detail

evaluateback to summary
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1, ValueEval arg2, ValueEval arg3)

Implements org.apache.poi.ss.formula.functions.Function4Arg.evaluate.

Doc from org.apache.poi.ss.formula.functions.Function4Arg.evaluate.

see Function#evaluate(ValueEval[], int, int)