public class StringFunctionSet extends FunctionSet
jep.setComponent(new StringFunctionSet());
to add string functions.
This will add the following functions to jep
concat(str1,str2,...)
: Concatenates stringleft(str,len)
: returns the left most len characters from a stringright(str,len)
: returns the right most characters from a stringmid(str,start,len)
: returns the middle of a stringsubstr(str,start,end)
: returns a substring of a stringlen(str)
: returns the length of a stringlower(str)
: converts a string to lower-caseupper(str)
: converts a string to upper-casetrim(str)
: removes leading and trailing whitespacefunctions
Constructor and Description |
---|
StringFunctionSet() |
get, getLightWeightInstance, init, put, remove
Copyright © 2018 Singular Systems http://www.singularsys.com/jep