org.pentaho.reporting.libraries.formula.function.text

Class MidFunction

public class MidFunction extends Object implements Function

This function returns extracted text, given an original text, starting position, and length.

Author: Cedric Pronzato

Constructor Summary
MidFunction()
Method Summary
TypeValuePairevaluate(FormulaContext context, ParameterCallback parameters)
StringgetCanonicalName()
static Stringprocess(String text, int start, int lengthValue)
Computes the substring for the given text, using the 1-based start index and the given length.

Constructor Detail

MidFunction

public MidFunction()

Method Detail

evaluate

public TypeValuePair evaluate(FormulaContext context, ParameterCallback parameters)

getCanonicalName

public String getCanonicalName()

process

public static String process(String text, int start, int lengthValue)
Computes the substring for the given text, using the 1-based start index and the given length.

Parameters: text start lengthValue

Returns: