public class IndexFunction extends FunctionProvider
| Modifier and Type | Class and Description |
|---|---|
protected static class |
IndexFunction.Stack<C> |
| Modifier and Type | Field and Description |
|---|---|
protected static NodeFunction<String> |
index |
protected static Cache<String,String> |
indexCache |
functions, getFunctions| Constructor and Description |
|---|
IndexFunction() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] argv) |
protected static String |
romanSuccessor(String index)
Calculates the 'successor' of a roman number, preserving uppercase/lowercase.
|
static String |
successor(String index)
Returns the 'successor' of a string.
|
protected static String |
successor(String index,
String separator,
String joiner,
boolean roman)
Calculates the 'successor' of an index String.
|
addFunction, createParameters, getFunction, getFunctions, getFunctionValue, newFunctionInstanceprotected static NodeFunction<String> index
public static String successor(String index)
protected static String romanSuccessor(String index)
protected static String successor(String index, String separator, String joiner, boolean roman)
index - The string to succeedseparator - Regular expression to split up the string first (e.g. "\\.")joiner - String to rejoin it again (e.g. ".")roman - Whether to consider roman numberspublic static void main(String[] argv)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}