Class StringFunctions.Len
java.lang.Object
org.apache.juneau.commons.svl.TypedFunction
org.apache.juneau.commons.svl.functions.StringFunctions.Len
- All Implemented Interfaces:
VarFunction
- Enclosing class:
- StringFunctions
#{len(s)} / #{len(s, delimiter)} — replacement for the legacy
$LN{...}.
Single-arg form returns the character count. Two-arg form splits on the literal
delimiter (after trimming leading/trailing whitespace, matching the legacy
LenVar behavior) and returns the part count.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.juneau.commons.svl.TypedFunction
invoke, maxArity, minArity
-
Constructor Details
-
Len
public Len()
-
-
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
-