Class StringFunctions.Substring
java.lang.Object
org.apache.juneau.commons.svl.TypedFunction
org.apache.juneau.commons.svl.functions.StringFunctions.Substring
- All Implemented Interfaces:
VarFunction
- Enclosing class:
- StringFunctions
#{substring(s, start)} / #{substring(s, start, end)} — replacement for the
legacy $ST{...} SubstringVar.
Both endpoints are clamped to [0, len(s)] so out-of-range arguments don't throw —
matches the legacy SubstringVar behavior.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.juneau.commons.svl.TypedFunction
invoke, maxArity, minArity
-
Constructor Details
-
Substring
public Substring()
-
-
Method Details
-
name
Description copied from interface:VarFunctionThe function's invocation name as it appears between#{}and the opening parenthesis in the template. Must consist of ASCII letters, digits, and underscores; must begin with a letter.- Returns:
- The invocation name. Never
nullor empty.
-
invoke
-
invoke
-