|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
---|---|
Concat | Concatenates string arguments. |
Left | Extract the left most n characters from a string: left("abcdefg",2) -> "ab" If n is greater than the length of the string return the full string. |
Length | Returns the length of a string: len("hello") -> 5 |
LowerCase | Convert a string to lowercase |
Mid | Extract substring of first argument: mid("abcdefg",2,3) -> "cde"
Syntax: mid(str,start,len)
Second argument is starting index
Third argument is number of characters to return. |
Right | Extract the left most n characters from a string: right("abcdefg",2) -> "fg". |
StringFunctionSet | Adds string functions left, right, lower, upper, substring, len, mid, trim. |
Substring | Extract substring of first argument: substring("abcdefg",2,4) -> "cd". |
Trim | Trims leading and trailing whitespace |
UpperCase | Convert a string to uppercase |
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 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 whitespace
|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |