Useful API Functions

Aus expecco Wiki (Version 25.x)
Zur Navigation springen Zur Suche springen

String

Copying Substrings

Notice: except when written otherwise, all indices are 1-based. Valid indices range from 1 to the string's size.

copyFrom:to:

Synopsis:

aString copyFrom:startIndex to:endIndex

Example:

 'hello world' copyFrom:1 to:5. 
 => 'hello'
copyFrom:
aString copyFrom:startIndex'

Example:

 'hello world' copyFrom:6. 
 => ' world'



Copyright © 2014-2024 eXept Software AG