Function str-substring
str-substring aString startIndex [endIndex]
Extracts a substring from a string.
- Parameters:
- aString -
A string object.
- startIndex -
Integer representing the index of the first character in
aString that is part of the substring.
- endIndex -
Integer representing the index of the character following
the last character in aString that is part of the
substring. If it is not specified it is taken to refer to the end
of the string.
- Returns:
-
A new string object containing the substring of aString
between startIndex and endIndex.
-
If endIndex precedes startIndex then
an empty string is returned.
If endIndex is beyond the end of aString
then it is taken to refer to the end of the string.
Report a bug or request new features
© 2002