Jess String Functions

List of string functions that can be executed by Jess.


8.87. (lowcase <lexeme-expression>)

Package:
StringFunctions
Arguments:
One atom or string.
Returns:
String
Description:
Converts uppercase characters in a string or symbol to lowercase. Returns the argument as an all-lowercase string.

8.140. (str-cat <expression>*)

Package:
StringFunctions
Arguments:
Zero or more expressions
Returns:
String
Description:
Concatenates its arguments as strings to form a single string.

8.141. (str-compare <string-expression> <string-expression>)

Package:
StringFunctions
Arguments:
Two strings
Returns:
Integer
Description:
Lexicographically compares two strings. Returns 0 if the strings are identical, a negative integer if the first is lexicographically less than the second, a positive integer if lexicographically greater.

8.142. (str-index <lexeme-expression> <lexeme-expression>)

Package:
StringFunctions
Arguments:
Two atoms
Returns:
Integer or FALSE
Description:
Returns the position of the first argument within the second argument. This is the 1-based index at which the first string first appears in the second; otherwise, returns FALSE.

8.143. (str-length <lexeme-expression>)

Package:
StringFunctions
Arguments:
An atom
Returns:
Integer
Description:
Returns the length of an atom in characters.

8.145. (sub-string <begin-integer-expression> <end-integer-expression> <string-expression>)

Package:
StringFunctions
Arguments:
Two numbers and a string
Returns:
String
Description:
Retrieves a subportion from a string. Returns the string consisting of the characters between the two 1-based indices of the given string, inclusive.

8.148. (sym-cat <expression>*)

Package:
Intrinsics
Arguments:
Zero or more expressions
Returns:
Atom
Description:
Concatenates its arguments as strings to form a single symbol.

8.159. (upcase <lexeme-expression>)

Package:
StringFunctions
Arguments:
A string or atom
Returns:
A string
Description:
Converts lowercase characters in a string or symbol to uppercase. Returns the argument as an all-uppercase string.