Many of the built-in functions invoke methods of the
String class.
For the functions ABBREV, ABS, BITAND, BITOR, BITXOR,
B2X, CENTER, CENTRE, CHANGESTR, COMPARE, COPIES, COUNTSTR, C2D, C2X, DATATYPE,
DELSTR, DELWORD, D2C, D2X, FORMAT, LEFT, LENGTH, LOWER, MAX, MIN, REVERSE, RIGHT,
SIGN, SPACE, STRIP, SUBSTR, SUBWORD, TRANSLATE, TRUNC, UPPER, VERIFY, WORD, WORDINDEX,
WORDLENGTH, WORDS, X2B, X2C, and X2D, the first argument to the built-in function
is used as the receiver object for the message sent, and the remaining arguments
are used in the same order as the message arguments. For example,
SUBSTR("abcde", 3, 2) is equivalent to
"abcde"~substr(3, 2).
For the functions INSERT, LASTPOS, OVERLAY, POS, and WORDPOS, the
second argument to the built-in functions is used as the receiver object for
the message sent, and the other arguments are used in the same order as the
message arguments. For example,
POS("a", "Haystack",3) is equivalent
to
"Haystack"~pos("a", 3).