Package com.singularsys.jep.functions.strings

String functions.

The string functions can be simply included by using the jep.setComponent(new StringFunctionSet());. This will add the following functions to jep

  • concat(str1,str2,...): Concatenates string
  • left(str,len): returns the left most len characters from a string
  • right(str,len): returns the right most characters from a string
  • mid(str,start,len): returns the middle of a string
  • substr(str,start,end): returns a substring of a string
  • len(str): returns the length of a string
  • lower(str): converts a string to lower-case
  • upper(str): converts a string to upper-case
  • trim(str): removes leading and trailing whitespace